/* Auth layout - login, forgot password */

.auth-body { min-height: 100vh; display: flex; flex-direction: column; background: var(--color-bg); }
.auth-header {
    background: var(--color-nav-bg);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 1rem;
    padding-top: calc(0.75rem + env(safe-area-inset-top, 0px));
}
.auth-logo { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: #fff; }
.auth-logo:hover { color: #fff; opacity: 0.9; }
.auth-logo-img { height: 40px; width: auto; object-fit: contain; }
.auth-logo-text { font-size: 1rem; font-weight: 600; }
.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.auth-card-wrap { width: 100%; max-width: 440px; }
.auth-card { padding: 2rem; }
.auth-card-title { font-size: 1.5rem; font-weight: 600; margin: 0 0 0.25rem; color: var(--color-text); }
.auth-card-subtitle { font-size: 0.9375rem; color: var(--color-text-muted); margin: 0 0 1.5rem; line-height: 1.5; }
.auth-card-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; }
.auth-card-actions .btn { min-height: 44px; }
.auth-form .form-group { margin-bottom: 1rem; }
.auth-remember { margin-bottom: 1rem; }
.auth-remember-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9375rem; font-weight: normal; cursor: pointer; }
.auth-remember-input { width: 18px; height: 18px; flex-shrink: 0; }
.auth-remember-hint { margin: 0.375rem 0 0 1.625rem; }
.auth-submit { width: 100%; min-height: 48px; font-size: 1rem; }
.auth-forgot { margin: 1rem 0 0; text-align: center; }
.auth-forgot a { color: var(--color-accent); text-decoration: none; }
.auth-forgot a:hover { text-decoration: underline; }
.auth-mfa-hint { margin: 0.75rem 0 0; font-size: 0.8125rem; color: var(--color-text-muted); text-align: center; }
.auth-card .input-with-toggle { position: relative; display: flex; align-items: center; }
.auth-card .input-with-toggle .input { flex: 1; padding-right: 2.75rem; min-height: 48px; }
.auth-card .btn-password-toggle { position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%); padding: 0.375rem; background: none; border: none; cursor: pointer; color: var(--color-text-muted); display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.auth-card .btn-password-toggle:hover { color: var(--color-text); }
.auth-card .btn-password-toggle .icon-eye-off { display: none; }
.auth-card .btn-password-toggle[aria-pressed="true"] .icon-eye { display: none; }
.auth-card .btn-password-toggle[aria-pressed="true"] .icon-eye-off { display: block; }
.auth-card .input { min-height: 48px; }
.auth-footer { padding: 1rem; text-align: center; font-size: 0.8125rem; color: var(--color-text-muted); }
.auth-forgot-card .auth-card-title { margin-bottom: 0.5rem; }
.auth-forgot-card .auth-card-subtitle { margin-bottom: 1.5rem; }

@media (max-width: 768px) {
    .auth-main { padding: 1.5rem 1rem; }
    .auth-card { padding: 1.5rem; }
    .auth-card-wrap { max-width: 100%; }
    .auth-submit { min-height: 48px; }
}

/* Logo-only header (MFA page) */
.auth-header--logo-only { padding: 1rem 1.25rem; }
.auth-header--logo-only .auth-logo-img { height: 52px; }
@media (max-width: 768px) {
    .auth-header--logo-only { padding: 0.875rem 1rem; }
    .auth-header--logo-only .auth-logo-img { height: 42px; }
}
