/* General styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f4f4f4;
    box-sizing: border-box; /* Ensure padding and margin are included in width calculations */
}

/* Login container */
.login-container {
    display: flex;
    flex-wrap: wrap; /* Allow the container to wrap on smaller screens */
    width: 90%; /* Use a percentage-based width for responsiveness */
    max-width: 900px;
    background: white;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin: 20px;
}

/* Left section */
.login-left {
    width: 100%;
    background: #2e7d32; /* Green background */
    color: white;
    padding: 40px;
    text-align: center;
}

.login-left h1 {
    font-size: 24px; /* Adjust size for responsiveness */
}

.login-left p {
    font-size: 16px;
}

/* Right section */
.login-right {
    width: 100%;
    padding: 40px;
    text-align: center;
}

/* Form styling */
.input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    background: #fff;
}

.input-group i {
    color: #2e7d32;
    margin-right: 10px;
}

input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 16px;
}

/* Button */
button {
    width: 100%;
    padding: 10px;
    background: #2e7d32;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background: #1b5e20;
}

/* Error message */
.error {
    color: red;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Forgot Password & Register Links */
.login-links {
    margin-top: 15px;
    display: flex;
    flex-direction: column; /* Stack vertically on small screens */
    justify-content: center;
    align-items: center;
}

.login-links a {
    color: #2e7d32;
    text-decoration: none;
    font-size: 14px;
    margin: 5px 0; /* Add margin between links */
}

.login-links .register-btn {
    padding: 8px 15px;
    background: #2e7d32;
    color: white;
    border-radius: 5px;
    margin-top: 10px;
}

.login-links .register-btn:hover {
    background: #1b5e20;
}

/* Footer */
footer {
    position: relative;
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #555;
    margin-top: 20px; /* Add margin for spacing from the content */
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .login-container {
        flex-direction: column; /* Stack the sections vertically */
        width: 100%; /* Use full width */
    }

    .login-left, .login-right {
        width: 100%; /* Each section takes full width */
        padding: 20px; /* Reduce padding */
    }

    .login-left h1 {
        font-size: 20px; /* Make the header smaller on mobile */
    }

    .login-left p {
        font-size: 14px; /* Smaller text for better readability */
    }

    .input-group {
        padding: 8px; /* Reduce padding for smaller screens */
        margin: 8px 0; /* Reduce margin */
    }

    input {
        font-size: 14px; /* Adjust input font size */
    }

    button {
        font-size: 14px; /* Make button text smaller */
    }

    .login-links {
        flex-direction: column; /* Stack the links vertically */
    }

    .login-links a {
        font-size: 12px; /* Smaller font size for mobile */
    }
}

@media screen and (max-width: 480px) {
    .login-left h1 {
        font-size: 18px; /* Even smaller text size */
    }

    .login-left p {
        font-size: 12px; /* Adjust the paragraph text */
    }

    .input-group {
        padding: 6px; /* Further reduce padding */
    }

    input {
        font-size: 14px; /* Adjust input font size */
    }

    button {
        font-size: 14px; /* Smaller button text */
    }
}
