/* Custom Auth Pages Styling - Clean and Simple */

/* Basic page setup */
body {
    background: #f5f5f5 !important;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Main wrapper */
.auth-page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f5f5f5;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Content area */
.auth-page-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    z-index: 2;
    background: #f5f5f5 !important;
}

/* Container styling */
.auth-page-content .container {
    width: 100%;
    max-width: 1200px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Card styling */
.auth-page-content .card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: none !important;
}

.auth-page-content .card-body {
    padding: 1.25rem;
}

/* Row and column centering */
.auth-page-content .row.justify-content-center {
    margin: 0;
    width: 100%;
}

.auth-page-content .col-md-8.col-lg-6.col-xl-5 {
    display: flex;
    justify-content: center;
}

/* Header spacing */
.auth-page-content .row:first-child {
    margin-bottom: 1rem;
}

/* Footer styling */
.footer {
    background: #f8f9fa !important;
    color: #6c757d !important;
    border-top: 1px solid #dee2e6;
    padding: 0.75rem 0;
    margin-top: auto;
    position: relative;
    z-index: 3;
}

/* Dark Mode Styles - Updated for Bootstrap data-bs-theme approach */
html[data-bs-theme="dark"] body {
    background: #1a1a1a !important;
}

html[data-bs-theme="dark"] .auth-page-wrapper {
    background: #1a1a1a !important;
}

html[data-bs-theme="dark"] .auth-page-content {
    background: #1a1a1a !important;
    color: #ffffff !important;
}

html[data-bs-theme="dark"] .card {
    background: #2d2d2d !important;
    border: 1px solid #404040 !important;
    color: #ffffff !important;
}

html[data-bs-theme="dark"] .form-control {
    background: #404040 !important;
    border-color: #555555 !important;
    color: #ffffff !important;
}

html[data-bs-theme="dark"] .form-control:focus {
    background: #404040 !important;
    border-color: #405189 !important;
    color: #ffffff !important;
}

html[data-bs-theme="dark"] .form-label {
    color: #ffffff !important;
}

html[data-bs-theme="dark"] .text-muted {
    color: #b0b0b0 !important;
}

html[data-bs-theme="dark"] .footer {
    background: #2d2d2d !important;
    color: #b0b0b0 !important;
    border-top: 1px solid #404040 !important;
}

/* Dark Mode Toggle Button - FIXED */
.dark-mode-toggle {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 9999 !important;
    background: #ffffff !important;
    border: 2px solid #e9ecef !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

.dark-mode-toggle:hover {
    background: #f8f9fa !important;
    transform: scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
}

.dark-mode-toggle i {
    font-size: 22px !important;
    color: #405189 !important;
    transition: all 0.3s ease !important;
}

/* Dark mode toggle styling - FORCE DARK BACKGROUND */
html[data-bs-theme="dark"] .dark-mode-toggle {
    background: #2d2d2d !important;
    border: 2px solid #555555 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

html[data-bs-theme="dark"] .dark-mode-toggle:hover {
    background: #404040 !important;
    border-color: #666666 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
}

html[data-bs-theme="dark"] .dark-mode-toggle i {
    color: #ffffff !important;
}

html[data-bs-theme="dark"] .dark-mode-toggle:hover i {
    color: #ffffff !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .auth-page-content {
        padding: 0;
    }
    
    .auth-page-content .card-body {
        padding: 1rem;
    }
    
    .auth-page-content .row:first-child {
        margin-bottom: 0.25rem;
    }
}

/* For larger screens */
@media (min-height: 700px) {
    .auth-page-wrapper {
        min-height: 100vh;
    }
    
    .auth-page-content {
        min-height: auto;
        max-height: calc(100vh - 80px);
    }
}
