/* General Body Styling */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    height: 100vh;
    overflow: hidden; /* Prevents scrolling on DESKTOP */
    background-color: #f8f9fa;
}

/* Main Page Wrapper using Flexbox */
.login-page-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Left Side - Branding Section */
.branding-side {
    flex: 1;
    background: linear-gradient(135deg, #0052D4 0%, #4364F7 50%, #6FB1FC 100%);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

.branding-content {
    max-width: 450px;
}

.logo {
    max-width: 150px;
    margin-bottom: 24px;
}

.branding-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.branding-content p {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.9;
}

/* Right Side - Form Section */
.form-side {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    padding: 40px;
}

.form-container {
    width: 100%;
    max-width: 400px;
    animation: slideInUp 0.8s ease-in-out;
}

.form-container h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.subtitle {
    color: #666;
    margin-bottom: 32px;
}

.input-group {
    margin-bottom: 24px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.input-group input {
    width: 100%;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #4364F7;
    box-shadow: 0 0 0 3px rgba(67, 100, 247, 0.2);
}

.btn-login {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background-color: #4364F7;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-login:hover {
    background-color: #0052D4;
    transform: translateY(-2px);
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 8px;
    margin-top: 24px;
    text-align: center;
}

.form-footer {
    text-align: center;
    margin-top: 40px;
    color: #aaa;
    font-size: 0.9rem;
}

/* Responsive Design for Mobile and Tablets */
@media (max-width: 900px) {
    /* --- THIS IS THE FIX --- */
    body {
        height: auto; /* Let the body height grow with the content */
        overflow-y: auto; /* Enable vertical scrolling */
    }
    /* --- END OF FIX --- */

    .login-page-wrapper {
        flex-direction: column;
    }
    .branding-side {
        flex: 0;
        padding: 40px 20px;
        min-height: 250px;
    }
    .form-side {
        flex: 1;
        align-items: flex-start; /* Align form to the top */
        padding: 40px 20px;
    }
    .branding-content h1 {
        font-size: 2rem;
    }
}

/* Keyframe Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


