body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-image: url("../media/Background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #333;
    overflow: hidden;
}

/* Login Container */
.login-container {
    display: flex;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 700px;
    width: 90%;
    transition: all 0.5s ease-in-out;
}

/* Left Section - Information */
.login-left {
    flex: 1;
    background-color: #8B0000;
    color: #ffffff;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.college-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    margin-bottom: 0px;
    font-weight: 700;
    line-height: 1.2;
}

.system-title {
    font-size: 1.em;
    color: #f3ba2a;
    margin-bottom: 0px;
    font-weight: 600;
}

.admin-image img {
    max-width: 150px;
    height: auto;
    margin-top: 25px;
}

/* Right Section - Login/Create Form */
.login-right {
    flex: 1;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 15px;
}

.college-logo img {
    max-width: 90px;
}

.login-right h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    color: #333;
    font-weight: 700;
}

/* Form Styling */
.form-container {
    width: 100%;
    max-width: 300px;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #555;
    font-size: 0.9em;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.95em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 12px 18px;
    background-color: #ae0404;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    letter-spacing: 0.5px;
}

.btn:hover {
    background-color: #f00505;
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
    background-color: #8B0000;
}

.link-text {
    margin-top: 15px;
    margin-bottom: 0%;
}

.link-text a {
    color: #a50505;
    text-decoration: none;
    font-size: 14px;
    transition: text-decoration 0.2s ease-in-out;
    cursor: pointer;
}
        
/* Custom Message Box */
.message-box-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: none;
    width: 90%;
    max-width: 400px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s ease-in-out;
    color: white;
    font-weight: 600;
    text-align: center;
}

.message-box-container.success {
    background-color: #28a745;
}

.message-box-container.error {
    background-color: #dc3545;
}

.message-box-container button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2em;
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
}

/* --- OTP Form Specific Styles --- */

.otp-instructions {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 20px;
    max-width: 280px;
}

#otp-code {
    font-family: Arial;
    text-align: center;
    font-size: 17px;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
.login-container {
    flex-direction: column;
    max-width: 400px;
 }

.login-left, .login-right {
    width: auto;
    padding: 25px;
}

.college-name {
    font-size: 1.6em;
}

.system-title {
    font-size: 0.9em;
}

.admin-image img {
    max-width: 120px;
    margin-top: 15px;
}

.login-right h2 {
    font-size: 1.6em;
    margin-bottom: 15px;
 }
}

@media (max-width: 480px) {
.login-container {
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.login-left, .login-right {
    padding: 20px;
}

.college-name {
    font-size: 1.4em;
}

.system-title {
    font-size: 0.8em;
}

.form-group input {
    padding: 8px 10px;
    font-size: 0.9em;
}

.btn {
    padding: 10px 12px;
    font-size: 0.9em;
    }
}