
:root {
    --primary-dark: #071a52;
    --primary-blue: #0b3b83;
    --primary-cyan: #1697b7;
    --accent-gold: #f2b84b;
    --accent-gold-2: #ffca3a;
    --surface: #f7fbff;
    --text-dark: #18324c;
    --text-muted: #5f7184;
    --border-soft: #d8e6f0;
    --shadow-soft: 0 18px 45px rgba(7, 26, 82, 0.16);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background:
        linear-gradient(135deg, #f5f7fb 0%, #eef4fa 50%, #f9fcff 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

body::before,
body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

body::before {
    width: 320px;
    height: 320px;
    background: rgba(255, 255, 255, 0.08);
    top: -100px;
    right: -80px;
}

body::after {
    width: 260px;
    height: 260px;
    background: rgba(242, 184, 75, 0.1);
    bottom: -90px;
    left: -70px;
}

.container {
    width: 100%;
    max-width: 560px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(7, 26, 82, 0.2);
    overflow: hidden;
    border: 1px solid rgba(7, 26, 82, 0.08);
    position: relative;
    z-index: 1;
}

.header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 48%, var(--primary-cyan) 100%);
    padding: 34px 30px 28px;
    text-align: center;
    color: white;
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(242, 184, 75, 0.12), transparent 35%, rgba(255, 255, 255, 0.08));
    pointer-events: none;
}

.logo {
    width: 260px;
    max-width: 80%;
    height: 78px;
    background: white;
    border-radius: 16px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 10px 16px;
    position: relative;
    z-index: 1;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

h1 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.tagline {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.8px;
    opacity: 0.96;
    position: relative;
    z-index: 1;
}

.role-badge {
    margin-top: 18px;
    padding: 11px 22px;
    background: rgba(242, 184, 75, 0.16);
    border-radius: 999px;
    border: 1px solid rgba(242, 184, 75, 0.5);
    display: inline-block;
    font-weight: 700;
    letter-spacing: 0.4px;
    position: relative;
    z-index: 1;
}

.body {
    padding: 32px 34px 36px;
}

.alert-danger {
    background: rgba(248, 113, 113, 0.12);
    color: #b91c1c;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(248, 113, 113, 0.22);
    margin-bottom: 14px;
    text-align: center;
    font-weight: 600;
}

/* Loading Animation */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.loading-container.hidden {
    display: none;
    opacity: 0;
}

.spinner {
    width: 80px;
    height: 80px;
    border: 6px solid #e7eef5;
    border-top: 6px solid var(--primary-cyan);
    border-right: 6px solid var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 22px;
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 700;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.loading-dots {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.dot {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, var(--accent-gold), var(--primary-cyan));
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite;
}

.dot:nth-child(1) { animation-delay: 0s; }
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Student Form */
.student-form {
    display: none;
    animation: fadeIn 0.5s ease;
}

.student-form.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 9px;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 14px;
}

.form-group label i {
    margin-right: 8px;
    color: var(--primary-cyan);
    width: 18px;
}

.form-group input {
    width: 100%;
    padding: 14px 15px;
    border: 1.5px solid var(--border-soft);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #ffffff;
    color: var(--text-dark);
}

.form-group input:focus {
    border-color: var(--primary-cyan);
    outline: none;
    box-shadow: 0 0 0 4px rgba(22, 151, 183, 0.14);
}

.password-input-wrap {
    position: relative;
}

.password-input-wrap input {
    padding-right: 46px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 15px;
}

.toggle-password:hover {
    color: var(--primary-cyan);
}

.login-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-2) 100%);
    color: var(--primary-dark);
    box-shadow: 0 8px 20px rgba(242, 184, 75, 0.24);
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(242, 184, 75, 0.3);
}

.info-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-blue) 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(11, 59, 131, 0.2);
    transition: all 0.3s ease;
    margin-top: 12px;
}

.info-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(11, 59, 131, 0.26);
}

/* Info Modal */
.info-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(7, 26, 82, 0.72);
    animation: fadeIn 0.3s ease;
}

.info-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-modal-content {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    margin: 5% auto;
    padding: 32px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    color: white;
    animation: slideDown 0.4s ease;
    position: relative;
    border: 1px solid rgba(242, 184, 75, 0.2);
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-info-modal {
    color: white;
    position: absolute;
    right: 22px;
    top: 18px;
    font-size: 34px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.close-info-modal:hover {
    color: var(--accent-gold);
}

.info-modal-content h2 {
    margin-bottom: 18px;
    font-size: 24px;
}

.info-modal-content p {
    margin-bottom: 14px;
    line-height: 1.7;
    font-size: 15px;
}

.info-modal-content strong {
    font-weight: 700;
}

.info-modal-content a {
    color: var(--accent-gold);
    font-weight: 700;
    text-decoration: none;
}

.info-modal-content a:hover {
    text-decoration: underline;
}

.toll-free-box {
    margin-top: 22px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    font-weight: 700;
    text-align: center;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .body {
        padding: 28px 22px 32px;
    }

    .header {
        padding: 30px 22px 24px;
    }

    .info-modal-content {
        width: 95%;
        padding: 24px;
        margin: 10% auto;
    }

    .info-modal-content h2 {
        font-size: 21px;
    }

    .info-modal-content p {
        font-size: 14px;
    }

    .close-info-modal {
        font-size: 28px;
        right: 15px;
        top: 15px;
    }
}


