/*
|--------------------------------------------------------------------------
| Authentication Pages - Light Mode Override
|--------------------------------------------------------------------------
|
| This CSS file ensures that all authentication pages are displayed in 
| light mode only, regardless of the user's dark mode preference.
| This provides consistent branding and readability for login flows.
|
*/

/* Force light mode for entire auth page body */
body.auth-page,
body.auth-page *,
.auth-container,
.auth-container * {
    color-scheme: light !important;
}

/* Override any dark mode styles */
body.auth-page, .auth-container {
    background-color: #ffffff !important;
    color: #1f2937 !important;
}

/* Force light backgrounds on form elements */
body.auth-container .form-control {
    background-color: #ffffff !important;
    border-color: #d1d5db !important;
    color: #1f2937 !important;
}

body.auth-container .form-control:focus {
    background-color: #ffffff !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25) !important;
}

/* Force light mode on cards and containers */
body.auth-container .card,
body.auth-container .form-container,
body.auth-container .login-media {
    background-color: #ffffff !important;
    color: #1f2937 !important;
    border-color: #e5e7eb !important;
}

/* Force light text colors */
body.auth-container .text-white {
    color: #ffffff !important; /* Keep intentionally white text white */
}

body.auth-container .text-dark {
    color: #1f2937 !important;
}

body.auth-container .text-secondary {
    color: #6b7280 !important;
}

/* Force light mode on buttons */
body.auth-container .btn {
    background-color: #4f46e5 !important;
    border-color: #4f46e5 !important;
    color: #ffffff !important;
}

body.auth-container .btn:hover {
    background-color: #4338ca !important;
    border-color: #4338ca !important;
}

body.auth-container .btn-outline-primary {
    background-color: transparent !important;
    border-color: #4f46e5 !important;
    color: #4f46e5 !important;
}

body.auth-container .btn-outline-primary:hover {
    background-color: #4f46e5 !important;
    border-color: #4f46e5 !important;
    color: #ffffff !important;
}

/* Force light mode on links */
body.auth-container a {
    color: #4f46e5 !important;
}

body.auth-container a:hover {
    color: #4338ca !important;
}

/* Override any CSS custom properties that might enable dark mode */
body.auth-container {
    --bs-body-bg: #ffffff !important;
    --bs-body-color: #1f2937 !important;
    --bs-primary: #4f46e5 !important;
    --bs-secondary: #6b7280 !important;
    --bs-success: #10b981 !important;
    --bs-info: #06b6d4 !important;
    --bs-warning: #f59e0b !important;
    --bs-danger: #ef4444 !important;
    --bs-light: #f9fafb !important;
    --bs-dark: #1f2937 !important;
}

/* Prevent dark mode media queries from affecting auth pages */
@media (prefers-color-scheme: dark) {
    body.auth-container,
    body.auth-container * {
        background-color: inherit !important;
        color: inherit !important;
    }
    
    body.auth-container {
        background-color: #ffffff !important;
        color: #1f2937 !important;
    }
}

/* Ensure SVG icons maintain proper colors in light mode */
body.auth-container svg,
body.auth-container .icon {
    fill: currentColor !important;
    color: inherit !important;
}

/* Force light mode on any potential dark mode classes */
body.auth-container .dark,
body.auth-container .dark-mode,
body.auth-container .theme-dark {
    background-color: #ffffff !important;
    color: #1f2937 !important;
}