/* Dashboard Multimetrics — pantallas de acceso (ingreso, registro, verificación, pendiente). */
:root {
  --bg: #0a0a0b;
  --surface: #121317;
  --surface-2: #181a1f;
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #f4f5f3;
  --text-muted: #8f939b;
  --text-dim: #63676f;
  --primary: #3987e5;
  --primary-hover: #4b95ec;
  --primary-soft: rgba(57, 135, 229, .16);
  --success: #4ade80;
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, .12);
  --radius: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font-family: "Geist", "Inter", -apple-system, "Segoe UI", sans-serif;
  font-size: 15.5px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Estructura: marca a la izquierda, formulario a la derecha ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.auth-brand {
  position: relative; overflow: hidden; padding: 44px 56px; display: flex; flex-direction: column; justify-content: space-between;
  border-right: 1px solid var(--border);
  background:
    radial-gradient(700px 420px at 20% 0%, rgba(57, 135, 229, .22), transparent 65%),
    radial-gradient(520px 380px at 100% 100%, rgba(57, 135, 229, .10), transparent 70%),
    #0c0d10;
}
.auth-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-weight: 700; font-size: 20px; letter-spacing: -.02em; text-decoration: none; }
.auth-logo:hover { text-decoration: none; }
.auth-logo img { height: 28px; width: auto; display: block; }
.auth-pitch { max-width: 470px; position: relative; z-index: 1; }
.auth-pitch .kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.auth-pitch .kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); }
.auth-pitch h1 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.05; letter-spacing: -.04em; margin: 18px 0 16px; font-weight: 750; }
.auth-pitch h1 span { background: linear-gradient(110deg, #f6f7fa 30%, #86affb); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-pitch p { color: var(--text-muted); font-size: 16.5px; margin: 0 0 26px; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; color: #c9ccd2; font-size: 15px; }
.auth-points svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--primary); }
.auth-chart { position: absolute; left: 0; right: 0; bottom: 70px; height: 190px; opacity: .55; pointer-events: none; }
.auth-foot { position: relative; z-index: 1; font-size: 13px; color: var(--text-dim); display: flex; gap: 18px; flex-wrap: wrap; }
.auth-foot a { color: var(--text-muted); }

.auth-main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h2 { font-size: 28px; letter-spacing: -.03em; margin: 0 0 6px; font-weight: 700; }
.auth-card .lead { color: var(--text-muted); margin: 0 0 28px; }
.auth-mobile-logo { display: none; margin-bottom: 32px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 48px; padding: 0 18px;
  border-radius: 12px; border: 1px solid transparent; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s var(--ease); text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
/* Botón de Google según su guía de marca: fondo claro, logo "G" a color. */
.btn-google { background: #fff; color: #1f1f1f; border-color: #dadce0; }
.btn-google:hover { background: #f4f6f8; }
.btn-google svg { width: 20px; height: 20px; }
.btn-link { background: none; border: 0; color: var(--primary); font: inherit; cursor: pointer; padding: 0; font-weight: 600; }
.btn-link:hover { text-decoration: underline; }

.divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--text-dim); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---------- Formularios ---------- */
.field { margin-bottom: 16px; }
.field label { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; font-weight: 600; color: #d6d8dc; margin-bottom: 7px; }
.field label small { font-weight: 500; color: var(--text-dim); }
.input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); font: inherit; font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--text-dim); }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.pw { position: relative; }
.pw .input { padding-right: 76px; }
.pw button { position: absolute; right: 8px; top: 50%; translate: 0 -50%; height: 32px; padding: 0 10px; border-radius: 8px; border: 0; background: transparent; color: var(--text-muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.pw button:hover { color: var(--text); background: var(--surface-2); }
.hint { font-size: 12.5px; color: var(--text-dim); margin-top: 6px; }
.meter { display: flex; gap: 4px; margin-top: 8px; }
.meter i { flex: 1; height: 4px; border-radius: 2px; background: var(--surface-2); transition: background .2s; }
.meter[data-level="1"] i:nth-child(-n+1) { background: var(--danger); }
.meter[data-level="2"] i:nth-child(-n+2) { background: #fbbf24; }
.meter[data-level="3"] i:nth-child(-n+3) { background: var(--success); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-muted); margin: 6px 0 20px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--primary); width: 16px; height: 16px; flex: none; }
.switch { text-align: center; color: var(--text-muted); font-size: 14.5px; margin-top: 24px; }

/* ---------- Mensajes ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 18px; }
.alert svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.alert-error { background: var(--danger-soft); border: 1px solid rgba(248, 113, 113, .3); color: #fecaca; }
.alert-ok { background: rgba(74, 222, 128, .1); border: 1px solid rgba(74, 222, 128, .28); color: #bbf7d0; }
.alert form { display: inline; }

/* ---------- Pantallas de estado (revisa tu correo, pendiente, error) ---------- */
.status-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 22px; }
.status-icon svg { width: 28px; height: 28px; }
.status-icon.wait { background: rgba(251, 191, 36, .12); color: #fbbf24; }
.steps { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--text-muted); font-size: 14.5px; }
.steps b { color: var(--text); font-weight: 600; display: block; }
.steps .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; border: 1px solid var(--border-strong); color: var(--text-muted); }
.steps .done .n { background: var(--success); border-color: var(--success); color: #052e16; }
.steps .now .n { border-color: #fbbf24; color: #fbbf24; }
.box { padding: 18px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); margin: 18px 0; }
.muted { color: var(--text-muted); }
.small { font-size: 13.5px; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-mobile-logo { display: inline-flex; }
  .auth-main { justify-content: flex-start; padding-top: 48px; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
