/**
 * ------------------------------------------------------------
 * auth.css — estilos compartidos de las páginas públicas de
 * autenticación (login, aceptar invitación, recuperar cuenta,
 * verificar enlace mágico). Paleta de marca de Asesorías IT Edutech
 * (azul + cian), consistente con el resto de GAD-C.
 * ------------------------------------------------------------
 */
@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --accent: #2781bc;
  --accent-ink: #1d6394;
  --accent-soft: #e3f0f8;
  --line: #dfe4e8;
  --muted: #5b6168;
  --ink: #231f20;
  --red: #c62f2f;
  --red-soft: #fdeeee;
  --bg: #f4f6f8;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #16222c 0%, #1d6394 55%, #2781bc 100%) fixed; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); padding: 24px;
}
.auth-wrap { width: 100%; max-width: 420px; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 34px 32px; box-shadow: 0 12px 32px rgba(18,22,28,.06); }
.auth-brand { display: flex; align-items: center; margin-bottom: 26px; }
.auth-brand img { max-width: 100%; height: 36px; object-fit: contain; object-position: left center; }
.auth-card h1 { font-size: 21px; margin: 0 0 6px; letter-spacing: -0.01em; }
.auth-sub { color: var(--muted); font-size: 13.5px; margin: 0 0 24px; }
.field { margin-bottom: 16px; }
label { font-size: 12.5px; font-weight: 600; color: var(--muted); display: block; margin-bottom: 5px; }
input, select {
  width: 100%; font-family: inherit; font-size: 14px; padding: 10px 12px; border-radius: 9px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: 9px; font-size: 14px; font-weight: 700; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-block { width: 100%; margin-top: 4px; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.auth-link { display: block; text-align: center; margin-top: 18px; font-size: 13px; color: var(--accent-ink); text-decoration: none; font-weight: 600; }
.auth-link:hover { text-decoration: underline; }
.auth-footer { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: center; }
#langSwitcher { font-size: 12px; padding: 5px 8px; }
.auth-msg { font-size: 13.5px; padding: 10px 12px; border-radius: 9px; margin-bottom: 16px; }
.auth-msg.info { background: var(--accent-soft); color: var(--accent-ink); }
.auth-msg.error { background: var(--red-soft); color: var(--red); }
.auth-tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.auth-tabs button { flex: 1; min-width: 90px; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.auth-tabs button.active { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent); }
.auth-step { display: none; }
.auth-step.active { display: block; }
.auth-center { text-align: center; padding: 20px 0; color: var(--muted); font-size: 13.5px; }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-alt-row { display: flex; gap: 10px; }
.auth-alt-row .btn { flex: 1; font-size: 13px; padding: 9px 10px; }
.auth-back-link { display: block; text-align: center; margin: 4px 0 0; font-size: 12.5px; color: var(--muted); text-decoration: none; font-weight: 600; cursor: pointer; }
.auth-back-link:hover { color: var(--ink); }

.auth-legal { margin-top: 14px; text-align: center; font-size: 12px; color: var(--muted); }
.auth-legal a { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.auth-legal a:hover { text-decoration: underline; }

/* ───── Savvy Vault · tema GrowIT Method ───── */
.brand-lockup { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-lockup .brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font: 700 1.5rem/1 var(--f-head, "Barlow Condensed", "DIN Condensed", "Oswald", "Arial Narrow", sans-serif); text-transform: uppercase; letter-spacing: .03em; color: #16222c; white-space: nowrap; }
.brand-name b { color: #2781bc; font-weight: 700; }
.auth-card { border: 0; border-radius: 18px; box-shadow: 0 2px 4px rgba(22,34,44,.08), 0 24px 56px rgba(22,34,44,.28); }
.auth-card h1 { font: 700 1.9rem/1.05 var(--f-head, "Barlow Condensed", "DIN Condensed", "Oswald", "Arial Narrow", sans-serif); text-transform: uppercase; letter-spacing: .03em; }
.auth-brand { margin-bottom: 22px; }
input, select { border-width: 1.5px; border-radius: 10px; }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(39,129,188,.25); }
.btn-primary { border-radius: 10px; box-shadow: 0 2px 8px rgba(39,129,188,.3); }
