/* Login page styles */
body.app-blank {
    background-color: #374151 !important;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.015) 35px, rgba(255,255,255,.015) 70px),
        linear-gradient(to bottom, #4b5563, #374151) !important;
    min-height: 100vh !important;
}
.auth-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.auth-card { max-width: 400px; width: 100%; }
/* iOS Safari auto-zooms the viewport on focus when an input's font-size is under 16px.
   Force 16px here instead of viewport maximum-scale=1, which would also block pinch-zoom
   for low-vision users. */
.auth-wrapper input.form-control {
    font-size: 16px;
}
.otp-input {
    width: 50px; height: 50px; font-size: 1.5rem; text-align: center;
    border: 2px solid var(--bs-gray-300); border-radius: 8px; margin: 0 0.25rem;
}
.otp-input:focus { border-color: var(--bs-primary); outline: none; }
.btn-primary { min-height: 48px; height: 48px; }
.toast-notification {
    position: fixed; top: 20px; right: 20px; z-index: 9999;
    background: #fff; color: #1e1e2d; padding: 1rem 1.25rem; border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,.2); display: flex; align-items: center; gap: 12px;
    min-width: 300px; max-width: 420px;
    transition: opacity .4s, transform .4s;
}
.toast-icon {
    width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}

/* Accessibility: same WCAG AA contrast fixes as app.css (#1418) — this page loads login.css
   instead, so the overrides are duplicated here rather than shared, since app.css also carries
   app-shell rules (scrollbar hiding, header background) that don't apply to the auth screen. */
[data-bs-theme="light"] .text-muted {
    color: #5c6579 !important;
}
[data-bs-theme="dark"] .text-muted {
    color: #99a1b7 !important;
}
[data-bs-theme="light"] {
    --bs-primary: #0f6fc7;
}
/* Theme's own dark-mode .btn-light (Back button) is 4.46:1, just under WCAG AA's 4.5:1. */
[data-bs-theme="dark"] .auth-wrapper .btn-light {
    color: #9298a8 !important;
}

.login-divider {
    border-bottom-color: var(--bs-gray-400) !important;
}
.btn.btn-light.btn-register {
    background-color: var(--bs-gray-300);
    border-color: var(--bs-gray-300);
    color: var(--bs-gray-800);
}
.btn.btn-light.btn-register:hover,
.btn.btn-light.btn-register:focus {
    background-color: var(--bs-gray-400);
    border-color: var(--bs-gray-400);
    color: var(--bs-gray-800);
}

/* Logo is a solid-black glyph and disappears on the dark card background; swap to the white
   variant so it stays visible whenever data-bs-theme is dark. */
.auth-logo-dark {
    display: none;
}
[data-bs-theme="dark"] .auth-logo-light {
    display: none;
}
[data-bs-theme="dark"] .auth-logo-dark {
    display: inline-block;
}
