﻿/* ── Reset & Base ── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.login-page {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: linear-gradient(10deg, #0b1120 0%, #1a2744 20%, #30AFFF 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* ── Animated background particles ── */
body.login-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  
    background-size: 200px 200px;
    pointer-events: none;
    z-index: 0;
    animation: floatParticles 20s ease-in-out infinite alternate;
}

@keyframes floatParticles {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(30px, -20px) scale(1.05);
    }
}

/* ── Glow orb (decorative) ── */
body.login-page::after {
    content: '';
    position: fixed;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: pulseGlow 8s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* ── Header / Footer override ── */
header,
footer {
    position: relative;
    z-index: 2;
}

/* ── Main container ── */
main {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* ── Login Card ── */
.login-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 32px;
    padding: 2.5rem 2.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform 0.3s ease, box-shadow 0.4s ease;
    width: 100%;
    max-width: 440px;
}

.login-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.60),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ── Brand / Icon ── */
.login-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.login-brand .icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.10));
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.10);
    margin-bottom: 1rem;
    font-size: 2rem;
    color: #60a5fa;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
}

.login-brand h4 {
    font-family: 'Saira', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin: 0;
}

.login-brand .subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.50);
    font-weight: 400;
    letter-spacing: 0.3px;
    margin-top: 0.2rem;
}

/* ── Form Labels ── */
.form-label {
    font-weight: 500;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.80);
    letter-spacing: 0.3px;
    margin-bottom: 0.4rem;
}

.form-label i {
    margin-right: 8px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.9rem;
}

/* ── Form Inputs ── */
.form-control {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
    color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.10);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.25);
    font-weight: 400;
    font-size: 0.9rem;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(96, 165, 250, 0.50);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.10), inset 0 2px 4px rgba(0, 0, 0, 0.05);
    color: #ffffff;
    outline: none;
}

.form-control:-webkit-autofill {
    background: rgba(255, 255, 255, 0.08) !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(30, 50, 80, 0.5) inset !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: rgba(96, 165, 250, 0.30);
}

/* ── Alert ── */
.alert-custom {
    background: rgba(251, 191, 36, 0.10);
    border: 1px solid rgba(251, 191, 36, 0.20);
    border-radius: 14px;
    color: #fcd34d;
    padding: 0.9rem 1.2rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(4px);
}

.alert-custom i {
    font-size: 1.1rem;
    color: #fbbf24;
}

/* ── Buttons ── */
.btn-login {
    background: linear-gradient(145deg, #3b82f6, #2563eb);
    border: none;
    border-radius: 14px;
    padding: 0.85rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.30);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.btn-login:hover {
    background: linear-gradient(145deg, #4b8bf7, #2b6ef0);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.45);
    color: #ffffff;
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.30);
}

.btn-login i {
    font-size: 1.1rem;
}

.btn-change-pw {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.60);
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-change-pw:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-change-pw i {
    font-size: 0.9rem;
}

/* ── Divider ── */
.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.2rem 0 1rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
}

.divider span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.20);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ── Responsive ── */
@media (max-width: 576px) {
    .login-card {
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }

    .login-brand h4 {
        font-size: 1.5rem;
    }

    .login-brand .icon-circle {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }

    .form-control {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }

    .btn-login,
    .btn-change-pw {
        font-size: 0.9rem;
        padding: 0.75rem 1.2rem;
    }
}

@media (max-width: 400px) {
    .login-card {
        padding: 1.5rem 1rem;
    }
}

/* ── Footer override (if needed) ── */
footer>div {
    background: transparent !important;
}
/* FIX: Ensure the header dropdowns float above the main content */
header {
    position: relative;
    z-index: 1050 !important; /* Must be higher than 'main' (2) */
}

    /* (Optional) Ensure the submenu container itself has a high z-index */
    header .dropdown-menu,
    header .sub-menu-class { /* Use your actual class name for the sub-menu */
        z-index: 1051 !important;
    }