/* ==========================================================
   АНИМИРОВАННЫЙ ФОН С ПЕРЕМЕЩАЮЩИМИСЯ ГРАДИЕНТАМИ
   ========================================================== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(ellipse at 20% 50%, #1a1a2e 0%, #0b0b10 70%);
    overflow: hidden;
}

.bp {
    position: absolute;
    width: 30px;
    height: 30px;
    top: 50px;
    left: 50px;
    animation: moveBp 20s linear infinite;
    z-index: 500000;
}

/* ----- ГРАДИЕНТНЫЕ ПЯТНА С ПОЛНЫМ ПЕРЕМЕЩЕНИЕМ ----- */
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    will-change: transform;
    /* Анимация перемещения по всей области */
    animation: moveGlow 20s ease-in-out infinite alternate;
}

/* Каждое пятно имеет свою траекторию, скорость и размер */
.glow:nth-child(1) {
    width: 600px;
    height: 600px;
    background: #6a11cb;
    animation-duration: 22s;
    animation-delay: 0s;
    top: -20%;
    left: -20%;
}

.glow:nth-child(2) {
    width: 700px;
    height: 700px;
    background: #2575fc;
    animation-duration: 26s;
    animation-delay: 3s;
    bottom: -25%;
    right: -20%;
}

.glow:nth-child(3) {
    width: 500px;
    height: 500px;
    background: #ff6a88;
    animation-duration: 24s;
    animation-delay: 6s;
    opacity: 0.3;
    top: 30%;
    left: 30%;
}

.glow:nth-child(4) {
    width: 450px;
    height: 450px;
    background: #00d2ff;
    animation-duration: 28s;
    animation-delay: 2s;
    opacity: 0.25;
    top: 50%;
    left: 10%;
}
@keyframes moveBp {
    0% {
        transform: translate(-50vw, 50vh) rotate(90deg);
    }
    49.9% {
        transform: translate(110vw, 50vh)  rotate(90deg);
    }
    50% {
        transform: translate(110vw, 50vh)  rotate(270deg);
    }
    100% {
        transform: translate(-50vw, 50vh)  rotate(270deg);
    }
}


/* ===== КЛЮЧЕВЫЕ КАДРЫ ДЛЯ ПЕРЕМЕЩЕНИЯ ===== */
@keyframes moveGlow {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    20% {
        transform: translate(30vw, -20vh) scale(1.2) rotate(60deg);
    }
    40% {
        transform: translate(-25vw, 30vh) scale(0.8) rotate(120deg);
    }
    60% {
        transform: translate(40vw, 20vh) scale(1.3) rotate(180deg);
    }
    80% {
        transform: translate(-35vw, -25vh) scale(0.9) rotate(240deg);
    }
    100% {
        transform: translate(20vw, -30vh) scale(1.1) rotate(300deg);
    }
}

/* Дополнительное вращение для третьего пятна (оно движется по кругу) */
.glow:nth-child(3) {
    animation-name: moveGlowCircle;
    animation-duration: 30s;
}

@keyframes moveGlowCircle {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    25% {
        transform: translate(35vw, -20vh) scale(1.15) rotate(90deg);
    }
    50% {
        transform: translate(20vw, 35vh) scale(0.85) rotate(180deg);
    }
    75% {
        transform: translate(-30vw, 15vh) scale(1.2) rotate(270deg);
    }
    100% {
        transform: translate(-10vw, -25vh) scale(1) rotate(360deg);
    }
}

/* ===== ЧАСТИЦЫ ===== */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: floatParticle linear infinite;
    opacity: 0;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) scale(0.3) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) scale(1.2) rotate(720deg);
        opacity: 0;
    }
}

/* ====================================================
   СТЕКЛЯННАЯ КАРТОЧКА (Glassmorphism)
   ==================================================== */
.glass-card {
    position: relative;
    z-index: 10;

    /*background: rgba(255, 255, 255, 0.06);*/
    background: rgba(18, 18, 30, 0.15);
    backdrop-filter: blur(5px) saturate(10%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);

    background-image:
            linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 50%),
            linear-gradient(225deg, rgba(255,255,255,0.02) 0%, transparent 50%);

    border-radius: 32px;
    padding: 48px 40px;
    width: 100%;
    /*max-width: 420px;*/

    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
            0 30px 80px rgba(0, 0, 0, 0.7),
            0 8px 32px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
    animation: fadeInUp 0.8s ease-out, borderPulse 4s ease-in-out infinite;
}

/* Блик на верхней части (создаёт ощущение стекла) */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.01) 60%,
            transparent 100%
    );
    border-radius: 32px 32px 0 0;
    pointer-events: none;
}

/* Диагональный блик (глянец) */
.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 10%;
    height: 10%;
    background: radial-gradient(
            ellipse at 30% 20%,
            rgba(255, 255, 255, 0.03) 0%,
            transparent 60%
    );
    pointer-events: none;
    border-radius: 32px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes borderPulse {
    0%,
    100% {
        border-color: rgba(255, 255, 255, 0.1);
    }
    50% {
        border-color: rgba(106, 17, 203, 0.25);
    }
}

/* ===== СОДЕРЖИМОЕ КАРТОЧКИ ===== */
.glass-card .card-header {
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.glass-card .subtitle {
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.glass-card label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.glass-card input:not([type="checkbox"]) {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 16px;
    transition: all 0.35s ease;
    outline: none;
    position: relative;
    z-index: 1;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.glass-card input[type="checkbox"] {
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 16px;
    transition: all 0.35s ease;
    outline: none;
    position: relative;
    z-index: 1;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);

    width: 18px;
    height: 18px;
    accent-color: #6a11cb;
}

.glass-card input:focus {
    border-color: rgba(106, 17, 203, 0.6);
    background: rgba(255, 255, 255, 0.08);
    box-shadow:
            0 0 0 4px rgba(106, 17, 203, 0.12),
            inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.glass-card input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.glass-card button {
    width: 100%;
    padding: 16px;
    /*border: none;*/
    border-radius: 16px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(106, 17, 203, 0.35);
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card button:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 48px rgba(106, 17, 203, 0.5);
}

.glass-card button:active {
    transform: scale(0.97);
}

.glass-card .footer-links {
    display: flex;
    justify-content: space-between;
    margin-top: 22px;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.glass-card .footer-links a {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.glass-card .footer-links a:hover {
    color: rgba(255, 255, 255, 0.8);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}
