/* Custom Theme - Split Layout & Dashboard */

/* =========================================
   LOGIN PAGE LAYOUT (ALL THEMES)
   ========================================= */
.fi-simple-layout {
    display: flex !important;
    flex-direction: row !important;
    height: 100vh !important;
    width: 100vw !important;
    background-image: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.fi-simple-layout .fi-simple-main-ctn {
    width: 50% !important;
    max-width: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 2rem !important;
    margin: 0 !important;
}

.fi-simple-layout .fi-simple-main {
    width: 100% !important;
    max-width: 450px !important;
    margin: 0 auto !important;
}

.fi-simple-layout form {
    margin-top: 2rem !important;
}

.fi-simple-layout::after {
    content: "" !important;
    display: block !important;
    width: 50% !important;
    height: 100vh !important;
    background-size: 80%, cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    box-shadow: inset 10px 0 30px rgba(0,0,0,0.5) !important;
}

.fi-logo img {
    height: 5rem !important;
    margin: 0 auto !important;
}

@media (max-width: 768px) {
    .fi-simple-layout {
        flex-direction: column !important;
        overflow-y: auto !important;
    }
    
    .fi-simple-layout .fi-simple-main-ctn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 2rem !important;
    }
    
    .fi-simple-layout::after {
        display: none !important; /* Hide image on mobile */
    }
}

/* =========================================
   LOGIN PAGE RED ACCENTS (ALL THEMES)
   ========================================= */
.fi-simple-layout .fi-input-wrp {
    border-radius: 0.375rem !important;
    transition: all 0.3s ease !important;
}

.fi-simple-layout .fi-input-wrp:focus-within {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 1px #dc2626 !important;
}

.fi-simple-layout .fi-checkbox-input:checked {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
}

.fi-simple-layout button[type="submit"] {
    background-color: #dc2626 !important;
    color: #ffffff !important;
    border-radius: 0.375rem !important;
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    border: none !important;
    box-shadow: 0 4px 14px 0 rgba(220, 38, 38, 0.39) !important;
    transition: all 0.3s ease !important;
}

.fi-simple-layout button[type="submit"]:hover {
    background-color: #b91c1c !important;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.23) !important;
    transform: translateY(-1px) !important;
}

/* =========================================
   DARK THEME LOGIN COLORS
   ========================================= */
.dark .fi-simple-layout {
    background-color: #0b0f19 !important;
}

.dark .fi-simple-layout::after {
    background-image: url('../images/truck.png'), linear-gradient(135deg, #1e293b 0%, #020617 100%) !important;
}

.dark .fi-simple-header h1 { color: #ffffff !important; }
.dark .fi-simple-header p { color: #9ca3af !important; }

.dark .fi-input-wrp {
    background-color: #1a202c !important;
    border: 1px solid #2d3748 !important;
}

.dark .fi-input { color: #ffffff !important; }
.dark .fi-fo-field-wrp-label { color: #ffffff !important; }
.dark .fi-fo-field-wrp-label sup { color: #ef4444 !important; }

.dark .fi-checkbox-input {
    background-color: #1a202c !important;
    border-color: #2d3748 !important;
}
.dark .fi-checkbox-label { color: #cbd5e1 !important; }

.dark .fi-icon-btn { color: #6b7280 !important; }
.dark .fi-icon-btn:hover { color: #9ca3af !important; }

/* =========================================
   LIGHT THEME LOGIN COLORS
   ========================================= */
html:not(.dark) .fi-simple-layout {
    background-color: #f8fafc !important;
}

html:not(.dark) .fi-simple-layout::after {
    background-image: url('../images/truck.png'), linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%) !important;
    box-shadow: inset 10px 0 30px rgba(0,0,0,0.1) !important;
}

html:not(.dark) .fi-simple-header h1 { color: #0f172a !important; }
html:not(.dark) .fi-simple-header p { color: #475569 !important; }

html:not(.dark) .fi-input-wrp {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

html:not(.dark) .fi-input { color: #0f172a !important; }
html:not(.dark) .fi-fo-field-wrp-label { color: #0f172a !important; }
html:not(.dark) .fi-fo-field-wrp-label sup { color: #ef4444 !important; }

html:not(.dark) .fi-checkbox-input {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
}
html:not(.dark) .fi-checkbox-label { color: #334155 !important; }

html:not(.dark) .fi-icon-btn { color: #94a3b8 !important; }
html:not(.dark) .fi-icon-btn:hover { color: #475569 !important; }


/* =========================================
   DASHBOARD PREMIUM UI OVERRIDES
   ========================================= */

/* Dark Mode Dashboard Overrides */
.dark .fi-body {
    background-color: #0b0f19 !important;
}

.dark .fi-sidebar {
    background-color: #0f1423 !important;
    border-right: 1px solid #1e293b !important;
}

.dark .fi-topbar {
    background-color: rgba(15, 20, 35, 0.8) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid #1e293b !important;
}

.dark .fi-ta-ctn, .dark .fi-wi-stats-overview-stat, .dark .fi-section, .dark .fi-panel {
    background-color: #151b2b !important;
    border: 1px solid #1e293b !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3) !important;
}

/* Light Mode Topbar Blur */
html:not(.dark) .fi-topbar {
    background-color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px) !important;
}

/* Active sidebar item glow (Both Themes) */
.fi-sidebar-item-active > a {
    background-color: rgba(220, 38, 38, 0.1) !important;
    border-left: 3px solid #dc2626 !important;
}
