* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Raleway', sans-serif;
}

body {
    background-color: #000b29;
    min-height: 100vh; /* <-- CHANGED THIS (Allows scrolling if content is tall) */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;   /* <-- ADDED THIS (Breathing room for scrolling) */
}

.login-page {
    display: flex;
    width: 90%;
    max-width: 1100px;
    min-height: 600px; /* Use min-height so it doesn't shrink */
    height: auto;      /* Allow it to grow if the form gets tall */
    gap: 40px;
    align-items: stretch; /* CRITICAL: Makes both sides equal height */
}


.image-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* Prepare for absolute filling */
    overflow: hidden;   /* Crop excess image if needed */
    border-radius: 40px; /* Match the card's rounded corners */
}

/* Make the image act like a background cover */
/* --- OLD IMAGE CSS (Commented out) --- 
.side-img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    border-radius: 40px 0 0 40px; 
}
---------------------------------------- */
/* =========================================
   NEW DYNAMIC CAMPUS BANNER LIST
   ========================================= */

.campus-selector-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 450px;
    
    /* --- THE WHITE CONTAINER --- */
    background: white; 
    padding: 25px;
    border-radius: 30px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.3); /* Soft shadow to lift it off the dark background */
}

.campus-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    border-radius: 16px;
    padding: 8px;
    
    background: linear-gradient(to right, var(--bg-start), var(--bg-end));
    border: 1px solid rgba(255,255,255,0.05);
    /*box-shadow: 0 10px 30px rgba(0,0,0,0.5);*/ 
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s;
}

/*.campus-banner:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 35px rgba(0,0,0,0.7);
}*/

/* The Zigzag Layout */
.campus-banner:nth-child(even) {
    flex-direction: row-reverse;
    background: linear-gradient(to left, var(--bg-start), var(--bg-end));
}

.campus-text {
    flex: 1;
    text-align: center;
    color: #111; 
    font-weight: 900;
    font-size: 1.4rem;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.campus-text span {
    display: block;
}

.campus-img-container {
    width: 135px;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #000b29; 
}

.campus-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.campus-banner:hover .campus-img-container img {
    transform: scale(1.1); 
}
.form-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    background: white;
    width: 100%;
    max-width: 450px;
    height: auto;      /* Allow growing */
    min-height: 100%;  /* Ensure it fills at least the container height */
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
    justify-content: center; /* Centers content vertically */
}

.logo-area {
    margin-bottom: 50px;
}

.main-logo {
    width: 220px;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group input {
    width: 100%;
    padding: 15px 25px;
    font-size: 1.2rem;
    border: 3px solid #002d72;
    border-radius: 50px;
    outline: none;
    color: #666;
}

.input-group input::placeholder {
    color: #999;
}

.submit-btn {
    margin-top: 10px;
    background-color: #00337c;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 50px;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background-color: #0046a8;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 11, 41, 0.85);
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    width: 400px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.modal-header {
    background-color: #003e91;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
    border-bottom: 4px solid #b8860b;
}

.warning-icon { font-size: 24px !important; }

.modal-header h3 {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.modal-body {
    padding: 30px 20px;
    text-align: center;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 10px;
}

.modal-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    border-top: 1px solid #eee;
}

.modal-btn {
    flex: 1;
    padding: 20px;
    border: none;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
    letter-spacing: 1px;
}

.modal-btn.confirm {
    background: #003e91;
    color: white;
}
.modal-btn.confirm:hover {
    background: #b71c1c;
}

.dev-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    cursor: default;
    height: 34px; 
    width: 180px;
}

.dev-widget:hover {
    background: rgba(0, 11, 41, 0.95);
    border-color: #00c853;
    color: white;
    height: auto;
    width: 280px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.dev-header {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    border-bottom: 1px solid transparent;
}

.dev-widget:hover .dev-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #00c853;
}

.dev-content {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s 0.1s;
}

.dev-widget:hover .dev-content {
    opacity: 1;
}

.dev-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
}

.dev-item .role {
    color: #00c6ff;
    font-weight: 700;
    margin-right: 10px;
}
/* --- GOOGLE LOGIN STYLES --- */

/* The Divider Line */
.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 10px 0; /* Space between buttons */
    width: 100%;
    color: #999;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.login-divider span {
    padding: 0 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* The Google Button */
.google-btn {
    width: 100%;
    padding: 12px;
    background-color: white;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1.1rem; /* Match existing inputs */
    font-weight: 700;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Space between logo and text */
    transition: all 0.3s ease;
}

.google-btn:hover {
    background-color: #f8f9fa;
    border-color: #ccc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.google-btn:active {
    transform: scale(0.98);
}

/* =========================================
   1. TABLETS & SMALL LAPTOPS (850px to 1100px)
   Keeps them side-by-side, but shrinks the contents to fit!
   ========================================= */
@media screen and (max-width: 1440px) {
    .login-page {
        gap: 20px; /* Reduce the massive 40px gap */
        width: 95%; /* Give it a bit more edge-to-edge room */
    }

    /* Shrink the white box paddings so they don't eat up tablet screen space */
    .login-card {
        padding: 30px 25px; 
    }
    
    .campus-selector-list {
        padding: 15px;
    }

    .logo-area { margin-bottom: 30px; }
    .main-logo { width: 180px; } /* Shrink logo slightly */
    
    /* Make inputs slightly smaller */
    .input-group input {
        padding: 12px 20px;
        font-size: 1.05rem;
    }
    
    /* Shrink the campus thumbnails so the banners fit side-by-side */
    .campus-img-container {
        width: 100px; 
    }
    .campus-banner {
        height: 80px;
    }
    .campus-text {
        font-size: 1.1rem;
    }
}

/* =========================================
   2. LARGE PHONES & SMALL TABLETS (max-width: 850px)
   This is where they finally stack vertically.
   ========================================= */
@media screen and (max-width: 850px) {
    .login-page {
        flex-direction: column;
        align-items: center;
        height: auto;
        min-height: auto; 
        gap: 30px;        
    }

    /* Lock the width so they look like neat stacked cards */
    .image-section, .form-section {
        width: 100%;
        max-width: 450px; 
    }

    /* Form goes on top, image goes on bottom */
    .image-section { display: flex; order: 2; }
    .form-section { order: 1; }
    
    /* Restore the campus thumbnails since they have full width again */
    .campus-img-container { width: 135px; }
    .campus-banner { height: 90px; }
    .campus-text { font-size: 1.4rem; }
}

/* =========================================
   3. SMALL PHONES (max-width: 550px)
   ========================================= */
@media screen and (max-width: 550px) {
    .login-page {
        width: 92%; 
        gap: 20px;
    }

    .login-card {
        padding: 30px 15px; 
    }

    .main-logo {
        width: 160px; 
        margin-bottom: 25px;
    }

    .submit-btn {
        padding: 12px;
        font-size: 1.2rem;
    }

    /* Dynamically adjust the banner layout so it doesn't squish */
    .campus-banner {
        height: auto;
        flex-direction: column !important; /* Stack text under image */
        padding: 15px;
        gap: 12px;
        text-align: center;
    }

    .campus-img-container {
        width: 100%;
        height: 120px;
    }

    .campus-text {
        font-size: 1.1rem;
    }
}