﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: url("/Images/LoginImage/bg.jpg") no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px; /* Added padding for better mobile spacing */
}

.login-container {
    display: flex;
    width: 900px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Left Container (Welcome Section) */
.left-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    background: rgba(0, 0, 0, 0.5);
    background-image: url("/Images/LoginImage/welcome3.jpg") ;
    background-position: center;
    color: #ffee00;
    text-align: center;
    padding-bottom: 135px;
}

/* Right Container (Login Section) */
.right-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 40px;
}

/* Login Box */
.login-box {
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Circular College Logo */
.college-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 20px;
}

.login-box input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.login-box a {
    text-align: center;
    font-size: 14px;
    color: blue;
    display: block;
    margin: 10px 0;
    text-decoration: none;
}

    .login-box a:hover {
        text-decoration: underline;
    }

/* Login Button */
.login-box button {
    width: 100%;
    padding: 10px;
    background: #026940;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

    .login-box button:hover {
        background: darkblue;
    }

/* Register Student Link */
.register-link {
    margin-top: 15px;
    font-size: 14px;
}

    .register-link a {
        color: blue;
        text-decoration: none;
        font-weight: bold;
    }

        .register-link a:hover {
            text-decoration: underline;
        }

/* Responsive Design */
@media screen and (max-width: 768px) {
    .login-container {
        flex-direction: column; /* Stack sections vertically */
        width: 100%;
        height: auto; /* Allow content height */
        max-height: none; /* Ensure it can expand */
        overflow: auto; /* Enable scrolling */
    }

    .left-container {
        width: 100%;
        height: 400px; /* Adjust height for visibility */
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        text-align: center;
    }

    .right-container {
        width: 100%;
        padding: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        background: white;
    }

    .login-box {
        width: 90%; /* Adjust width for smaller screens */
        max-width: 350px;
    }

        .login-box input, .login-box button {
            font-size: 16px;
        }

    body {
        height: auto;
        overflow-y: auto; /* Enable vertical scrolling */
    }
}
