/* assets/css/login.css */

body {
    margin: 0;
    padding: 0;
    background: url('../img/ASCbg.webp') center center/cover fixed; 
    height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
}

.bg-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,.6); z-index: -1;
}

.account-box {
    background: #fff; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,.1);
    padding: 15px 20px; max-width: 400px; margin: 10% auto;
}

/* HEADER CSS */
.portal-header {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #f0f0f0; text-align: center;
}
.portal-header img { width: 90px; height: auto; margin-bottom: 12px; }

/* UPDATED SUBTITLE WITH GEOMETRIC SANS-SERIF AND BOLD */
.college-subtitle { 
    font-family: 'Montserrat', 'Century Gothic', 'Futura', sans-serif; 
    color: #002855; 
    font-size: 20px; 
    font-weight: 700; /* 700 is standard bold */
    margin: 0; 
    letter-spacing: 1px; 
}

.google-btn, .microsoft-btn {
    display: flex; align-items: center; justify-content: center; background-color: #fff;
    border: 1px solid #ddd; border-radius: 4px; padding: 8px 15px; font-size: 14px;
    font-weight: 500; cursor: pointer; margin-bottom: 6px; text-decoration: none; color: #333;
}
.err {
    color: #721c24; text-align: center; font-size: 13px; margin-top: 10px;
    background-color: #f8d7da; padding: 8px; border-radius: 4px; border: 1px solid #f5c6cb;
}
.divider { display: flex; align-items: center; margin: 8px 0; }
.divider::after, .divider::before { content: ''; flex: 1; border-bottom: 1px solid #ddd; }
.divider-text { padding: 0 15px; color: #777; font-size: 12px; font-weight: 500; }

.uiverse-login-btn {
    position: relative; border: 0; background: 0 0; padding: 0; outline: 0; cursor: pointer;
    font-family: monospace; font-weight: 300; text-transform: uppercase; font-size: 16px;
    width: 100%; margin-bottom: 8px;
}
.uiverse-login-btn .front-layer {
    position: relative; display: flex; align-items: center; justify-content: center;
    padding: 10px 24px; font-size: 18px; color: #fff; border-radius: 8px;
    background: linear-gradient(to right,#f27121,#e94057,#8a2387); gap: 12px;
}
.otp-input-mfa {
    width: 45px; height: 55px; border: 2px solid #ddd; border-radius: 8px;
    text-align: center; font-size: 22px; font-weight: bold; margin: 0 4px;
}

/* SHOW PASSWORD CSS */
.password-wrapper { position: relative; }
.password-toggle {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    background: transparent; border: none; color: #444; cursor: pointer;
    padding: 5px; z-index: 10; display: none; 
}
.password-toggle.visible { display: block; }
.password-toggle:hover { color: #333; }
#pword { padding-right: 35px; } 


/* --- PRIVACY MODAL CSS --- */
.privacy-modal-wrapper {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 9999;
    display: none; align-items: center; justify-content: center;
    padding: 15px; /* Prevents modal from touching screen edges on mobile */
    box-sizing: border-box;
}
.privacy-modal-content {
    background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    width: 100%; 
    max-height: 95vh; /* Ensures it never outgrows the vertical screen space */
    display: flex; flex-direction: column; overflow: hidden;
}

/* --- NEW CUSTOM PRIVACY NOTICE LAYOUT --- */
.custom-privacy-layout {
    max-width: 750px !important;
    border-top: none !important;
    border-radius: 12px;
}

.privacy-header-centered {
    position: relative;
    text-align: center;
    padding: 25px 25px 10px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0; /* Prevents header from shrinking */
}

.privacy-header-centered .privacy-logo {
    width: 60px;
    height: auto;
    margin-bottom: 10px;
}

.privacy-header-centered h3 {
    margin: 0;
    font-size: 22px;
    font-weight: bold;
    color: #1a237e;
    letter-spacing: 1px;
}

/* Lang Switcher Styles */
.lang-switcher {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 12px;
    font-weight: 600;
    color: #888;
}
.lang-btn {
    cursor: pointer;
    padding: 2px 5px;
    transition: color 0.2s;
}
.lang-btn:hover {
    color: #e94057;
}
.lang-btn.active {
    color: #1a237e;
    font-weight: bold;
    text-decoration: underline;
}
.lang-divider {
    margin: 0 2px;
    color: #ccc;
}

.privacy-lang-content { display: none; }
.privacy-lang-content.active { display: block; }

.custom-scroll {
    max-height: 60vh;
    padding: 25px 35px !important;
    overflow-y: auto;
    flex-grow: 1; /* Allows scroll area to take remaining space */
}
.custom-scroll::-webkit-scrollbar { width: 6px; }
.custom-scroll::-webkit-scrollbar-track { background: #f1f1f1; }
.custom-scroll::-webkit-scrollbar-thumb { background: #bbb; border-radius: 4px; }

.privacy-intro {
    font-size: 14.5px;
    color: #333;
    margin-bottom: 25px;
    text-align: justify;
}

.privacy-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.privacy-list-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.privacy-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: #2c3e50;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-top: 2px;
}

.privacy-text h4 {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: bold;
    color: #222;
}

.privacy-text p {
    margin: 0 0 10px 0;
    font-size: 13.5px;
    color: #555;
    text-align: justify;
    line-height: 1.5;
}

.privacy-text ol {
    margin: 0 0 10px 0;
    padding-left: 20px;
    font-size: 13.5px;
    color: #555;
    line-height: 1.5;
}

.privacy-text ol li {
    margin-bottom: 4px;
}

.privacy-text p:last-child {
    margin-bottom: 0;
}

.privacy-footer-custom {
    padding: 20px 35px;
    background: #fafafa;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-shrink: 0; /* Prevents footer from shrinking */
}

.privacy-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    color: #777;
}

.meta-ack {
    max-width: 100%;
    text-align: center;
    line-height: 1.3;
}

.btn-agree-full {
    width: 100%;
    background: linear-gradient(to right, #f27121, #e94057, #8a2387);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.2s;
}

.btn-agree-full:hover {
    opacity: 0.9;
}

/* --- BUTTON LOADER SPINNER --- */
.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- RESPONSIVE ADJUSTMENTS FOR SMALL DEVICES --- */
@media (max-width: 600px) {
    .privacy-header-centered {
        padding: 20px 15px 10px;
    }
    
    .privacy-header-centered h3 {
        font-size: 18px;
        margin-top: 20px; /* Gives room below the switcher */
    }

    .lang-switcher {
        top: 15px;
        right: 15px;
        font-size: 12px;
    }
    
    .custom-scroll {
        padding: 15px 20px !important;
        /* Let flex-grow handle the height, no strict max-height needed */
    }
    
    .privacy-list-item {
        gap: 10px;
    }
    
    .privacy-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .privacy-text h4 {
        font-size: 14px;
    }
    
    .privacy-text p, .privacy-text ol {
        font-size: 13px;
    }
    
    .privacy-footer-custom {
        padding: 15px 20px;
    }
    
    .meta-ack {
        font-size: 10px;
    }
    
    .btn-agree-full {
        padding: 12px;
        font-size: 14px;
    }
}
