/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and Page Layout */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    overflow-x: hidden;
}

/* Form Section with Logo */
.form-section {
    position: relative;
    height: 100vh;
    background-image: url('https://jguni.in/images/campus/3.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
}

/* Overlay Styling */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Flex container for form and logo */
.form-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 40%;
    max-width: 1200px;
    background-color: white;
    border-radius: 10px;
    padding: 30px;
}

/* Logo Section on the Left */
.logo-section {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 40%; /* Takes up 40% of the container width */
    text-align: center;
}

.navbar-brand img {
    height: 150px;
    margin-bottom: 20px;
}

/* Form Section on the Right */
.form-section-right {
    width: 55%; /* Takes up 55% of the container width */
}

h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

label {
    font-size: 14px;
    color: #555;
}

input, select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

button.submit-btn {
    background-color: rgb(205 23 0);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
}

button.submit-btn:hover {
    background-color: #ec2200;
}

/* Footer Styling */
footer {
    background-color: #bc1200;
    color: white;
    text-align: center;
    padding: 15px;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Media Queries for Mobile Devices */
@media (max-width: 768px) {
    .form-container {
        flex-direction: column;
        padding: 20px;
    }

    .logo-section {
        width: 100%;
        margin-bottom: 20px;
    }

    .form-section-right {
        width: 100%;
    }

    .navbar-brand img {
        width: 80px;
        margin-right: 5px;
    }

    h2 {
        font-size: 20px;
    }

    .form-group {
        margin-bottom: 10px;
    }

    label {
        font-size: 13px;
    }

    input, select {
        font-size: 13px;
        padding: 8px;
    }

    button.submit-btn {
        font-size: 14px;
        padding: 8px 16px;
    }

    footer {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .logo-section {
        width: 100%;
        margin-bottom: 15px;
    }

    .form-section-right {
        width: 100%;
    }

    .navbar-brand img {
        width: 70px;
    }

    .form-container {
        width: 90%;
        padding: 15px;
    }

    h2 {
        font-size: 18px;
    }

    .form-group {
        margin-bottom: 8px;
    }

    label {
        font-size: 12px;
    }

    input, select {
        font-size: 12px;
        padding: 7px;
    }

    button.submit-btn {
        font-size: 14px;
        padding: 8px 16px;
    }

    footer {
        font-size: 12px;
    }
}
