/* Central Login Split-Screen Styles */
.central-login-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    z-index: 10000; /* Above everything */
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    background-color: #0b0f19; /* Very dark modern background */
}

/* LEFT SIDE: HERO ILLUSTRATION */
.central-login-hero {
    flex: 1;
    position: relative;
    background: url('/assets/base/login_bg.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 4rem;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 600px;
}

.hero-overlay h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
    line-height: 1.1;
}

.hero-overlay p {
    font-size: 1.25rem;
    opacity: 0.9;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Gradient overlay to make text pop on the background image */
.central-login-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(11, 15, 25, 0.8) 0%, rgba(11, 15, 25, 0.2) 60%, transparent 100%);
    z-index: 1;
}

/* RIGHT SIDE: FORM PANEL */
.central-login-panel {
    flex: 0 0 625px; /* Increased by 25% */
    min-width: 500px; /* Increased by 25% */
    background: #0b0f19; /* Sleek dark background */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    position: relative;
    z-index: 5;
}

.central-login-container {
    width: 100%;
    max-width: 500px; /* Increased by 25% */
    display: flex;
    flex-direction: column;
}

.central-login-wrapper .login-brand {
    text-align: center;
    margin-bottom: 2.5rem;
}

.central-login-wrapper .login-tree-svg {
    width: 100%;
    max-width: 320px; /* Enlarge SVG tree */
    height: auto;
    margin: 0 auto 0.5rem auto;
    display: block;
    overflow: visible;
}

.central-login-wrapper .login-tree-svg svg {
    width: 100%;
    height: auto;
    display: block;
}

.central-login-wrapper .login-brand h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.03em;
}

.central-login-wrapper .login-subtitle {
    color: #8b949e;
    font-size: 0.95rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sleek Dark Form Styling */
.central-login-wrapper .login-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.central-login-wrapper .form-group {
    margin-bottom: 1.5rem;
}

.central-login-wrapper .form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff !important; /* Brighten label text */
    font-weight: 600;
    font-size: 0.95rem;
}

.central-login-wrapper .form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: #0d1117;
    border: 1px solid #30363d;
    color: #ffffff !important; /* Brighten input text */
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
}

.central-login-wrapper .form-input:hover {
    background: #1f242c !important; /* Dark slate hover, not black */
    border-color: #8b949e !important;
    color: #ffffff !important;
}

.central-login-wrapper .form-input:focus {
    outline: none;
    background: #0d1117 !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2) !important;
    color: #ffffff !important;
}

.central-login-wrapper .btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex !important; /* Ensure centered layout */
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}

.central-login-wrapper .btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.4);
}

.central-login-wrapper .login-alert {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500;
}

.central-login-wrapper .login-alert.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.central-login-wrapper .login-alert.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.central-login-wrapper .login-user-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #0d1117;
    border-radius: 8px;
    border: 1px solid #30363d;
}

.central-login-wrapper .avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.central-login-wrapper .user-details {
    display: flex;
    flex-direction: column;
}

.central-login-wrapper .user-name {
    font-weight: 700;
    color: #fff;
}

.central-login-wrapper .change-user {
    font-size: 0.8rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.central-login-wrapper .change-user:hover {
    text-decoration: underline;
}

.central-login-wrapper .forgot-link {
    font-size: 0.85rem;
    color: #8b949e;
    text-decoration: none;
    transition: color 0.2s;
}

.central-login-wrapper .forgot-link:hover {
    color: var(--primary);
}

.central-login-wrapper .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #8b949e;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.central-login-wrapper .back-link:hover {
    color: #fff;
}

.central-login-wrapper .login-footer {
    margin-top: 3rem;
    color: #8b949e;
    font-size: 0.8rem;
    text-align: center;
    line-height: 1.8;
}

.central-login-wrapper .footer-link {
    color: #8b949e;
    text-decoration: none;
    transition: color 0.2s;
}

.central-login-wrapper .footer-link:hover {
    color: #fff;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .central-login-wrapper {
        background: url('/assets/base/login_bg.png') no-repeat center center;
        background-size: cover;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 1.5rem;
    }
    
    .central-login-hero {
        display: none !important; /* Hide left panel on mobile */
    }
    
    .central-login-panel {
        flex: 1;
        width: 100%;
        max-width: 480px;
        min-width: 0;
        background: rgba(11, 15, 25, 0.9); /* Semi-transparent overlay */
        backdrop-filter: blur(10px); /* Glassmorphism blur */
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.6);
        padding: 2.5rem 1.5rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .central-login-container {
        max-width: 100%;
    }
}
