/* =========================================
   1. GLOBAL RESET & THEME
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Spline+Sans:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Spline Sans', sans-serif;
}

body {
    background-color: #020617; /* Dark Theme Background */
    color: #e2e8f0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Background Glows */
.glow-bg {
    position: absolute;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.3;
}
.glow-1 { top: -10%; left: -10%; width: 500px; height: 500px; background: radial-gradient(circle, #4f46e5 0%, transparent 70%); }
.glow-2 { bottom: -10%; right: -10%; width: 400px; height: 400px; background: radial-gradient(circle, #10b981 0%, transparent 70%); }

/* =========================================
   2. MAIN CARD LAYOUT
   ========================================= */
.login-wrapper {
    width: 900px;
    min-height: 600px;
    
    /* Dark Glass Wrapper */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

/* =========================================
   3. LEFT PANEL (Navbar Style - Light)
   ========================================= */
.login-left {
    width: 40%;
    
    /* CHANGED: Match Navbar (Glassy White) */
    background: rgba(255, 255, 255, 0.95); 
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 40px;
    overflow: hidden;
    
    /* CHANGED: Text Color to Dark */
    color: #1e293b; 
}

.visual-container {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.floating-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    /* CHANGED: Lighter shadow for light bg */
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
    animation: float 4s ease-in-out infinite;
    margin-bottom: 20px;
}

.brand-text-img {
    width: 180px;
    height: auto;
    /* CHANGED: Removed invert filter so logo is dark/original */
    filter: none; 
    margin-bottom: 10px;
    opacity: 1;
}

.brand-tagline {
    font-size: 14px;
    /* CHANGED: Darker slate text */
    color: #64748b; 
    max-width: 250px;
    line-height: 1.5;
    font-weight: 500;
}

/* Decorative Circles (Adapted for Light BG) */
.circle {
    position: absolute;
    border-radius: 50%;
}
/* Faint Indigo */
.c-1 { 
    width: 300px; height: 300px; top: -50px; left: -50px; 
    background: rgba(79, 70, 229, 0.05); 
}
/* Faint Emerald/Green */
.c-2 { 
    width: 200px; height: 200px; bottom: -50px; right: -50px; 
    background: rgba(16, 185, 129, 0.05); 
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* =========================================
   4. RIGHT PANEL (Form - Dark Glass Integration)
   ========================================= */
.login-right {
    width: 60%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Transparent to show the wrapper's dark glass background */
    background-color: transparent; 
}

.form-header {
    margin-bottom: 30px;
}

.form-header h3 {
    font-size: 28px;
    color: #f8fafc; /* White text */
    font-weight: 700;
    margin-bottom: 8px;
}

.form-header p {
    color: #94a3b8; /* Slate text */
    font-size: 14px;
}

/* --- Error Banner --- */
.error-banner {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* --- Inputs (Dark Theme) --- */
.input-group {
    margin-bottom: 16px;
}

.row-group {
    display: flex;
    gap: 15px;
}

.row-group .input-group {
    flex: 1;
}

.input-group label {
    font-size: 13px;
    color: #cbd5e1; /* Light Slate Label */
    margin-bottom: 6px;
    display: block;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 40px 12px 40px;
    border-radius: 10px;
    
    /* Dark Input Style */
    background-color: #0f172a; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    border-color: #4f46e5;
    background-color: #1e293b;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #64748b;
    pointer-events: none;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: #4f46e5;
}

.toggle-password span {
    font-size: 18px; 
}

/* --- Checkbox --- */
.login-options {
    margin-bottom: 24px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    color: #94a3b8;
}

.checkbox-container input {
    margin-right: 8px;
    accent-color: #4f46e5;
}

.checkbox-container a {
    color: #818cf8;
    text-decoration: none;
    font-weight: 600;
}

.checkbox-container a:hover {
    color: #a5b4fc;
}

/* --- BUTTON (Wheat -> Black Slide Animation) --- */
.login-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    
    /* Base Button Properties */
    position: relative;
    overflow: hidden;
    z-index: 1;
    
    background-color: wheat; /* Start Color */
    color: #000000;          /* Start Text */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Text Layer */
.login-btn span {
    position: relative;
    z-index: 2;
    transition: color 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Slide Layer */
.login-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -20%;
    width: 140%;
    height: 100%;
    z-index: 0;
    
    background-color: #000000; /* Slide Color (Black) */
    
    transform: skew(30deg) translate3d(-120%, 0, 0); 
    transition: transform 0.4s cubic-bezier(0.3, 1, 0.8, 1);
}

.login-btn:hover::before {
    transform: skew(30deg) translate3d(0, 0, 0);
}

.login-btn:hover span {
    color: #ffffff; /* Hover Text (White) */
}

/* --- Footer Links --- */
.signup-text {
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
    color: #64748b;
}

.signup-text a {
    color: #818cf8;
    text-decoration: none;
    font-weight: 600;
}

.signup-text a:hover {
    text-decoration: underline;
    color: #a5b4fc;
}

/* =========================================
   5. RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        width: 100%;
        max-width: 450px;
        min-height: auto;
    }

    .login-left {
        width: 100%;
        padding: 30px;
        min-height: 200px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .login-right {
        width: 100%;
        padding: 30px 24px;
    }
    
    .floating-logo { width: 80px; height: 80px; }
    .brand-text-img { width: 140px; }
    
    .row-group { flex-direction: column; gap: 0; }
}