/* Modern Login Page Styles */
:root {
    --login-bg: #f3f4f6;
    --login-primary: #0d6efd;
    --login-accent: #0a58ca;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--login-bg);
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    overflow: hidden;
}

/* Left Side - Brand Logic */
.login-brand-side {
    flex: 1;
    background: linear-gradient(135deg, var(--theme-color, #0d6efd) 0%, #032d6b 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    /* Optional: Add a subtle pattern overlay here if desired */
}

/* Decorative circles */
.login-brand-side::before,
.login-brand-side::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.login-brand-side::before {
    width: 300px;
    height: 300px;
    top: -50px;
    left: -50px;
}

.login-brand-side::after {
    width: 500px;
    height: 500px;
    bottom: -100px;
    right: -100px;
}

.brand-content {
    z-index: 1;
    text-align: center;
    max-width: 500px;
}

.brand-logo-container {
    margin-bottom: 2rem;
    font-size: 4rem;
}

.brand-logo-img {
    max-width: 100%;
    max-height: 120px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.brand-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Right Side - Form Logic */
.login-form-side {
    flex: 1; /* Initially 50% split on desktop */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    padding: 2rem;
    position: relative;
}

.login-form-container {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
}

.login-header h2 {
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #6c757d;
}

.form-floating-custom .form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    height: auto;
    font-size: 1rem;
}

.form-floating-custom .form-control:focus {
    border-color: var(--login-primary);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.password-toggle-btn {
    border-color: #dee2e6;
    background: white;
    color: #6c757d;
}

.password-toggle-btn:hover {
    background: #f8f9fa;
    color: #333;
}

.btn-login {
    border-radius: 8px;
    padding: 0.75rem;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(13, 110, 253, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(13, 110, 253, 0.25);
}

.footer-copy {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: #adb5bd;
}

/* Responsive Handling */
@media (max-width: 992px) {
    .login-wrapper {
        flex-direction: column;
    }
    
    .login-brand-side {
        flex: 0 0 auto;
        padding: 2rem 1.5rem;
        min-height: 200px; /* Short header on mobile */
    }
    
    .login-brand-side::before,
    .login-brand-side::after {
        display: none; /* Hide decorators on mobile to save space */
    }

    .brand-logo-container {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
        display: none; /* Hide big icon on mobile, keep title */
    }
    
    .brand-logo-img {
        max-height: 60px;
    }

    .brand-title {
        font-size: 1.5rem;
        margin-bottom: 0;
    }

    .brand-subtitle {
        display: none; /* Hide subtitle on mobile */
    }

    .login-form-side {
        flex: 1 1 auto;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        margin-top: -20px; /* Overlap effect */
        box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
        z-index: 10;
        align-items: flex-start; /* Align top on mobile */
        padding-top: 3rem;
    }
}
