/* ==========================================================================
   1. GLOBAL SYSTEM ARCHITECTURE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    background: #F7F4EF; /* Premium Academic Cream Anchor Base */
    overflow-x: hidden;
}

.split-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* ==========================================================================
   2. LEFT SIDE: DARK GOLD METALLIC VISUAL IDENTITY (UPDATED)
   ========================================================================== */
.brand-side {
    flex: 1.2; 
    position: relative;
    background: linear-gradient(135deg, #141412 0%, #1E1D1A 50%, #11100E 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    border-right: 1px solid rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.ambient-glow-1 {
    position: absolute;
    top: -15%;
    left: -10%;
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.22) 0%, transparent 70%);
    filter: blur(90px);
    animation: pulseGlow 12s ease-in-out infinite alternate;
}

.ambient-glow-2 {
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(75, 142, 130, 0.15) 0%, transparent 65%);
    filter: blur(100px);
    animation: pulseGlow 16s ease-in-out infinite alternate-reverse;
}

.ambient-glow-3 {
    position: absolute;
    top: 30%;
    left: 40%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 75%);
    filter: blur(60px);
}

@keyframes pulseGlow {
    0% { transform: translate(0px, 0px) scale(1); }
    100% { transform: translate(20px, -30px) scale(1.05); }
}

.brand-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column; 
    align-items: center;    
    justify-content: center;
    text-align: center;     
    padding: 40px;
}

#logo-img {
    height: 500px; /* Kept it premium and readable rather than 500px scaling */
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;    
    filter: drop-shadow(0 8px 20px rgba(212, 175, 55, 0.35)); 
}

.brand-title {
    font-size: 2.6rem; 
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 8px;     
    line-height: 1.2;

    /* 🛠️ MANUAL WORD SHIFTING CONTROLS 🛠️ */
    margin-left: 15px;   
    margin-right: 100px;  
}

.brand-tagline {
    font-size: 1.1rem; 
    color: #A09E9A; 
    font-weight: 500;
    letter-spacing: -0.2px;

    /* 🛠️ MATCH THE EXACT SAME VALUES HERE TO KEEP THE TAGLINE ALIGNED 🛠️ */
    margin-left: 15px;   
    margin-right: 100px;  
}

.brand-title .soma { 
    color: #FFFFFF; 
}
.brand-title .reel {
    background: linear-gradient(135deg, #FFE484 0%, #D4AF37 50%, #B3922E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   3. RIGHT SIDE: THE COMMAND CENTER FORM AREA
   ========================================================================== */
.form-side {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #F7F4EF;
    padding: 40px;
}

.glass-panel {
    width: 100%;
    max-width: 390px;
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(35px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(35px) saturate(140%) !important;
    border-radius: 28px !important;
    border: 2px solid rgba(255, 255, 255, 0.95) !important;
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 1),
        0 4px 12px rgba(50, 45, 35, 0.02),
        0 25px 60px rgba(50, 44, 32, 0.14) !important;
    padding: 50px 36px !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative;
}

form {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
}

.welcome-header {
    text-align: center;
    margin-bottom: 30px;
}

.welcome-text {
    font-size: 1.65rem;
    font-weight: 700;
    color: #1E1E1E;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.login-subtext {
    font-size: 0.9rem;
    color: #666666;
}

/* ==========================================================================
   4. INPUT CONTROLS
   ========================================================================== */
.glass-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(212, 175, 55, 0.15) !important;
    border-radius: 14px; 
    font-size: 0.95rem;
    color: #1E1E1E;
    outline: none;
    transition: all 0.2s ease;
}

.glass-input::placeholder { color: #888888; }
.glass-input:focus {
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: rgba(212, 175, 55, 0.5) !important;
    box-shadow: 0 0 0 3.5px rgba(212, 175, 55, 0.08);
}

.password-container {
    position: relative;
    width: 100%;
    margin-top: 14px;
    margin-bottom: 20px;
}

.eye-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #777777;
    cursor: pointer;
    font-size: 0.9rem;
}

/* ==========================================================================
   5. TACTILE GEL BUTTONS
   ========================================================================== */
.glass-btn, .primary-btn {
    width: 100%;
    padding: 14px 24px !important;
    border: none !important;
    border-radius: 14px !important; 
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: all 0.2s ease-in-out;
}       

/* Neutral, High-End White/Cream Google Button */
#googleLoginBtn {
    background: #FFFFFF !important;
    color: #1E1E1E !important; /* Crisp dark text */
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.04),
        inset 0 -2px 0px rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 4px;
    text-shadow: none !important; /* Removes the white text shadow */
}

/* 🍦 The Clean, Fixed Cream Hover State 🍦 */
#googleLoginBtn:hover {
    background: #F5F0E6 !important; /* Smooth transition to a premium academic cream */
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.05),
        inset 0 -2.5px 0px rgba(0, 0, 0, 0.06) !important;
    transform: translateY(-1px);
    filter: none !important;
}

/* Smooth Click/Active State for the Glossy Cream Button */
#googleLoginBtn:active {
    background: #EAE3D2 !important;
    transform: translateY(0px);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.06) !important;
}

form button[type="submit"] {
    background: linear-gradient(180deg, #F0D782 0%, #D4AF37 45%, #A18120 100%) !important;
    box-shadow: 
        0 8px 20px rgba(212, 175, 55, 0.4),
        inset 0 -3px 0px rgba(0, 0, 0, 0.25),
        inset 0 1.5px 3px rgba(255, 255, 255, 0.5) !important;
    margin-top: 24px !important; 
}

.glass-btn:hover, form button[type="submit"]:hover {
    transform: translateY(-1.5px);
    filter: brightness(1.06);
    box-shadow: 
        0 10px 24px rgba(212, 175, 55, 0.45),
        inset 0 -3px 0px rgba(0, 0, 0, 0.25);
}

.glass-btn:active, form button[type="submit"]:active { 
    transform: translateY(1px); 
    filter: brightness(0.95);
}

/* ==========================================================================
   6. CONNECTOR INTERFACES
   ========================================================================== */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #888888;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin: 24px 0 !important;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}
.divider:not(:empty)::before { margin-right: 1.2em; }
.divider:not(:empty)::after { margin-left: 1.2em; }

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    margin-top: 8px !important;
    padding: 4px 2px;
}

.remember-me {
    color: #444444 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
}
.remember-me input[type="checkbox"] { 
    accent-color: #D4AF37 !important; 
    transform: scale(1.05);
}

.forgot-link {
    color: #3D7A6F !important; 
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}
.forgot-link:hover {
    color: #D4AF37 !important; 
}

.signup-link {
    text-align: center;
    font-size: 0.9rem;
    color: #555555;
    margin-top: 26px;
}
.signup-link a {
    color: #B3922E;
    text-decoration: none;
    font-weight: 600;
}

/* ==========================================================================
   7. MODAL OVERLAY SPECIFICATION
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(30, 30, 25, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(25px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 35px;
    width: 90%;
    max-width: 360px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.06);
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 1.4rem;
    color: #777777;
    cursor: pointer;
}

.modal-content h3 { margin-bottom: 6px; color: #1E1E1E; font-weight: 700; }
.modal-content p { font-size: 0.88rem; color: #666666; margin-bottom: 16px; }
.modal-content input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    outline: none;
    margin-bottom: 16px;
    color: #1E1E1E;
}

.reset-btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(180deg, #EAD075, #D4AF37);
    color: white;
    font-weight: 600;
    cursor: pointer;
}

/* ==========================================================================
   8. RESPONSIVE ARCHITECTURE (MOBILE STACKING)
   ========================================================================== */
@media (max-width: 900px) {
    .split-container { flex-direction: column; }
    .brand-side { display: none; } 
    .form-side { min-height: 100vh; }
}