:root { color-scheme: light; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #252237; background: #f7f7fb; font-size: 14px; line-height: 1.5; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
a { color: #6f4ef6; }
:focus-visible { outline: 3px solid #b8a8ff; outline-offset: 3px; }
.auth-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 36px 20px; background: radial-gradient(circle at 12% 10%, #7b5cf321, transparent 28%), radial-gradient(circle at 92% 82%, #5cb0ff1f, transparent 31%), #f7f7fb; }
.auth-shell { width: min(100%, 430px); }
.auth-brand { display: flex; justify-content: center; align-items: center; gap: 11px; margin-bottom: 24px; font-size: 18px; font-weight: 750; }
.brand-mark { width: 38px; height: 38px; object-fit: contain; }
.auth-card { padding: 32px; border: 1px solid #e0e0ea; border-radius: 18px; background: #fffffffa; box-shadow: 0 22px 65px #2925491a; }
.auth-card h1 { margin: 0 0 7px; font-size: 24px; line-height: 1.2; letter-spacing: -.025em; }
.auth-intro { margin: 0 0 25px; color: #716d80; overflow-wrap: anywhere; }
.auth-meta { margin: 20px 0 0; color: #79758b; text-align: center; font-size: 12px; }
.form-grid, .field { display: grid; gap: 7px; min-width: 0; }
.form-grid { gap: 18px; }
label { font-weight: 650; }
input:not([type="checkbox"]) { min-width: 0; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #d7d3e6; border-radius: 8px; background: #fff; color: inherit; }
.input-with-action { position: relative; }
.input-with-action input { padding-right: 46px; }
.input-action { position: absolute; right: 3px; top: 3px; width: 38px; height: 38px; border: 0; background: transparent; color: #716d80; }
svg { width: 18px; height: 18px; vertical-align: middle; }
.field-help { color: #79758b; font-size: 12px; margin: 0; }
.field-error, .required-mark { color: #cf313f; }
.field-error:empty { display: none; }
.field-error { margin: 0; font-size: 12px; }
.form-message:empty { display: none; }
.form-message:not(:empty) { margin-bottom: 18px; padding: 12px; border-radius: 8px; background: #fff0f1; color: #bd2433; overflow-wrap: anywhere; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 11px 16px; min-height: 44px; border: 1px solid #d7d3e6; border-radius: 8px; background: #fff; color: #403a58; font-weight: 650; }
.button--primary { background: #6f4ef6; color: white; border-color: #6f4ef6; }
.button--block { width: 100%; }
.auth-link-row { margin-top: 18px; text-align: center; }
.auth-link-row a, .button-link { color: #6f4ef6; font-weight: 650; text-decoration: none; }
.button-link { border: 0; background: transparent; padding: 4px; }
.auth-trust-device { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; font-weight: 400; }
.auth-trust-device input { width: 18px; height: 18px; flex-shrink: 0; }
.auth-trust-device strong, .auth-trust-device small { display: block; }
.auth-trust-device small { color: #79758b; }
.auth-account-summary, .inline-callout { display: grid; gap: 4px; margin-bottom: 20px; padding: 14px 16px; border-radius: 10px; background: #f6f4fb; overflow-wrap: anywhere; }
.inline-callout--warning { background: #fff8e5; color: #705000; }
.mfa-setup { display: grid; gap: 18px; }
.mfa-steps { display: grid; gap: 8px; }
.mfa-steps p { margin: 0 0 8px; color: #666174; }
.mfa-qr { width: 240px; max-width: 100%; margin: 4px auto 12px; border: 1px solid #e6e1f0; border-radius: 12px; background: #fff; }
.mfa-secret { display: block; margin: 8px 0 16px; padding: 10px; overflow-wrap: anywhere; text-align: center; }
.recovery-code-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 22px 0; }
.recovery-code-grid code { padding: 11px 8px; border: 1px solid #ded9ea; border-radius: 8px; background: #faf9fc; text-align: center; }
.auth-recovery-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.loading-state { text-align: center; }
#toast-region:not(:empty) { position: fixed; z-index: 10; left: 20px; right: 20px; bottom: 20px; width: fit-content; max-width: calc(100% - 40px); padding: 12px 18px; border-radius: 8px; background: #252237; color: white; }
@media (max-width: 540px) { .auth-card { padding: 24px 20px; } .recovery-code-grid { grid-template-columns: 1fr; } .auth-recovery-actions .button { width: 100%; } }
