/* --- Global Styles --- */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    overflow: auto;
}

/* ========================================= */
/* --- SPLIT-SCREEN LOGIN STYLES ---         */
/* ========================================= */

#login-view.split-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* --- Left Side (Premium Branding) --- */
#login-view .login-left {
    flex: 1;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#login-view .bg-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0) 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

#login-view .glow-1 {
    top: -150px;
    left: -150px;
}

#login-view .glow-2 {
    bottom: -150px;
    right: -150px;
}

#login-view .branding-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 40px;
    max-width: 600px;
}

#login-view .huge-logo {
    width: 130px;
    height: 130px;
    margin-bottom: 25px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

#login-view .branding-content h1 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    line-height: 1.2;
}

#login-view .branding-content h2 {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 400;
    margin: 10px 0 20px 0;
    color: #d4af37;
    letter-spacing: 2px;
}

#login-view .branding-content p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    opacity: 0.7;
}

/* --- Right Side (Action Panel) --- */
#login-view .login-right {
    width: 100%;
    max-width: 550px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    z-index: 20;
}

#login-view .form-container {
    padding: 60px 50px;
    margin: auto 0;
}

#login-view .form-header h2 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    color: #0f172a;
    margin: 0 0 5px 0;
    font-weight: 700;
}

#login-view .form-header p {
    color: #64748b;
    margin: 0 0 30px 0;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
}

#login-view .form-group {
    text-align: left;
    margin-bottom: 20px;
}

#login-view .form-group label {
    display: block;
    font-size: clamp(0.65rem, 1vw, 0.75rem);
    font-weight: 600;
    margin-bottom: 8px;
    color: #334155;
    text-transform: uppercase;
}

#login-view .input-wrapper {
    position: relative;
}

#login-view .input-wrapper i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: #d4af37;
}

#login-view .form-group input,
#login-view .form-group select {
    width: 100%;
    padding: 14px 15px 14px 48px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #0f172a;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    box-sizing: border-box;
    outline: none;
    transition: all 0.3s ease;
}

#login-view .form-group input:focus,
#login-view .form-group select:focus {
    background: #ffffff;
    border-color: #d4af37;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

#login-view .form-group select option {
    background: #ffffff;
    color: #0f172a;
}

#login-view .login-btn {
    width: 100%;
    padding: 16px;
    background: #0f172a;
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: transform 0.2s, background 0.3s;
}

#login-view .login-btn:hover {
    background: #1e293b;
    transform: translateY(-2px);
}

#login-view .error-box {
    display: none;
    padding: 14px;
    margin-bottom: 25px;
    border-radius: 10px;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: #ef4444;
}

#login-view .error-box.alert-success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #16a34a;
}

#login-view .footer-text {
    text-align: center;
    font-size: clamp(0.7rem, 1vw, 0.8rem);
    color: #94a3b8;
    margin-top: 40px;
}

/* --- Utility Classes --- */
.hidden { display: none !important; }

.alert-success {
    display: block !important;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 12px;
    border-radius: 10px;
}

.alert-error {
    display: block !important;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 12px;
    border-radius: 10px;
}

/* ========================================= */
/* --- MOBILE RESPONSIVENESS ---             */
/* ========================================= */
@media (max-width: 900px) {
    #login-view.split-layout {
        flex-direction: column;
    }
    #login-view .login-left {
        flex: none;
        padding: 40px 20px;
        height: auto;
    }
    #login-view .login-right {
        max-width: 100%;
        flex: 1;
    }
    #login-view .huge-logo {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }
    #login-view .form-container {
        padding: 40px 30px;
    }
}