/* Ajustes das telas independentes de acesso e administração. */
html[data-bs-theme="dark"] .auth-login .form-panel,
html[data-bs-theme="dark"] .auth-login .twofa-email-hint {
    background: var(--theme-page);
}
html[data-bs-theme="dark"] .auth-login .login-card,
html[data-bs-theme="dark"] .auth-first-access .card-custom,
html[data-bs-theme="dark"] .auth-password .card-custom {
    background: var(--theme-surface);
    color: var(--theme-text);
    border-color: var(--theme-border);
}
html[data-bs-theme="dark"] body:is(.auth-latam-login, .auth-latam-first-access) {
    --panel-color: var(--theme-surface);
    --border-color: var(--theme-border);
    --text-primary: var(--theme-text);
    --text-secondary: var(--theme-muted);
    --header-grad-from: #e3d4e8;
    --header-grad-to: #38263d;
}
html[data-bs-theme="dark"] body:is(.auth-latam-login, .auth-latam-first-access) {
    background: linear-gradient(135deg, #111827 0%, #38263d 100%);
}
html[data-bs-theme="dark"] body:is(.auth-latam-login, .auth-latam-first-access) .login-card {
    background: var(--theme-surface);
    color: var(--theme-text);
}
html[data-bs-theme="dark"] body:is(.auth-latam-login, .auth-latam-first-access) .hint {
    background: var(--theme-surface-muted);
    border-color: var(--theme-border);
    color: var(--theme-text);
}
html[data-bs-theme="dark"] body:is(.auth-latam-login, .auth-latam-first-access) .form-control {
    background: #172131;
    color: var(--theme-text);
    border-color: var(--theme-border);
}
html[data-bs-theme="dark"] body:is(.auth-latam-login, .auth-latam-first-access) .ayuda-login {
    border-color: var(--theme-border);
}
html[data-bs-theme="dark"] .auth-login :is(.card-header-text h4, .form-label),
html[data-bs-theme="dark"] .auth-first-access .card-custom .text-dark,
html[data-bs-theme="dark"] .auth-admin :is(.user-main .nome, .portal-toggle .p-name, .portal-card .count) {
    color: var(--theme-text) !important;
}
html[data-bs-theme="dark"] .auth-login :is(.card-header-text p, .twofa-email-hint, .sso-divider),
html[data-bs-theme="dark"] .auth-admin :is(.user-main .email, .portal-toggle .p-desc, .portal-group-title, .saving-indicator) {
    color: var(--theme-muted);
}
html[data-bs-theme="dark"] .auth-login :is(.form-control, .form-control:focus, .btn-microsoft, .btn-microsoft:hover),
html[data-bs-theme="dark"] .auth-admin :is(.portal-toggle, .portal-card) {
    background: var(--theme-surface-muted);
    color: var(--theme-text);
    border-color: var(--theme-border);
}
html[data-bs-theme="dark"] .auth-login :is(.forgot-link, .forgot-link:hover, .twofa-email-hint strong) {
    color: #c7a7ff;
}
html[data-bs-theme="dark"] .auth-login .sso-divider::before,
html[data-bs-theme="dark"] .auth-login .sso-divider::after {
    background: var(--theme-border);
}
html[data-bs-theme="dark"] .auth-login .code-input {
    color: #e5d7ff !important;
    background: #322549 !important;
    border-color: #77569f !important;
}
html[data-bs-theme="dark"] .auth-login .alert-danger { background: #4b222b; color: #ffbdc5; }
html[data-bs-theme="dark"] .auth-login .alert-success { background: #1d3d2b; color: #b7ecc8; }
html[data-bs-theme="dark"] .auth-admin .user-row { border-color: var(--theme-border); }
html[data-bs-theme="dark"] .auth-admin .user-row:hover,
html[data-bs-theme="dark"] .auth-admin .portal-toggle.on { background: var(--theme-surface-muted); }
html[data-bs-theme="dark"] .auth-admin .chip { background: #30355f; color: #d7d9ff; }
html[data-bs-theme="dark"] .auth-admin .chip-more { background: #364457; color: #d9e3ef; }
html[data-bs-theme="dark"] .auth-admin .chip-none { background: #502b33; color: #ffd0d6; }
html[data-bs-theme="dark"] .auth-admin :is(.portal-toggle .p-icon, .portal-card .p-icon) {
    background: #34345c;
    color: #cbc8ff;
}
html[data-bs-theme="dark"] .auth-admin .portal-toggle.on .p-icon { background: #5445aa; color: #fff; }
