:root {
    --color1: #ff6ec4;
    --color2: #7873f5;
    --color3: #4f46e5;
    --speed: 12s;
    --ease: cubic-bezier(.22, .9, .32, 1);
}

html,
body {
    height: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(270deg, var(--color1), var(--color2), var(--color3));
    background-size: 600% 600%;
    animation: gradientShift var(--speed) var(--ease) infinite;
    overflow: hidden;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.spark {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.8;
    animation: drift 12s linear infinite;
}

@keyframes drift {
    from {
        transform: translateY(100vh) translateX(0);
        opacity: 0.8;
    }

    to {
        transform: translateY(-10vh) translateX(40px);
        opacity: 0;
    }
}

.glass-box {
    position: relative;
    z-index: 2;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.pulse {
    position: relative;
    width: 64px;
    height: 64px;
}

.ring {
    position: absolute;
    inset: 0;
    border: 4px solid #fff;
    border-radius: 50%;
    opacity: 1;
    transform: scale(1);
    animation: pulse 1.6s cubic-bezier(.2, .9, .2, 1) infinite;
}

.ring:nth-child(2) {
    animation-delay: 0.4s;
}

.ring:nth-child(3) {
    animation-delay: 0.8s;
}

.ring:nth-child(4) {
    animation-delay: 1.2s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    60% {
        transform: scale(1.8);
        opacity: .2;
    }

    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    html,
    body {
        animation: none !important;
    }

    .aurora span,
    .spark,
    .ring {
        animation: none !important;
    }
}