/* --- Global & Typography --- */
body { 
    margin: 0; 
    font-family: 'Inter', sans-serif; 
    background-color: #0f172a; 
    color: white; 
    overflow-x: hidden; 
}

/* FIX: Removed !important. 
   This allows jQuery's .show() and .hide() to work.
*/
.hd { display: none; } 

.cursor-pointer { cursor: pointer; }

/* --- Mobile Banner --- */
.mobile-banner { 
    height: 180px; 
    width: 100%; 
    overflow: hidden; 
    position: relative;
}
.mobile-banner img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    filter: brightness(0.6); 
}

/* --- Brand/Title --- */
.brand-section {
    z-index: 20;
    position: relative;
}

#lg-logo { 
    width: 55px; 
    height: auto; 
    margin-bottom: 5px; 
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.portal-title { 
    font-size: 1.1rem; 
    font-weight: 800; 
    letter-spacing: 2px; 
    margin-bottom: 20px; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); 
}

.portal-title span { 
    display: block; 
    font-size: 0.8rem; 
    font-weight: 300; 
    color: #38bdf8; 
    letter-spacing: 4px; 
}

/* --- Content Wrapper --- */
.auth-content-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* --- Unified Card Style --- */
.auth-card { 
    width: 100%; 
    max-width: 330px; 
    z-index: 10; 
    /* Ensures smooth appearance */
    transition: opacity 0.3s ease; 
}

.glass-card { 
    background: rgba(255, 255, 255, 0.18); 
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

/* --- Input Styling --- */
.modern-input-group {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
}

.modern-input-group i { 
    font-size: 0.8rem; 
    opacity: 0.5; 
    margin-right: 10px; 
}

.modern-input-group input {
    background: transparent; 
    border: none; 
    color: white;
    padding: 12px 0; 
    width: 100%; 
    outline: none; 
    font-size: 0.9rem;
}

.modern-input-group input::placeholder {
    color: rgba(255,255,255,0.4);
}

/* --- Buttons --- */
.btn-primary { 
    background: #38bdf8; 
    border: none; 
    color: #0f172a; 
    font-weight: 700; 
    border-radius: 10px; 
    padding: 12px;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #7dd3fc;
    transform: translateY(-1px);
}

.btn-outline-light {
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
}

/* --- Layout Logic --- */

/* Mobile & Tablet Styles */
@media (max-width: 991px) {
    .auth-content-wrapper { 
        padding: 0 20px; 
        /* Pulls everything up to overlap the banner */
        margin-top: -60px; 
    }
    .brand-section { 
        margin-top: -110px; 
    }
}

/* Desktop Styles */
@media (min-width: 992px) {
    .auth-content-wrapper {
        min-height: 100vh;
        background: linear-gradient(rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.7)), 
                    url('/images/mubs-desktop.jpg');
        background-size: cover; 
        background-position: center; 
        background-attachment: fixed;
    }
    
    .portal-title {
        font-size: 1.5rem;
    }
}

/* --- Alerts --- */
.alert {
    border-radius: 0;
    border: none;
    text-align: center;
    font-weight: 600;
}