/* ===== SISTEMA DE PARTÍCULAS FORGE ===== */

#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}


/* ===== PARTÍCULAS FLOTANTES ===== */

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.6;
    animation: float linear infinite;
}


/* Partículas rojas principales */

.particle-red {
    background: radial-gradient(circle, var(--primary-red), transparent);
    box-shadow: 0 0 10px var(--primary-red);
}


/* Partículas rojas oscuras */

.particle-dark-red {
    background: radial-gradient(circle, var(--dark-red), transparent);
    box-shadow: 0 0 8px var(--dark-red);
}


/* Partículas blancas sutiles */

.particle-white {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}


/* ===== ANIMACIONES DE PARTÍCULAS ===== */

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes floatLeft {
    0% {
        transform: translateX(100vw) translateY(50vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateX(-100px) translateY(0vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes floatRight {
    0% {
        transform: translateX(-100px) translateY(50vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateX(100vw) translateY(0vh) rotate(-360deg);
        opacity: 0;
    }
}


/* ===== EFECTOS DE RESPLANDOR ===== */

.glow-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.3;
    animation: orbFloat 15s ease-in-out infinite;
    filter: blur(2px);
}

.glow-orb-1 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--glow-color), transparent);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.glow-orb-2 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(139, 21, 56, 0.4), transparent);
    top: 60%;
    right: 20%;
    animation-delay: 5s;
}

.glow-orb-3 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
    top: 80%;
    left: 60%;
    animation-delay: 10s;
}

@keyframes orbFloat {
    0%,
    100% {
        transform: translateY(0px) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) scale(1.1);
        opacity: 0.5;
    }
    50% {
        transform: translateY(0px) scale(0.9);
        opacity: 0.2;
    }
    75% {
        transform: translateY(15px) scale(1.05);
        opacity: 0.4;
    }
}


/* ===== ELEMENTOS ESPECÍFICOS DE KARATE/ARTES MARCIALES ===== */


/* Puñetazos de energía */

.punch-impact {
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, var(--primary-red) 0%, rgba(255, 107, 53, 0.6) 40%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    animation: punchStrike 2s ease-out infinite;
    box-shadow: 0 0 20px var(--primary-red);
}

@keyframes punchStrike {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    10% {
        transform: scale(1.5);
        opacity: 1;
    }
    30% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(0.2);
        opacity: 0;
    }
}


/* Patadas circulares */

.kick-trail {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-red), #ff6b35, var(--primary-red), transparent);
    opacity: 0;
    animation: kickSweep 1.8s ease-in-out infinite;
    border-radius: 3px;
    transform-origin: left center;
}

@keyframes kickSweep {
    0% {
        transform: rotate(0deg) scaleX(0);
        opacity: 0;
    }
    25% {
        transform: rotate(90deg) scaleX(1);
        opacity: 1;
    }
    50% {
        transform: rotate(180deg) scaleX(1.2);
        opacity: 0.8;
    }
    75% {
        transform: rotate(270deg) scaleX(0.8);
        opacity: 0.6;
    }
    100% {
        transform: rotate(360deg) scaleX(0);
        opacity: 0;
    }
}


/* Kiai (grito de poder) */

.kiai-wave {
    width: 0;
    height: 0;
    border: 2px solid var(--primary-red);
    border-radius: 50%;
    opacity: 0;
    animation: kiaiExplosion 3s ease-out infinite;
}

@keyframes kiaiExplosion {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
        border-width: 3px;
    }
    50% {
        width: 100px;
        height: 100px;
        opacity: 0.6;
        border-width: 1px;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
        border-width: 0px;
    }
}


/* Emojis de artes marciales flotantes */

.martial-emoji {
    font-size: 20px;
    opacity: 0.6;
    animation: emojiFloat 6s ease-in-out infinite;
    text-shadow: 0 0 8px var(--glow-color);
}

.martial-emoji.karate::before {
    content: '🥋';
    /* Karategi */
}

.martial-emoji.fist::before {
    content: '👊';
    /* Puño */
}

.martial-emoji.trophy::before {
    content: '🏆';
    /* Trofeo */
}

.martial-emoji.meditation::before {
    content: '🧘';
    /* Meditación */
}

.martial-emoji.dragon::before {
    content: '🐉';
    /* Dragón */
}

@keyframes emojiFloat {
    0% {
        transform: translateY(100vh) scale(0.8) rotate(0deg);
        opacity: 0;
    }
    20% {
        opacity: 0.8;
        transform: translateY(80vh) scale(1) rotate(36deg);
    }
    80% {
        opacity: 0.8;
        transform: translateY(20vh) scale(1.1) rotate(324deg);
    }
    100% {
        transform: translateY(-10vh) scale(0.6) rotate(360deg);
        opacity: 0;
    }
}


/* ===== PUNTOS DE LUZ ===== */

.light-dot {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-red);
    border-radius: 50%;
    opacity: 0;
    animation: lightDotPulse 3s ease-in-out infinite;
    box-shadow: 0 0 4px var(--primary-red);
}

@keyframes lightDotPulse {
    0%,
    100% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(2);
    }
}


/* ===== PARTÍCULAS RESPONSIVAS ===== */

@media (max-width: 768px) {
    .particle {
        animation-duration: 8s;
    }
    .glow-orb {
        animation-duration: 12s;
    }
    .glow-orb-1 {
        width: 150px;
        height: 150px;
    }
    .glow-orb-2 {
        width: 100px;
        height: 100px;
    }
    .glow-orb-3 {
        width: 80px;
        height: 80px;
    }
    .energy-line {
        animation-duration: 6s;
    }
}

@media (max-width: 480px) {
    .particle {
        animation-duration: 6s;
    }
    .glow-orb-1 {
        width: 100px;
        height: 100px;
    }
    .glow-orb-2 {
        width: 80px;
        height: 80px;
    }
    .glow-orb-3 {
        width: 60px;
        height: 60px;
    }
}


/* ===== EFECTOS DE HOVER EN CONTAINER ===== */

.login-container:hover~#particles-container .particle {
    animation-duration: 4s;
}

.login-container:hover~#particles-container .glow-orb {
    opacity: 0.5;
    animation-duration: 8s;
}


/* ===== PARTÍCULAS ESTÁTICAS DECORATIVAS ===== */

.static-particle {
    position: absolute;
    width: 1px;
    height: 1px;
    background: var(--primary-red);
    border-radius: 50%;
    opacity: 0.6;
    animation: staticTwinkle 4s ease-in-out infinite;
}

@keyframes staticTwinkle {
    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}