/* One auth task per screen, with stable feedback and keyboard-visible controls. */
.auth-shell { min-height: 100svh; padding: 40px 20px; }
.auth-shell .auth-card { width: 100%; max-width: 460px; padding: 32px; }
.auth-shell [hidden] { display: none !important; }
.auth-brand { justify-content: center; margin-bottom: 30px; text-decoration: none; }
.auth-shell .auth-tabs { gap: 0; margin-bottom: 28px; }
.auth-shell .auth-tab { appearance: none; font: inherit; background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 12px 8px; min-height: 44px; }
.auth-shell .auth-tab.active { border-bottom-color: var(--accent-cyan); }
.auth-heading { margin-bottom: 24px; }
.auth-heading h1 { font-size: 1.65rem; letter-spacing: -.025em; line-height: 1.25; margin: 0 0 10px; }
.auth-heading h1:focus { outline: none; }
.auth-heading > p:not(.auth-eyebrow) { color: var(--text-muted); font-size: .93rem; line-height: 1.6; margin: 0; }
.auth-eyebrow { color: var(--accent-cyan); font-size: .72rem; font-weight: 700; letter-spacing: .1em; margin: 0 0 10px; }
.auth-shell .form-group { margin-bottom: 20px; }
.auth-shell .form-label { margin-bottom: 8px; font-size: .88rem; }
.auth-shell .form-control { width: 100%; min-height: 48px; font-size: 1rem; }
.auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.auth-label-row .auth-text-button { font-size: .8rem; }
.auth-optional { color: var(--text-muted); font-size: .78rem; font-weight: 400; margin-left: 6px; }
.auth-field-hint { font-size: .8rem; line-height: 1.5; color: var(--text-muted); margin: 8px 0 0; }
.auth-password-field { position: relative; }
.auth-password-field .form-control { padding-right: 90px; }
.auth-password-toggle { position: absolute; right: 6px; top: 4px; min-height: 40px; padding: 0 9px; background: transparent; color: var(--text-muted); font: inherit; font-size: .77rem; border: 0; border-radius: 6px; cursor: pointer; }
.auth-text-button { appearance: none; background: none; border: 0; border-radius: 3px; padding: 2px 0; color: var(--accent-cyan); font: inherit; line-height: 1.5; cursor: pointer; text-align: inherit; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.auth-text-button:hover { text-decoration-color: currentColor; }
.auth-shell :is(button, a, input):focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 4px; }
.auth-primary { width: 100%; min-height: 48px; margin-top: 4px; white-space: normal; }
.auth-shell button:disabled { cursor: not-allowed; opacity: .65; }
.auth-consents { display: grid; gap: 12px; margin: 4px 0 20px; }
.auth-consents .consent-label { margin: 0; font-size: .78rem; line-height: 1.55; align-items: flex-start; }
.auth-consents input { margin-top: 4px; flex-shrink: 0; width: 16px; height: 16px; }
.auth-show-password { color: var(--text-muted); font-size: .82rem; margin-bottom: 20px; }
.auth-feedback { font-size: .88rem; line-height: 1.55; margin: 0; overflow-wrap: anywhere; }
.auth-feedback:not(:empty) { margin: 0 0 16px; }
.auth-feedback[role="alert"] { color: #ffb4b4; }
.auth-feedback[role="status"] { color: #a8e8d8; }
.auth-shell .field-error { font-size: .8rem; }
.auth-shell .form-status { color: #ffb4b4; }
.auth-bottom-note { text-align: center; font-size: .8rem; line-height: 1.6; color: var(--text-muted); margin: 16px 0 0; }
.auth-back { display: block; margin: 20px auto 0; font-size: .85rem; text-align: center; }
.auth-footer { border-top: 1px solid var(--border-color, #263040); margin-top: 28px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; }
.auth-footer a { color: var(--text-muted); text-decoration: none; font-size: .8rem; }
.auth-footer a:hover { color: var(--accent-cyan); }
.auth-mail-card { padding: 22px 18px; text-align: center; border: 1px solid #23453f; border-radius: 12px; background: rgba(0, 240, 181, .035); margin-bottom: 22px; }
.auth-mail-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: rgba(0, 240, 181, .08); color: var(--accent-cyan); border-radius: 12px; margin-bottom: 4px; }
.auth-email-address { font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; margin: 5px 0 7px; }
.auth-mail-card .auth-text-button { font-size: .8rem; }
.auth-copy { color: var(--text-muted); font-size: .9rem; line-height: 1.65; margin: 0 0 18px; }
.auth-help-note { border-left: 2px solid #354356; padding-left: 14px; margin-bottom: 22px; font-size: .82rem; line-height: 1.65; }
.auth-help-note strong { font-weight: 600; }
.auth-help-note p { color: var(--text-muted); margin: 5px 0 0; }
.auth-notice { color: #a8e8d8; background: rgba(0, 240, 181, .055); border: 1px solid #23453f; border-radius: 8px; padding: 12px 14px; font-size: .85rem; line-height: 1.6; margin: 0 0 22px; }
.auth-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 480px) {
  .auth-shell { padding: 20px 12px; align-items: flex-start; }
  .auth-shell .auth-card { padding: 26px 22px; }
  .auth-heading h1 { font-size: 1.5rem; }
  .auth-brand { margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) { .auth-shell * { scroll-behavior: auto !important; transition: none !important; } }
