/* --- AUTH SCREENS MODERN STYLES --- */

/* --- RESET & BASE --- */
html,
body {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #fff;
}

/* --- THE VIBRANT BACKGROUND --- */
.container-xxl {
    background: #161f91;
    background: linear-gradient(135deg, #161f91 0%, #2575fc 50%, #6a11cb 100%);
    background-size: 400% 400%;
    animation: GradientAnim 12s ease infinite;
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    width: 100% !important;
    max-width: none !important;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes GradientAnim {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

/* --- WRAPPER --- */
.authentication-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 2;
    position: relative;
}

/* --- BUTTONS & LINKS --- */
button,
a {
    min-height: 44px;
}

/* --- 3D TILT EFFECT --- */
.app-brand-logo {
    perspective: 1000px;
    display: inline-block;
}

.app-brand-logo img {
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    will-change: transform;
}

/* --- FLOATING EDUCATIONAL PARTICLES --- */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particles li {
    position: absolute;
    display: block;
    list-style: none;
    color: rgba(255, 255, 255, 0.2);
    font-size: 1.2rem;
    font-weight: bold;
    font-family: 'Courier New', Courier, monospace;
    white-space: nowrap;
    animation: floatParticles 25s linear infinite;
    bottom: -150px;
    opacity: 0;
}

/* Responsive Visibility */
@media (max-width: 768px) {
    .particles li:nth-child(2n) {
        display: none;
    }

    .particles li {
        font-size: 0.9rem !important;
    }

    .authentication-wrapper {
        align-items: flex-start;
        padding-top: 2rem;
    }
}

/* Particle Distribution - Strategic spacing */
.particles li:nth-child(1) {
    left: 2%;
    animation-delay: 0s;
    font-size: 1.8rem;
}

.particles li:nth-child(2) {
    left: 8%;
    animation-delay: 14s;
    animation-duration: 18s;
}

.particles li:nth-child(3) {
    left: 14%;
    animation-delay: 8s;
    font-size: 1.4rem;
}

.particles li:nth-child(4) {
    left: 20%;
    animation-delay: 2s;
    animation-duration: 22s;
}

.particles li:nth-child(5) {
    left: 26%;
    animation-delay: 18s;
    font-size: 2rem;
}

.particles li:nth-child(6) {
    left: 32%;
    animation-delay: 6s;
    animation-duration: 15s;
}

.particles li:nth-child(7) {
    left: 38%;
    animation-delay: 1s;
    font-size: 1.1rem;
}

.particles li:nth-child(8) {
    left: 44%;
    animation-delay: 9s;
    animation-duration: 40s;
}

.particles li:nth-child(9) {
    left: 50%;
    animation-delay: 21s;
    font-size: 1.6rem;
}

.particles li:nth-child(10) {
    left: 56%;
    animation-delay: 3s;
    animation-duration: 12s;
}

.particles li:nth-child(11) {
    left: 62%;
    animation-delay: 7s;
    font-size: 1.3rem;
}

.particles li:nth-child(12) {
    left: 68%;
    animation-delay: 25s;
    animation-duration: 25s;
}

.particles li:nth-child(13) {
    left: 74%;
    animation-delay: 5s;
    font-size: 1.9rem;
}

.particles li:nth-child(14) {
    left: 80%;
    animation-delay: 13s;
    animation-duration: 30s;
}

.particles li:nth-child(15) {
    left: 86%;
    animation-delay: 1s;
    font-size: 1.5rem;
}

.particles li:nth-child(16) {
    left: 92%;
    animation-delay: 10s;
    animation-duration: 20s;
}

.particles li:nth-child(17) {
    left: 98%;
    animation-delay: 6s;
    font-size: 1.2rem;
}

.particles li:nth-child(18) {
    left: 5%;
    animation-delay: 2s;
    animation-duration: 35s;
}

.particles li:nth-child(19) {
    left: 47%;
    animation-delay: 15s;
    font-size: 2.2rem;
}

.particles li:nth-child(20) {
    left: 83%;
    animation-delay: 4s;
    animation-duration: 28s;
}

/* Staggered Buckets for remaining particles */
.particles li:nth-child(3n) {
    animation-duration: 22s;
}

.particles li:nth-child(3n+1) {
    animation-duration: 28s;
}

.particles li:nth-child(3n+2) {
    animation-duration: 35s;
}

.particles li:nth-child(4n) {
    font-size: 1.1rem;
    opacity: 0.1;
}

.particles li:nth-child(4n+1) {
    font-size: 1.5rem;
    opacity: 0.2;
}

.particles li:nth-child(4n+2) {
    font-size: 0.9rem;
    opacity: 0.15;
}

.particles li:nth-child(4n+3) {
    font-size: 1.3rem;
    opacity: 0.25;
}

/* Even more distribution to avoid stacking */
.particles li:nth-child(5n) {
    left: 12%;
}

.particles li:nth-child(5n+1) {
    left: 28%;
}

.particles li:nth-child(5n+2) {
    left: 45%;
}

.particles li:nth-child(5n+3) {
    left: 62%;
}

.particles li:nth-child(5n+4) {
    left: 88%;
}

@keyframes floatParticles {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        transform: translateY(-110vh);
        opacity: 0;
    }
}

/* ========================================
   CYBER NEON THEME (GLOBAL)
   ======================================== */

:root {
    --swal-bg: #1d1990e8;
    --swal-border: #2575fc;
    --swal-glow: 0 0 35px rgba(37, 117, 252, 0.6);
    --swal-accent: #6a11cb;
}

.swal2-popup {
    background: var(--swal-bg) !important;
    backdrop-filter: blur(25px) saturate(210%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(210%) !important;
    border: 2px solid var(--swal-border) !important;
    box-shadow: var(--swal-glow), 0 0 15px rgba(106, 17, 203, 0.4) !important;
    color: #ffffff !important;
    border-radius: 24px !important;
}

.swal2-title {
    color: #ffffff !important;
    text-shadow: 0 0 15px var(--swal-border), 0 0 5px #fff !important;
    font-weight: 800 !important;
}

.swal2-html-container {
    color: #e0e0e0 !important;
}

.swal2-confirm {
    background: linear-gradient(135deg, var(--swal-border) 0%, var(--swal-accent) 100%) !important;
    border: none !important;
    box-shadow: 0 0 15px rgba(37, 117, 252, 0.5) !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 12px 30px !important;
}

.swal2-confirm:hover {
    box-shadow: 0 0 25px var(--swal-border) !important;
    transform: translateY(-2px);
}

.swal2-close {
    color: var(--swal-border) !important;
    transition: all 0.2s ease !important;
}

.swal2-close:hover {
    color: #ffffff !important;
    filter: drop-shadow(0 0 5px var(--swal-border)) !important;
}

.swal2-timer-progress-bar {
    background: var(--swal-border) !important;
}

.swal2-icon {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .particles li {
        font-size: 0.9rem !important;
    }

    .authentication-wrapper {
        align-items: flex-start;
        padding-top: 2rem;
    }
}