/**
 * Auth layout dark mode (no .content-body). Loads after feature-dark-shared.
 *
 * layouts/auth.blade.php uses a later inline <style> with .container.flex-row-fluid { background: white }.
 * These selectors beat that rule (higher specificity + !important where needed).
 */

body[data-theme-version="dark"].auth-body-theme,
body[data-theme-version="dark"].auth-body-theme .authincation {
    background-color: var(--admin-surface-2, #151521);
    color: var(--admin-text, #e9ecef);
}

/* Right column: login form (overrides inline white panel) */
body[data-theme-version="dark"].auth-body-theme .container.flex-row-fluid {
    background-color: var(--admin-surface-2, #151521) !important;
    color: var(--admin-text, #e9ecef);
}

body[data-theme-version="dark"].auth-body-theme .authincation-content a.text-primary {
    color: #7dd3fc !important;
}

body[data-theme-version="dark"].auth-body-theme .authincation-content a.text-primary:hover {
    color: #bae6fd !important;
}

body[data-theme-version="dark"].auth-body-theme .form-check-input {
    background-color: var(--admin-input-bg, #2a2a3c);
    border-color: rgba(255, 255, 255, 0.2);
}

body[data-theme-version="dark"].auth-body-theme .form-check-input:checked {
    background-color: #0095ff;
    border-color: #0095ff;
}

body[data-theme-version="dark"].auth-body-theme .language-switcher .dropdown-toggle {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: var(--admin-text, #e9ecef) !important;
}

body[data-theme-version="dark"].auth-body-theme .language-switcher .dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}

body[data-theme-version="dark"].auth-body-theme .language-switcher .dropdown-menu {
    background: var(--admin-surface, #1e1e2d) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
}

body[data-theme-version="dark"].auth-body-theme .language-switcher .dropdown-item {
    color: var(--admin-text, #e9ecef) !important;
}

body[data-theme-version="dark"].auth-body-theme .language-switcher .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

body[data-theme-version="dark"].auth-body-theme .language-switcher .dropdown-item.active {
    background: rgba(0, 149, 255, 0.15) !important;
    color: #7dd3fc !important;
}

body[data-theme-version="dark"].auth-body-theme .authincation-content h1,
body[data-theme-version="dark"].auth-body-theme .authincation-content h2,
body[data-theme-version="dark"].auth-body-theme .authincation-content h3 {
    color: var(--admin-text, #f1f5f9) !important;
}

body[data-theme-version="dark"].auth-body-theme .authincation-content .text-muted {
    color: var(--admin-text-muted, #94a3b8) !important;
}

body[data-theme-version="dark"].auth-body-theme .authincation-content .form-control {
    background-color: rgba(30, 30, 45, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: var(--admin-text, #e9ecef) !important;
}

body[data-theme-version="dark"].auth-body-theme .authincation-content .form-control::placeholder {
    color: rgba(255, 255, 255, 0.45) !important;
}

body[data-theme-version="dark"].auth-body-theme .authincation-content .form-check-label {
    color: var(--admin-text-muted, #cbd5e1) !important;
}

body[data-theme-version="dark"].auth-body-theme .authincation-content .btn-link {
    color: var(--admin-text-muted, #94a3b8) !important;
}

body[data-theme-version="dark"].auth-body-theme .modal-content {
    background-color: var(--admin-surface, #1e1e2d);
    color: var(--admin-text, #e9ecef);
    border-color: var(--admin-border, rgba(255, 255, 255, 0.12));
}

body[data-theme-version="dark"].auth-body-theme .modal-header,
body[data-theme-version="dark"].auth-body-theme .modal-footer {
    border-color: var(--admin-border, rgba(255, 255, 255, 0.12));
}

body[data-theme-version="dark"].auth-body-theme .alert-info {
    background: rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.35);
    color: #bae6fd;
}

body[data-theme-version="dark"].auth-body-theme .alert-danger {
    background: rgba(220, 38, 38, 0.15);
    border-color: rgba(248, 113, 113, 0.35);
    color: #fecaca;
}

body[data-theme-version="dark"].auth-body-theme .card {
    background: var(--admin-surface, #1e1e2d);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--admin-text, #e9ecef);
}
