/* ========================================= */
/* Header and Navigation (Copied from public_style.css) */
/* ========================================= */
.main-header {
    background-color: rgba(0, 68, 102, 0.9);
    padding: 1rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    width: 100%;
    position: absolute; /* Position it at the top */
    top: 0;
    left: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    height: 55px;
    margin-right: 15px;
}

.logo-container h1 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 600;
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-size: 1.05rem;
    padding: 8px 15px;
    border-radius: 7px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: #fff;
    color: #004466;
    font-weight: bold;
    transform: translateY(-2px);
}

/* Add a media query for smaller screens */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        position: static; /* Let it flow naturally on small screens */
    }
    .main-nav ul {
        margin-top: 15px;
    }
}


/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* Background Image Settings */
    background-image: url('../assets/login_page_background.jpg'); /* Path relative to CSS file */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #cccccc; /* Fallback color */
}

/* Login Container */
.login-container {
    background-color: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    padding: 30px; /* Reduced padding */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 380px; /* Reduced max-width for a smaller box */
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 80px; /* Add some top margin to clear the header */
}
/* Logo */
.login-container .logo {
    width: 90px;
    margin-bottom: 20px;
}

/* Title */
.login-container h2 {
    margin-bottom: 30px;
    font-size: 24px;
    color: #004466; /* Consistent dark blue */
    font-weight: 600;
}

/* Form Styling */
.login-form .input-field {
     margin-bottom: 25px;
     text-align: left;
}

.login-form label {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: #333;
}

.login-form input,
.login-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-form input:focus,
.login-form select:focus {
    border-color: #007bff; /* Highlight focus with blue */
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2); /* Subtle glow on focus */
}

/* Submit Button */
.login-form button[type="submit"] {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: none;
    color: white;
    background: linear-gradient(135deg, #0056b3, #007bff);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

.login-form button[type="submit"]:hover {
    background: linear-gradient(135deg, #004085, #0056b3);
    box-shadow: 0 6px 15px rgba(0, 86, 179, 0.4);
    transform: translateY(-2px);
}

.login-form button[type="submit"]:active {
     transform: translateY(0) scale(0.98);
     box-shadow: 0 3px 10px rgba(0, 86, 179, 0.3);
}

/* Roll Number Field Visibility */
#rollno-field {
    transition: opacity 0.4s ease, max-height 0.4s ease;
    overflow: hidden;
    max-height: 100px; /* Adjust if needed */
    opacity: 1;
}

#rollno-field.hidden {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
}