/* General styles */
body, html {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    height: 100%; /* Ensure height is 100% for the scroll */
    overflow-y: auto; /* Enable vertical scrolling */
    box-sizing: border-box; /* Ensure padding doesn't affect element width/height */
}

*, *::before, *::after {
    box-sizing: inherit; /* Ensure consistent box-sizing */
}

.container {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 100vh; /* Ensure container takes full height */
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Prevent container overflow */
}

/* Left panel styles */
.left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px;
    background-color: #f9f9f9;
}

.logo {
    width: 100%; /* Make logo responsive */
    max-width: 165px; /* Limit maximum size */
    margin-bottom: 30px;
}

.left-panel h2 {
    font-size: 26.4px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.left-panel p {
    margin-bottom: 20px;
    color: #666;
    font-size: 15.4px;
    text-align: center;
}

/* Updated label styling */
form label {
    font-size: 14px;
    color: #555; /* Set the color for labels */
    margin-bottom: 5px;
    display: block; /* Ensure it appears above the input */
}

form {
    width: 100%;
    max-width: 330px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

form input {
    padding: 13.2px;
    font-size: 15.4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s;
}

form input:focus {
    border-color: #007BFF;
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.2);
}

.login-btn {
    padding: 13.2px;
    background-color: #2e6093;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 17.6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.login-btn:hover {
    background-color: #0056b3;
}

.footer-text {
    margin-top: 20px;
    font-size: 13.2px;
    color: #777;
    text-align: center;
}

/* Right panel styles */
.right-panel {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 50px;
    overflow: hidden; /* Prevent overflow */
}

.illustration {
    width: 100%; /* Make image responsive */
    max-width: 650px; /* Limit maximum size */
    height: auto; /* Maintain aspect ratio */
    margin-bottom: 20px;
}

.right-panel h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #5a5656;
}

.right-panel p {
    font-size: 15.4px;
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

/* Responsive styles */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        height: auto; /* Allow the container height to adjust */
    }

    .left-panel, .right-panel {
        flex: unset;
        width: 100%;
        padding: 40px; /* Adjusted padding for smaller screens */
        text-align: center; /* Center-align text for smaller screens */
    }

    .illustration {
        max-width: 400px; /* Adjust image size for smaller screens */
    }

    body {
        overflow-y: scroll; /* Ensure scrolling is enabled in responsive view */
    }
}

@media (max-width: 480px) {
    .left-panel, .right-panel {
        padding: 20px; /* Further reduced padding for very small screens */
    }

    .logo {
        max-width: 120px; /* Adjusted logo size for very small screens */
    }

    .illustration {
        max-width: 250px; /* Adjusted image size for very small screens */
    }

    .left-panel h2 {
        font-size: 20px; /* Adjusted font size for very small screens */
    }

    .right-panel h3 {
        font-size: 18px; /* Adjusted font size for very small screens */
    }

    .right-panel p {
        font-size: 13px; /* Adjusted font size for very small screens */
    }
}
