:root { color-scheme: light; font-family: var(--museumtrack-font-body); color: var(--museumtrack-charcoal); background: var(--museumtrack-warm-white); }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 80% 5%, #cfede8 0, transparent 38%), var(--museumtrack-warm-white); }
.auth-shell { display: grid; min-height: 100vh; place-items: center; padding: max(24px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom)); }
.auth-card { width: min(100%, 440px); padding: clamp(25px, 7vw, 42px); border: 1px solid #e5e7e2; border-radius: 20px; background: #fff; box-shadow: 0 18px 60px #1f293712; }
.auth-logo { display: block; width: min(230px, 72%); height: 42px; object-fit: contain; object-position: left center; margin-bottom: 32px; }
.eyebrow { margin: 0 0 9px; color: #64706e; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
h1 { margin: 0; font-family: var(--museumtrack-font-heading); font-size: clamp(28px, 8vw, 36px); letter-spacing: -.035em; }
.intro { margin: 10px 0 28px; color: #64706e; }
.auth-form, .setup-stage { display: grid; gap: 16px; }
.auth-form label { display: grid; gap: 7px; font-size: 14px; font-weight: 600; }
.auth-form input { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #cbd3d0; border-radius: 9px; font: inherit; font-size: 16px; color: inherit; background: white; }
.auth-form input:focus { outline: 3px solid #0f9d9e33; border-color: var(--museumtrack-teal); }
.primary-button, .quiet-button { display: flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 16px; border: 0; border-radius: 9px; font: inherit; font-size: 15px; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; }
.primary-button { color: white; background: var(--museumtrack-teal); }
.primary-button:hover { background: #087f80; }
.quiet-button { color: var(--museumtrack-charcoal); background: #f1f5f3; }
.help { margin: 0; color: #64706e; font-size: 13px; line-height: 1.5; }
.auth-message { min-height: 22px; margin: 14px 0 0; color: #a33131; font-size: 14px; }
.setup-link { display: inline-block; margin-top: 10px; color: #087f80; font-size: 14px; }
.auth-foot { margin: 28px 0 0; color: #87918e; font-size: 12px; }
.secret-key { display: block; overflow-wrap: anywhere; padding: 14px; border: 1px solid #d7e4e1; border-radius: 8px; color: #155c5d; background: #f1fbf8; font-size: 15px; letter-spacing: .08em; }
.otp-link { color: #155c5d; }
.recovery-codes { padding: 16px; border-radius: 8px; background: #f1f5f3; font-size: 14px; line-height: 1.8; white-space: pre-wrap; }
.button-link { width: 100%; }
[hidden] { display: none !important; }
@media (max-width: 480px) { .auth-shell { padding-inline: 12px; }.auth-card { border-radius: 15px; }.auth-logo { margin-bottom: 26px; } }

.totp-setup { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 16px; border: 1px solid #e2ebe8; border-radius: 12px; background: #f8fcfa; }
.totp-qr { display: block; width: min(220px, 70vw); height: auto; padding: 10px; border: 1px solid #e1e5e2; border-radius: 8px; background: #fff; image-rendering: pixelated; }
.totp-setup .help { max-width: 300px; }
