/* Clinical Deep Blue Theme - Premium Login v3.5 */

body {
    overflow: hidden;
    height: 100vh;
    margin: 0;
}

/* Particle Simulation Layer */
#particles-js {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.4;
}

/* Premium Glass Panel */
.glass-panel {
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow:
        0 40px 100px -20px rgba(0, 0, 0, 0.8),
        inset 0 0 20px rgba(255, 255, 255, 0.02);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.glass-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent, rgba(56, 189, 248, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.glass-panel:hover {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow:
        0 60px 120px -20px rgba(0, 0, 0, 0.9),
        0 0 50px rgba(56, 189, 248, 0.15),
        inset 0 0 30px rgba(56, 189, 248, 0.05);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.animate-shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

/* Inputs with Holographic Focus */
.input-premium {
    background: rgba(2, 6, 23, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: white !important;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
}

.input-premium:focus {
    background: rgba(2, 6, 23, 0.8) !important;
    border-color: var(--neon-sky) !important;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.15), inset 0 0 10px rgba(56, 189, 248, 0.05);
    transform: scale(1.01);
}

/* Authenticate Button */
.btn-auth {
    background: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
    border: none;
    position: relative;
    z-index: 1;
}

.btn-auth::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #6366f1 0%, #38bdf8 100%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
    border-radius: inherit;
}

.btn-auth:hover::after {
    opacity: 1;
}

.btn-auth:hover {
    box-shadow: 0 15px 35px rgba(56, 189, 248, 0.3);
    transform: translateY(-2px);
}

/* System Status Pill */
.status-pill {
    animation: status-glow 2s infinite alternate;
}

@keyframes status-glow {
    from {
        box-shadow: 0 0 5px rgba(16, 185, 129, 0.2);
    }

    to {
        box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
    }
}

.animate-float {
    animation: float-anim 6s ease-in-out infinite;
}

.animate-in {
    animation-fill-mode: forwards;
}

/* Refined Loading & Verification States */
.loading-bar {
    height: 2px;
    width: 0;
    background: var(--neon-sky);
    position: absolute;
    top: 0;
    left: 0;
    transition: width 0.5s ease;
    z-index: 50;
}

.auth-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.auth-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.scanning-line {
    position: absolute;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(56, 189, 248, 0.1), transparent);
    border-top: 1px solid rgba(56, 189, 248, 0.3);
    top: -100px;
    left: 0;
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% {
        top: -100px;
    }

    100% {
        top: 100%;
    }
}

.verifying-text {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--neon-sky);
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
    margin-top: 20px;
    animation: pulse-glow-text 1.5s ease-in-out infinite;
}

@keyframes pulse-glow-text {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(0.98);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.hud-loader {
    position: relative;
    width: 60px;
    height: 60px;
}

.hud-loader div {
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-top-color: var(--neon-sky);
    border-radius: 50%;
    animation: spin-hud 1s linear infinite;
}

.hud-loader div:nth-child(2) {
    inset: 10px;
    border-top-color: var(--indigo-glow);
    animation-duration: 1.5s;
    animation-direction: reverse;
}

@keyframes spin-hud {
    to {
        transform: rotate(360deg);
    }
}