body {
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
}

.btn-login {
    background: #1a237e;
    border: none;
    font-weight: 600;
    padding: .75rem;
}

.btn-login:hover {
    background: #3949ab;
}

@keyframes clignotant {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.clignotant {
    animation: clignotant 1.2s ease-in-out infinite;
}

/* === OVERLAY ANIMATION === */
#anim-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: #060d2e;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
}

#anim-overlay.active {
    display: flex;
}

#anim-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

#anim-center {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

#anim-logo {
    opacity: 0;
    transform: scale(0.2) translateY(40px);
    transition: opacity .8s cubic-bezier(.175, .885, .32, 1.275), transform .8s cubic-bezier(.175, .885, .32, 1.275);
    filter: drop-shadow(0 0 40px rgba(144, 202, 249, .9));
}

#anim-logo.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

#anim-vortex {
    width: 180px;
    height: 180px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vortex-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    animation: spin linear infinite;
}

.vortex-ring:nth-child(1) {
    width: 180px;
    height: 180px;
    border-top-color: #90caf9;
    border-right-color: #90caf9;
    animation-duration: 2s;
}

.vortex-ring:nth-child(2) {
    width: 140px;
    height: 140px;
    border-bottom-color: #42a5f5;
    border-left-color: #42a5f5;
    animation-duration: 1.5s;
    animation-direction: reverse;
}

.vortex-ring:nth-child(3) {
    width: 100px;
    height: 100px;
    border-top-color: #1e88e5;
    border-right-color: #1e88e5;
    animation-duration: 1s;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#vortex-core {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, #90caf9 0%, #1565c0 60%, transparent 100%);
    box-shadow: 0 0 30px #90caf9, 0 0 60px #1565c0, 0 0 100px rgba(21, 101, 192, .5);
    animation: pulse 1s ease-in-out infinite alternate;
}

@keyframes pulse {
    from {
        transform: scale(.9);
        box-shadow: 0 0 20px #90caf9, 0 0 40px #1565c0;
    }
    to {
        transform: scale(1.1);
        box-shadow: 0 0 40px #90caf9, 0 0 80px #1565c0, 0 0 120px rgba(21, 101, 192, .6);
    }
}

.doc-fly {
    position: fixed;
    font-size: 2rem;
    pointer-events: none;
    z-index: 9998;
    filter: drop-shadow(0 0 8px rgba(144, 202, 249, .8));
}

#anim-msg {
    color: #90caf9;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .6s ease, transform .6s ease;
    text-shadow: 0 0 20px rgba(144, 202, 249, .8);
}

#anim-msg.visible {
    opacity: 1;
    transform: translateY(0);
}

#anim-bar {
    width: 280px;
    height: 4px;
    background: rgba(255, 255, 255, .1);
    border-radius: 4px;
    overflow: hidden;
    opacity: 0;
    transition: opacity .4s;
}

#anim-bar.visible {
    opacity: 1;
}

#anim-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #1565c0, #90caf9, #fff);
    border-radius: 4px;
    box-shadow: 0 0 10px #90caf9;
    transition: width 2s cubic-bezier(.4, 0, .2, 1);
}

#anim-bar-fill.full {
    width: 100%;
}

#anim-flash {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

#anim-flash.go {
    opacity: 1;
}
