/* Acceso y recuperación comparten el tema y la escala del producto. */
.auth-page, .auth-page *, .auth-page *::before, .auth-page *::after { box-sizing: border-box; }
.auth-page { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 76px 20px 48px; background: var(--bg); color: var(--text-1); font-family: Poppins, sans-serif; -webkit-font-smoothing: antialiased; }
.auth-page .container { width: 100%; max-width: 460px; min-width: 0; }
.auth-page .logo-wrap { margin: 0 0 28px; text-align: center; }
.auth-page .logo-wrap img, .auth-page .logo { display: block; width: auto; height: 44px; margin: 0 auto; }
.auth-page .logo { margin-bottom: 28px; }
.auth-page .logo-tagline { margin: 12px 0 0; color: var(--text-2); font-size: .82rem; line-height: 1.55; }
.auth-page .card { padding: 30px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; }
.auth-page .card-title { margin: 0 0 24px; font-size: clamp(1.4rem, 4vw, 1.65rem); font-weight: 700; line-height: 1.25; letter-spacing: -.025em; text-wrap: balance; }
.auth-page .card-title:has(+ .card-sub) { margin-bottom: 10px; }
.auth-page .card-sub { margin: 0 0 24px; color: var(--text-2); font-size: .88rem; line-height: 1.6; }
.auth-page .field { margin: 0 0 18px; }
.auth-page .field label { display: block; margin-bottom: 7px; color: var(--text-2); font-size: .84rem; font-weight: 600; }
.auth-page .field input { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--border-mid); border-radius: 10px; background: var(--bg-card); color: var(--text-1); font: inherit; font-size: 1rem; }
.auth-page .field input::placeholder { color: var(--text-3); }
.auth-page .field input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.auth-page :is(button, a):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.auth-page .btn-primary { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin-top: 6px; padding: 11px 15px; border: 1px solid transparent; border-radius: 10px; background: var(--accent-solid); color: #fff; font: 600 .9rem Poppins, sans-serif; cursor: pointer; text-decoration: none; }
.auth-page .btn-primary:hover { background: var(--accent-hover); }
.auth-page .btn-primary:disabled { opacity: .65; cursor: wait; }
.auth-page .form-footer { margin: 20px 0 0; color: var(--text-2); font-size: .84rem; text-align: center; }
.auth-page .form-footer + .form-footer { margin-top: 6px; }
.auth-page a { color: var(--accent-text); }
.auth-page .form-footer a, .auth-page .auth-text-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.auth-page .form-footer a:hover { text-decoration: underline; }
.auth-page .terms { margin: 18px 0 0; color: var(--text-3); font-size: .75rem; line-height: 1.65; text-align: center; }
.auth-page .error-banner, .auth-page .info-banner, .auth-page .success-banner { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 20px; padding: 13px 14px; border-radius: 10px; color: var(--text-1); background: var(--teal-dim); font-size: .85rem; line-height: 1.6; overflow-wrap: anywhere; }
.auth-page .error-banner { color: var(--error); background: var(--error-dim); }
.auth-page .info-banner svg { flex: 0 0 auto; color: var(--teal); margin-top: 3px; }
.auth-page .auth-help { margin: 9px 0 0; color: var(--text-3); font-size: .75rem; line-height: 1.55; }
.auth-page .auth-help:empty { display: none; }
.auth-page [data-strength="weak"] { color: var(--error); }
.auth-page [data-strength="fair"], .auth-page [data-strength="good"] { color: var(--warn); }
.auth-page [data-strength="strong"] { color: var(--teal); }
.auth-page .auth-password-field { position: relative; }
.auth-page .field input:is(#password, #password2) { padding-right: 54px !important; }
.auth-page .auth-password-toggle { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); cursor: pointer; }
.auth-page .auth-password-toggle:hover { background: var(--bg-card-2); }
.auth-page .auth-password-toggle [hidden] { display: none; }
.auth-page .auth-text-button { margin: -8px 0 12px; padding: 0; border: 0; background: none; color: var(--accent-text); font: 600 .82rem Poppins, sans-serif; cursor: pointer; }
.auth-page .google-auth, .auth-page .google-button { width: 100%; min-height: 44px; }
.auth-page .google-button { display: flex; justify-content: center; }
.auth-page .google-button > div { max-width: 100%; }
.auth-page .google-status { margin: 8px 0 0; color: var(--text-2); font-size: .8rem; line-height: 1.5; text-align: center; overflow-wrap: anywhere; }
.auth-page .google-status:empty { display: none; }
.auth-page .google-status.is-error { color: var(--error); }
.auth-page .auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text-3); font-size: .78rem; }
.auth-page .auth-divider::before, .auth-page .auth-divider::after { content: ''; height: 1px; flex: 1; background: var(--border); }
@media (max-width: 480px) {
  .auth-page { align-items: flex-start; padding: 82px 16px 40px; }
  .auth-page .card { padding: 24px 20px; }
  .auth-page .logo-wrap { margin-bottom: 24px; }
  .auth-page .gf-fab-stack { display: none; }
}
.auth-page button[type="submit"] { min-height: 48px; }
