.auth-page { min-height: 100dvh; background: var(--paper); }
.auth-shell { display: grid; width: min(460px, calc(100% - 32px)); min-height: 100dvh; margin: 0 auto; padding: max(32px, env(safe-area-inset-top)) 0 max(32px, env(safe-area-inset-bottom)); place-items: center; }
.auth-card { width: 100%; padding: clamp(24px, 7vw, 40px); border: 1px solid var(--line); border-radius: 20px; background: var(--paper-raised); box-shadow: 0 14px 36px rgba(31, 43, 63, .08); }
.auth-card [hidden] { display: none !important; }
.auth-brand { margin-bottom: 32px; }
.auth-tabs { display: grid; grid-template-columns: repeat(2, 1fr); border-bottom: 1px solid var(--line); }
.auth-tabs button { position: relative; min-height: 46px; padding: 0 12px; border: 0; background: transparent; color: var(--ink-soft); font-weight: 760; }
.auth-tabs button.active { color: var(--brass-deep); }
.auth-tabs button.active::after { position: absolute; right: 12px; bottom: -1px; left: 12px; height: 2px; background: var(--brass); content: ""; }
.auth-tabs button:focus-visible { outline: 2px solid var(--brass); outline-offset: -2px; }
.auth-heading { margin: 30px 0 24px; }
.auth-heading h2, #signedInPanel h2 { margin: 0; color: var(--ink); font-size: clamp(28px, 7vw, 34px); line-height: 1.2; letter-spacing: -.04em; }
.auth-heading p:not(.eyebrow), #signedInPanel .muted { margin: 9px 0 0; color: var(--ink-soft); }
.auth-form { display: grid; gap: 16px; }
.auth-form .primary-button, #continueLink { width: 100%; min-height: 48px; }
.form-note, .auth-notice { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.65; }
.form-note a { color: var(--brass-deep); text-decoration: underline; text-underline-offset: 2px; }
.auth-notice:not(:empty) { margin-top: 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-muted); color: var(--ink); }
#signedInPanel { display: grid; gap: 14px; }
@media (max-width: 420px) { .auth-shell { width: min(100% - 24px, 460px); } .auth-card { padding: 22px 18px; border-radius: 16px; } .auth-brand { margin-bottom: 25px; } }
