body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #e0e0e0; /* Fallback for browsers that don't load image */
    overflow: hidden; /* Prevent scrollbars if image slightly larger */
}

.background-container {
    background: url('images/institute_background.png') no-repeat center center/cover;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Dark overlay to make the login box stand out and text readable */
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.55); 
}

.login-box {
    background: rgba(255, 255, 255, 0.95); /* Slightly less transparent white */
    padding: 40px 50px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4); /* Stronger shadow */
    width: 380px;
    max-width: 90%;
    text-align: center;
    backdrop-filter: blur(3px); /* Optional: Blurs content behind the box */
}

.logo {
    font-family: 'Georgia', serif; /* A more classic, academic font */
    font-size: 3.2em;
    color: #003366; /* Deep blue for institutional feel */
    margin-bottom: 5px;
    letter-spacing: 1px;
}

h2 {
    font-size: 1.6em;
    color: #333;
    margin-top: 0;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.input-group {
    margin-bottom: 25px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: bold;
    font-size: 0.95em;
}

.input-group input[type="text"],
.input-group input[type="password"] {
    width: calc(100% - 20px); /* Account for padding */
    padding: 12px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group input[type="text"]:focus,
.input-group input[type="password"]:focus {
    border-color: #007bff; /* Highlight on focus */
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
    outline: none;
}

.input-group .input-error {
    border-color: #cc0000 !important; /* Red border for error */
    box-shadow: 0 0 8px rgba(204, 0, 0, 0.3) !important;
}

.error-message {
    color: #cc0000; /* Red for error */
    font-weight: bold;
    margin-top: -10px; /* Adjust to sit closer to inputs */
    margin-bottom: 15px;
    min-height: 1.2em; /* Reserve space to prevent layout jump */
    visibility: hidden; /* Start hidden */
    font-size: 0.9em;
}

button#enterButton {
    background-color: #0056b3; /* Darker blue for button */
    color: white;
    padding: 14px 25px;
    border: none;
    border-radius: 7px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
    margin-top: 15px;
}

button#enterButton:hover {
    background-color: #003d80; /* Even darker on hover */
    transform: translateY(-2px);
}

button#enterButton:active {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .login-box {
        padding: 30px;
        width: 95%;
    }
    .logo {
        font-size: 2.8em;
    }
    h2 {
        font-size: 1.4em;
    }
}