:root {
  --bg: #F0F2F5;
  --card-bg: #FFFFFF;
  --text: #050505;
  --text-muted: #65676B;
  --accent: #1877F2;
  --accent-hover: #166FE5;
  --border: #E4E6EB;
  --ok: #31A24C;
  --error: #FA383E;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="claro"]) {
    --bg: #18191A;
    --card-bg: #242526;
    --text: #E4E6EB;
    --text-muted: #B0B3B8;
    --border: #3A3B3C;
    --accent: #2E89FF;
    --accent-hover: #4A98FF;
  }
}

:root[data-theme="oscuro"] {
  --bg: #18191A;
  --card-bg: #242526;
  --text: #E4E6EB;
  --text-muted: #B0B3B8;
  --border: #3A3B3C;
  --accent: #2E89FF;
  --accent-hover: #4A98FF;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
  width: 100%;
  max-width: 400px;
}

.card h1 {
  font-size: 22px;
  margin: 0 0 4px;
  color: var(--accent);
}

.card p.subtitle {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 14px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 14px 0 6px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.25);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px;
  margin-top: 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease;
}

.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }

.alt-link {
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-muted);
}

.alt-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.alert {
  background: rgba(250, 56, 62, 0.1);
  color: var(--error);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 6px;
}
