/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: 'Arial', sans-serif;
    background-color: rgb(0, 0, 60);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Login Container */
.login-container {
    width: 900px;
    height: 500px;
    display: flex;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

/* Image Section */
.image-section {
    flex: 1;
    /* Ensure equal width with form-section */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
    padding: 20px;
}

.image-section img {
    max-width: 100%;
    /* Prevent image from exceeding the section */
    max-height: 100%;
    /* Fit the height of the section */
    object-fit: contain;
    /* Maintain aspect ratio */
}

/* Form Section */
.form-section {
    flex: 1;
    /* Ensure equal width with image-section */
    background-color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Logo Section */
.logo img {
    width: 80px;
}

.logo h2 {
    margin-top: 10px;
    color: rgb(0, 0, 60);
    font-weight: 600;
    letter-spacing: 1px;
}

/* Form Styling */
form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

form input {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

form input:focus {
    border-color: rgb(0, 0, 60);
    outline: none;
}

/* Form Links (Sign Up & Forgot Password) */
.form-links {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.form-links a {
    color: rgb(0, 0, 60);
    text-decoration: none;
    font-size: 14px;
}

.form-links a:hover {
    text-decoration: underline;
}

/* Submit Button */
form button {
    width: 100%;
    padding: 15px;
    background-color: rgb(0, 0, 60);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 40px;
    transition: background-color 0.3s, color 0.3s;
}

form button:hover {
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 60);
    border: 1px solid rgb(0, 0, 60);
}

/* Reusing index-style.css but adding specific overrides if needed */
.back-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: rgb(0, 0, 60);
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        height: auto;
        width: 95%;
    }

    .image-section,
    .form-section {
        flex: none;
        width: 100%;
        height: auto;
    }

    .image-section img {
        max-width: 50%;
    }

    .form-section {
        padding: 20px;
    }
}