﻿:root {
    --primary: #2563eb;
    --primary-light: #60a5fa;
    --primary-dim: rgba(37, 99, 235, 0.1);
    --primary-glow: rgba(37, 99, 235, 0.25);
    --accent: #0891b2;
    --accent-light: #22d3ee;
    --bg-base: #f0f7ff;
    --bg-card: rgba(255, 255, 255, 0.7);
    --text-primary: #0f172a;
    --text-secondary: rgba(71, 95, 130, 0.65);
    --card-width: 420px;
    --shadow-card: 0 8px 40px rgba(37, 99, 235, 0.07), 0 2px 12px rgba(0,0,0,0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: var(--bg-base);
    overflow: hidden;
    height: 100vh;
    color: var(--text-primary);
}

/* ========== PLASMA BACKGROUND ========== */
.plasma-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.plasma-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    mix-blend-mode: multiply;
}

    .plasma-orb:nth-child(1) {
        width: 700px;
        height: 700px;
        background: radial-gradient(circle, rgba(37,99,235,0.5), transparent 65%);
        top: -25%;
        left: -15%;
        animation: plasmaMove1 18s ease-in-out infinite alternate;
    }

    .plasma-orb:nth-child(2) {
        width: 550px;
        height: 550px;
        background: radial-gradient(circle, rgba(8,145,178,0.45), transparent 65%);
        bottom: -20%;
        right: -10%;
        animation: plasmaMove2 22s ease-in-out infinite alternate;
    }

    .plasma-orb:nth-child(3) {
        width: 450px;
        height: 450px;
        background: radial-gradient(circle, rgba(96,165,250,0.35), transparent 65%);
        top: 35%;
        left: 50%;
        animation: plasmaMove3 16s ease-in-out infinite alternate;
    }

    .plasma-orb:nth-child(4) {
        width: 380px;
        height: 380px;
        background: radial-gradient(circle, rgba(34,211,238,0.3), transparent 65%);
        top: 5%;
        right: 15%;
        animation: plasmaMove4 20s ease-in-out infinite alternate;
    }

    .plasma-orb:nth-child(5) {
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(37,99,235,0.25), transparent 65%);
        bottom: 10%;
        left: 20%;
        animation: plasmaMove1 24s ease-in-out infinite alternate-reverse;
    }

@keyframes plasmaMove1 {
    0% {
        transform: translate(0,0) scale(1);
    }

    50% {
        transform: translate(80px,-60px) scale(1.15);
    }

    100% {
        transform: translate(-40px,40px) scale(0.9);
    }
}

@keyframes plasmaMove2 {
    0% {
        transform: translate(0,0) scale(1);
    }

    50% {
        transform: translate(-70px,50px) scale(1.1);
    }

    100% {
        transform: translate(50px,-30px) scale(0.95);
    }
}

@keyframes plasmaMove3 {
    0% {
        transform: translate(0,0) scale(1);
    }

    50% {
        transform: translate(60px,-40px) scale(1.2);
    }

    100% {
        transform: translate(-50px,60px) scale(0.85);
    }
}

@keyframes plasmaMove4 {
    0% {
        transform: translate(0,0) scale(1);
    }

    50% {
        transform: translate(-50px,70px) scale(1.1);
    }

    100% {
        transform: translate(40px,-50px) scale(0.9);
    }
}

/* ========== CANVAS (particles + shooting stars + energy) ========== */
#fxCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ========== DATA RAIN ========== */
.data-rain {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.rain-col {
    position: absolute;
    top: -100%;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--primary);
    opacity: 0.07;
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 8px;
    animation: rainFall linear infinite;
    text-shadow: 0 0 6px var(--primary-glow);
}

    .rain-col:nth-child(1) {
        left: 4%;
        animation-duration: 12s;
        font-size: 11px;
    }

    .rain-col:nth-child(2) {
        left: 14%;
        animation-duration: 9s;
        animation-delay: -3s;
        opacity: 0.05;
    }

    .rain-col:nth-child(3) {
        left: 26%;
        animation-duration: 14s;
        animation-delay: -7s;
        font-size: 14px;
    }

    .rain-col:nth-child(4) {
        left: 37%;
        animation-duration: 10s;
        animation-delay: -2s;
    }

    .rain-col:nth-child(5) {
        left: 52%;
        animation-duration: 11s;
        animation-delay: -5s;
        opacity: 0.06;
    }

    .rain-col:nth-child(6) {
        left: 63%;
        animation-duration: 13s;
        animation-delay: -8s;
        font-size: 12px;
    }

    .rain-col:nth-child(7) {
        left: 74%;
        animation-duration: 8s;
        animation-delay: -1s;
    }

    .rain-col:nth-child(8) {
        left: 86%;
        animation-duration: 15s;
        animation-delay: -6s;
        opacity: 0.04;
    }

    .rain-col:nth-child(9) {
        left: 95%;
        animation-duration: 10s;
        animation-delay: -4s;
        font-size: 11px;
    }

@keyframes rainFall {
    0% {
        top: -120%;
    }

    100% {
        top: 110%;
    }
}

/* ========== ENERGY BEAMS ========== */
.beam-container {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.energy-beam {
    position: absolute;
    width: 120%;
    height: 1px;
    transform-origin: left center;
}

    .energy-beam::before {
        content: '';
        position: absolute;
        width: 30%;
        height: 100%;
        top: 0;
        left: -30%;
        border-radius: 1px;
        animation: beamSweep linear infinite;
    }

    .energy-beam:nth-child(1) {
        top: 25%;
        left: -10%;
        transform: rotate(15deg);
    }

        .energy-beam:nth-child(1)::before {
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--primary-light), var(--accent-light), transparent);
            box-shadow: 0 0 8px var(--primary-glow), 0 0 16px rgba(8,145,178,0.15);
            animation-duration: 4s;
        }

    .energy-beam:nth-child(2) {
        top: 60%;
        left: -10%;
        transform: rotate(-8deg);
    }

        .energy-beam:nth-child(2)::before {
            height: 1.5px;
            background: linear-gradient(90deg, transparent, var(--accent-light), var(--primary-light), transparent);
            box-shadow: 0 0 6px rgba(8,145,178,0.2);
            animation-duration: 5.5s;
            animation-delay: -2s;
        }

    .energy-beam:nth-child(3) {
        top: 80%;
        left: -10%;
        transform: rotate(5deg);
    }

        .energy-beam:nth-child(3)::before {
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--primary), transparent);
            box-shadow: 0 0 10px var(--primary-glow);
            animation-duration: 6s;
            animation-delay: -4s;
        }

@keyframes beamSweep {
    0% {
        left: -30%;
    }

    100% {
        left: 100%;
    }
}

/* ========== SHOCKWAVE RINGS ========== */
.shockwave-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
}

.shockwave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid;
    animation: shockExpand 5s ease-out infinite;
}

    .shockwave:nth-child(1) {
        border-color: rgba(37,99,235,0.08);
        animation-delay: 0s;
    }

    .shockwave:nth-child(2) {
        border-color: rgba(8,145,178,0.06);
        animation-delay: 1.25s;
    }

    .shockwave:nth-child(3) {
        border-color: rgba(37,99,235,0.07);
        animation-delay: 2.5s;
    }

    .shockwave:nth-child(4) {
        border-color: rgba(34,211,238,0.05);
        animation-delay: 3.75s;
    }

@keyframes shockExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
        border-width: 2px;
    }

    100% {
        width: 1000px;
        height: 1000px;
        opacity: 0;
        border-width: 0.5px;
    }
}

/* ========== GRID ========== */
.grid-overlay {
    position: fixed;
    inset: 0;
    z-index: 2;
    background-image: linear-gradient(rgba(37,99,235,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridShift 25s linear infinite;
}

@keyframes gridShift {
    0% {
        transform: translate(0,0);
    }

    100% {
        transform: translate(50px,50px);
    }
}

/* ========== FLOATING SHAPES ========== */
.shape-container {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.float-shape {
    position: absolute;
    animation: shapeFloat 20s ease-in-out infinite;
}

    .float-shape::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, var(--primary), var(--accent));
        opacity: 0.08;
    }

.shape-hex::before {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.shape-diamond::before {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.shape-tri::before {
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.shape-circle::before {
    border-radius: 50%;
}

.float-shape:nth-child(1) {
    top: 6%;
    left: 4%;
    width: 70px;
    height: 70px;
    animation-duration: 22s;
}

.float-shape:nth-child(2) {
    top: 58%;
    left: 92%;
    width: 50px;
    height: 50px;
    animation-delay: -5s;
    animation-duration: 26s;
}

.float-shape:nth-child(3) {
    top: 20%;
    left: 82%;
    width: 85px;
    height: 85px;
    animation-delay: -10s;
    animation-duration: 19s;
}

.float-shape:nth-child(4) {
    top: 76%;
    left: 8%;
    width: 60px;
    height: 60px;
    animation-delay: -7s;
    animation-duration: 24s;
}

.float-shape:nth-child(5) {
    top: 12%;
    left: 50%;
    width: 40px;
    height: 40px;
    animation-delay: -14s;
    animation-duration: 28s;
}

.float-shape:nth-child(6) {
    top: 45%;
    left: 30%;
    width: 55px;
    height: 55px;
    animation-delay: -3s;
    animation-duration: 21s;
}

.float-shape:nth-child(7) {
    top: 85%;
    left: 65%;
    width: 45px;
    height: 45px;
    animation-delay: -9s;
    animation-duration: 23s;
}

.float-shape:nth-child(8) {
    top: 35%;
    left: 15%;
    width: 35px;
    height: 35px;
    animation-delay: -12s;
    animation-duration: 25s;
}

@keyframes shapeFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-30px) rotate(40deg);
    }

    50% {
        transform: translateY(-15px) rotate(80deg);
    }

    75% {
        transform: translateY(-42px) rotate(120deg);
    }
}

/* ========== MOUSE GLOW ========== */
.mouse-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, rgba(8,145,178,0.04) 30%, transparent 65%);
    pointer-events: none;
    z-index: 3;
    transform: translate(-50%, -50%);
}

/* ========== TOP BAR ========== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent-light), var(--primary-light), transparent);
    z-index: 20;
    opacity: 0.6;
}

    .top-bar::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 25%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
        animation: topBarSweep 3.5s ease-in-out infinite;
    }

@keyframes topBarSweep {
    0% {
        left: -25%;
    }

    100% {
        left: 100%;
    }
}

/* ========== WRAPPER ========== */
.wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* ========== LOGIN CONTAINER ========== */
.login-container {
    position: relative;
    width: var(--card-width);
    animation: containerEntry 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes containerEntry {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Card border breathing */
.card-border-glow {
    position: absolute;
    inset: -1px;
    border-radius: 22px;
    overflow: hidden;
    pointer-events: none;
}

    .card-border-glow::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 22px;
        padding: 2px;
        background: linear-gradient(135deg, var(--primary), var(--accent-light), var(--primary-light), var(--accent));
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        animation: borderBreathe 3s ease-in-out infinite;
    }

@keyframes borderBreathe {
    0%, 100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.7;
    }
}

/* Traveling light around card */
.card-travel-light {
    position: absolute;
    inset: -1px;
    border-radius: 22px;
    overflow: hidden;
    pointer-events: none;
    z-index: 6;
}

.travel-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, var(--accent-light), transparent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-light), 0 0 24px rgba(34,211,238,0.3);
    animation: travelAround 4s linear infinite;
}

.travel-trail {
    position: absolute;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-light));
    border-radius: 1px;
    animation: travelAround 4s linear infinite;
    opacity: 0.5;
    animation-delay: -0.08s;
}

.travel-dot, .travel-trail {
    offset-path: path('M22,0 L398,0 Q420,0 420,22 L420,408 Q420,430 398,430 L22,430 Q0,430 0,408 L0,22 Q0,0 22,0 Z');
    offset-rotate: 0deg;
}

@keyframes travelAround {
    0% {
        offset-distance: 0%;
    }

    100% {
        offset-distance: 100%;
    }
}

/* Card body */
.card-body {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(28px) saturate(1.6);
    -webkit-backdrop-filter: blur(28px) saturate(1.6);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.6);
    padding: 48px 40px 40px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.card-shimmer {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

    .card-shimmer::before {
        content: '';
        position: absolute;
        top: 0;
        left: -120%;
        width: 70%;
        height: 100%;
        background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.3) 50%, transparent 65%);
        animation: shimmerSweep 7s ease-in-out infinite;
    }

@keyframes shimmerSweep {
    0% {
        left: -120%;
    }

    35% {
        left: 160%;
    }

    100% {
        left: 160%;
    }
}

.scan-line {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 10%, var(--primary-light), var(--accent-light), transparent 90%);
    box-shadow: 0 0 10px var(--primary-glow);
    animation: scanDown 4.5s ease-in-out infinite;
    z-index: 20;
    opacity: 0.6;
}

@keyframes scanDown {
    0% {
        top: -1px;
        opacity: 0;
    }

    8% {
        opacity: 0.6;
    }

    92% {
        opacity: 0.6;
    }

    100% {
        top: calc(100% + 1px);
        opacity: 0;
    }
}

.corner {
    position: absolute;
    width: 20px;
    height: 20px;
    z-index: 5;
}

    .corner::before, .corner::after {
        content: '';
        position: absolute;
        background: var(--primary);
        opacity: 0.2;
        border-radius: 1px;
    }

.corner-tl {
    top: 10px;
    left: 10px;
}

    .corner-tl::before {
        width: 10px;
        height: 1.5px;
        top: 0;
        left: 0;
    }

    .corner-tl::after {
        width: 1.5px;
        height: 10px;
        top: 0;
        left: 0;
    }

.corner-tr {
    top: 10px;
    right: 10px;
}

    .corner-tr::before {
        width: 10px;
        height: 1.5px;
        top: 0;
        right: 0;
    }

    .corner-tr::after {
        width: 1.5px;
        height: 10px;
        top: 0;
        right: 0;
    }

.corner-bl {
    bottom: 10px;
    left: 10px;
}

    .corner-bl::before {
        width: 10px;
        height: 1.5px;
        bottom: 0;
        left: 0;
    }

    .corner-bl::after {
        width: 1.5px;
        height: 10px;
        bottom: 0;
        left: 0;
    }

.corner-br {
    bottom: 10px;
    right: 10px;
}

    .corner-br::before {
        width: 10px;
        height: 1.5px;
        bottom: 0;
        right: 0;
    }

    .corner-br::after {
        width: 1.5px;
        height: 10px;
        bottom: 0;
        right: 0;
    }

/* Logo */
.logo-section {
    text-align: center;
    margin-bottom: 38px;
    animation: logoEntry 0.8s 0.3s cubic-bezier(0.16,1,0.3,1) both;
    position: relative;
    z-index: 5;
}

@keyframes logoEntry {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    animation: logoFloat 4s ease-in-out infinite;
}

    .logo-icon svg {
        width: 100%;
        height: 100%;
        filter: drop-shadow(0 4px 12px rgba(37,99,235,0.25));
    }

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
        filter: drop-shadow(0 4px 12px rgba(37,99,235,0.2));
    }

    50% {
        transform: translateY(-4px);
        filter: drop-shadow(0 8px 20px rgba(37,99,235,0.35));
    }
}

.logo-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

    .logo-title .glitch-text {
        position: relative;
        display: inline-block;
    }

        .logo-title .glitch-text::before, .logo-title .glitch-text::after {
            content: attr(data-text);
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            background: inherit;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .logo-title .glitch-text::before {
            animation: glitch1 5s infinite;
            clip-path: inset(0 0 65% 0);
        }

        .logo-title .glitch-text::after {
            animation: glitch2 5s infinite;
            clip-path: inset(65% 0 0 0);
        }

@keyframes glitch1 {
    0%,92%,100% {
        opacity: 0;
        transform: translate(0);
    }

    93% {
        opacity: 0.7;
        transform: translate(-2px,-1px);
    }

    95% {
        opacity: 0.7;
        transform: translate(2px,1px);
    }

    97% {
        opacity: 0;
    }
}

@keyframes glitch2 {
    0%,92%,100% {
        opacity: 0;
        transform: translate(0);
    }

    94% {
        opacity: 0.7;
        transform: translate(2px,1px);
    }

    96% {
        opacity: 0.7;
        transform: translate(-2px,-1px);
    }

    98% {
        opacity: 0;
    }
}

.logo-subtitle {
    font-size: 11px;
    letter-spacing: 6px;
    color: var(--text-secondary);
    margin-top: 8px;
    text-transform: uppercase;
    animation: subtitleEntry 0.8s 0.5s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes subtitleEntry {
    0% {
        opacity: 0;
        letter-spacing: 14px;
    }

    100% {
        opacity: 1;
        letter-spacing: 6px;
    }
}

/* Form */
.form-section {
    animation: formEntry 0.8s 0.5s cubic-bezier(0.16,1,0.3,1) both;
    position: relative;
    z-index: 5;
}

@keyframes formEntry {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-group {
    position: relative;
    margin-bottom: 22px;
}

    .input-group .input-icon {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
        color: var(--text-secondary);
        transition: all 0.3s ease;
        pointer-events: none;
    }

        .input-group .input-icon svg {
            width: 18px;
            height: 18px;
            stroke: currentColor;
            fill: none;
            stroke-width: 1.8;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

.input-field {
    width: 100%;
    height: 50px;
    padding: 0 16px 0 48px;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(37,99,235,0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    letter-spacing: 0.5px;
    outline: none;
    transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
    box-shadow: 0 1px 3px rgba(37,99,235,0.05);
}

    .input-field::placeholder {
        color: var(--text-secondary);
        transition: all 0.3s ease;
    }

    .input-field:focus {
        border-color: var(--primary);
        background: rgba(255,255,255,0.85);
        box-shadow: 0 0 0 4px var(--primary-dim), 0 4px 16px rgba(37,99,235,0.08);
    }

        .input-field:focus::placeholder {
            opacity: 0.3;
            transform: translateX(5px);
        }

        .input-field:focus ~ .input-icon {
            color: var(--primary);
        }

.input-glow {
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 0 0 12px 12px;
    transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
    transform: translateX(-50%);
    box-shadow: 0 2px 8px rgba(37,99,235,0.15);
}

.input-field:focus ~ .input-glow {
    width: 100%;
}

.btn-wrapper {
    margin-top: 30px;
    animation: btnEntry 0.8s 0.7s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes btnEntry {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-login {
    position: relative;
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 4px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
    outline: none;
    box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}

    .btn-login::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, var(--accent), var(--primary));
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    .btn-login:hover::before {
        opacity: 1;
    }

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 28px rgba(37,99,235,0.35);
    }

    .btn-login:active {
        transform: translateY(0) scale(0.98);
    }

    .btn-login span {
        position: relative;
        z-index: 2;
    }

    .btn-login::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 50%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        z-index: 1;
        animation: btnShine 3s ease-in-out infinite;
    }

@keyframes btnShine {
    0% {
        left: -100%;
    }

    30% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

.btn-pulse {
    position: absolute;
    inset: -3px;
    border-radius: 14px;
    border: 1px solid var(--primary-light);
    animation: energyPulse 2.5s ease-out infinite;
    pointer-events: none;
}

@keyframes energyPulse {
    0% {
        opacity: 0.4;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.04, 1.15);
    }
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
    z-index: 3;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.status-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 22px;
    animation: statusEntry 0.8s 0.9s cubic-bezier(0.16,1,0.3,1) both;
    position: relative;
    z-index: 5;
}

@keyframes statusEntry {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%,100% {
        opacity: 0.5;
        box-shadow: 0 0 4px rgba(34,197,94,0.3);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 10px rgba(34,197,94,0.5);
    }
}

.status-text {
    font-size: 11px;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.footer-info {
    text-align: center;
    margin-top: 28px;
    font-size: 11px;
    color: var(--text-secondary);
    letter-spacing: 1px;
    animation: footerEntry 0.8s 1.1s cubic-bezier(0.16,1,0.3,1) both;
    position: relative;
    z-index: 5;
}

@keyframes footerEntry {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.side-deco {
    position: fixed;
    z-index: 5;
    pointer-events: none;
}

.side-deco-left {
    top: 50%;
    left: 32px;
    transform: translateY(-50%);
}

.side-deco-right {
    top: 50%;
    right: 32px;
    transform: translateY(-50%);
}

.deco-line {
    width: 1px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(37,99,235,0.12), transparent);
    margin: 0 auto;
    position: relative;
}

    .deco-line::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        width: 5px;
        height: 5px;
        background: var(--primary);
        border-radius: 50%;
        box-shadow: 0 0 8px var(--primary-glow);
        animation: decoDotPulse 3s ease-in-out infinite;
        opacity: 0.4;
    }

@keyframes decoDotPulse {
    0%,100% {
        opacity: 0.25;
    }

    50% {
        opacity: 0.6;
    }
}

.deco-text {
    writing-mode: vertical-rl;
    font-size: 10px;
    letter-spacing: 4px;
    color: rgba(37,99,235,0.12);
    margin-top: 14px;
    font-family: 'Courier New', monospace;
}

.login-loading {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    border-radius: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

    .login-loading.active {
        opacity: 1;
        pointer-events: all;
    }

.loading-spinner {
    width: 38px;
    height: 38px;
    border: 2.5px solid rgba(37,99,235,0.12);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 480px) {
    :root {
        --card-width: 92vw;
    }

    .card-body {
        padding: 36px 24px 28px;
    }

    .side-deco {
        display: none;
    }

    .logo-title {
        font-size: 18px;
    }
}

.layui-form {
    padding: 0;
}

.layui-btn {
    display: none;
}

.layui-form-item {
    margin: 0;
}


