.auth-page { min-height: 100vh; }
.auth-story .brand { display: inline-flex; align-items: center; }
.auth-brand-logo { display: block; max-width: 150px; max-height: 42px; object-fit: contain; }
.auth-story .brand-mark { flex: 0 0 27px; }
.auth-topline { min-height: 14px; align-items: center; }
.auth-topline a, .auth-form a { color: #5f52d3; text-decoration: none; font-weight: 600; }
.auth-topline a:hover, .auth-form a:hover { text-decoration: underline; }
.auth-form .form-label { display: block; }
.auth-form .form-control { width: 100%; }
.auth-form .form-check { display: flex; align-items: center; gap: 8px; }
.auth-form .form-check-input { float: none; flex: 0 0 16px; margin: 0; }
.auth-form .form-check-label { margin: 0; }
.auth-password-field { position: relative; }
.auth-password-field .form-control { padding-right: 42px; }
.auth-password-toggle { position: absolute; top: 50%; right: 8px; display: grid; width: 28px; height: 28px; place-items: center; padding: 0; transform: translateY(-50%); border: 0; border-radius: 5px; background: transparent; color: #71717a; }
.auth-password-toggle:hover { background: #f4f4f5; color: #18181b; }
.auth-errors { margin: 6px 0 0; padding-left: 18px; color: #b91c1c; font-size: 12px; }
.auth-alert { margin: 0 0 16px; padding: 10px 12px; border: 1px solid #fecaca; border-radius: 6px; background: #fef2f2; color: #991b1b; font-size: 12px; }
.auth-alert.success { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
.auth-form .or-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: #9b9ca6; font-size: 10px; letter-spacing: .06em; }
.auth-form .or-divider::before, .auth-form .or-divider::after { height: 1px; flex: 1; background: #e4e4e7; content: ''; }
.auth-form .or-divider span { flex: none; }
.auth-form .auth-security-note { display: flex; align-items: flex-start; justify-content: center; gap: 6px; margin-top: 18px; color: #92949e; font-size: 10px; line-height: 1.5; text-align: center; }
.auth-form .auth-security-note svg { width: 13px; height: 13px; flex: 0 0 13px; }
.auth-form .auth-form-icon { display: grid; width: 42px; height: 42px; margin-bottom: 18px; place-items: center; border: 1px solid #e4e4e7; border-radius: 9px; background: #f4f4f5; color: #3f3f46; }
.auth-form .auth-form-icon svg { width: 19px; height: 19px; }
.auth-choice-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.auth-choice-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; font-size: 12px; }
.auth-choice-actions .btn-outline-secondary { border-color: #e4e4e7; color: #3f3f46; }
.auth-choice-actions .btn-outline-secondary:hover { background: #f4f4f5; }
.auth-choice-actions svg { width: 15px; height: 15px; }
.auth-qr-wrap { display: grid; width: fit-content; max-width: 100%; min-height: 210px; margin: 0 auto 20px; padding: 8px; place-items: center; overflow: hidden; border: 1px solid #e4e4e7; border-radius: 8px; background: #fff; }
.auth-qr-wrap svg { display: block; max-width: 100%; height: auto; }
.auth-form .otp-field { text-align: center; font-size: 18px; font-weight: 600; letter-spacing: .35em; }
.auth-form .auth-readonly { padding: 11px 12px; border: 1px solid #facc15; border-radius: 6px; background: #fefce8; color: #854d0e; font-size: 12px; line-height: 1.5; }
html[data-theme="dark"] .auth-topline a, html[data-theme="dark"] .auth-form a { color: #d4d4d8; }
html[data-theme="dark"] .auth-password-toggle { color: #a1a1aa; }
html[data-theme="dark"] .auth-password-toggle:hover { background: #27272a; color: #fafafa; }
html[data-theme="dark"] .auth-errors { color: #fca5a5; }
html[data-theme="dark"] .auth-alert { border-color: #7f1d1d; background: #2b1114; color: #fecaca; }
html[data-theme="dark"] .auth-alert.success { border-color: #166534; background: #10251a; color: #bbf7d0; }
html[data-theme="dark"] .auth-form .or-divider::before, html[data-theme="dark"] .auth-form .or-divider::after { background: #27272a; }
html[data-theme="dark"] .auth-form .auth-form-icon { border-color: #3f3f46; background: #27272a; color: #e4e4e7; }
html[data-theme="dark"] .auth-choice-actions .btn-outline-secondary { border-color: #3f3f46; color: #e4e4e7; }
html[data-theme="dark"] .auth-choice-actions .btn-outline-secondary:hover { background: #27272a; }
html[data-theme="dark"] .auth-qr-wrap { border-color: #3f3f46; }
html[data-theme="dark"] .auth-form .auth-readonly { border-color: #854d0e; background: #2a1f0b; color: #fde68a; }
@media (max-width: 575.98px) {
    .auth-content { padding: 24px 20px; }
    .auth-choice-actions { grid-template-columns: 1fr; }
    .auth-form .auth-security-note { justify-content: flex-start; text-align: left; }
}
