/* ========================================
   static/v4/css/login.css
   LOGIN CHKPOOL - EFECTOS NEON COMPLETOS
   ======================================== */

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body principal */
body {
    background: #000;
    color: #fff;
    font-family: 'Orbitron', monospace;
    overflow: hidden;
    position: relative;
}

/* =======================
   PARTÍCULAS ANIMADAS
   ======================= */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ff0040;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 0 10px #ff0040;
}

.particle:nth-child(odd) { animation-delay: -2s; }
.particle:nth-child(even) { animation-delay: -4s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

/* ==================
   CONTENEDOR LOGIN
   ================== */
.login {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.login__block {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    max-width: 420px;
    width: 100%;
    position: relative;
    animation: neonPulse 3s ease-in-out infinite alternate;
    box-shadow: 
        0 0 30px rgba(255, 0, 64, 0.3),
        0 0 60px rgba(255, 0, 64, 0.2),
        inset 0 0 20px rgba(255, 0, 64, 0.1);
    border-image: linear-gradient(45deg, #ff0040, #ff4081, #ff0040) 1;
}

@keyframes neonPulse {
    0% { 
        box-shadow: 
            0 0 30px rgba(255, 0, 64, 0.3),
            0 0 60px rgba(255, 0, 64, 0.2),
            inset 0 0 20px rgba(255, 0, 64, 0.1);
        transform: scale(1);
    }
    100% { 
        box-shadow: 
            0 0 40px rgba(255, 0, 64, 0.6),
            0 0 80px rgba(255, 0, 64, 0.4),
            inset 0 0 30px rgba(255, 0, 64, 0.2);
        transform: scale(1.02);
    }
}

/* ===============
   LOGO ANIMADO
   =============== */
.login__logo {
    width: 120px;
    height: auto;
    margin: 0 auto 30px;
    display: block;
    filter: drop-shadow(0 0 15px #ff0040) brightness(1.2);
    animation: logoFloat 4s ease-in-out infinite, glowRotate 8s linear infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes glowRotate {
    0% { filter: drop-shadow(0 0 15px #ff0040) brightness(1.2); }
    25% { filter: drop-shadow(0 0 25px #ff4081) brightness(1.3); }
    50% { filter: drop-shadow(0 0 15px #ff0040) brightness(1.2); }
    75% { filter: drop-shadow(0 0 25px #ff4081) brightness(1.3); }
    100% { filter: drop-shadow(0 0 15px #ff0040) brightness(1.2); }
}

/* =================
   TÍTULO PRINCIPAL
   ================= */
.login__title {
    font-size: 2.2em;
    font-weight: 900;
    background: linear-gradient(45deg, #ff0040, #ff4081, #ff0040);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    animation: titleGlow 2s ease-in-out infinite alternate;
    text-shadow: 0 0 20px rgba(255, 0, 64, 0.5);
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 20px rgba(255, 0, 64, 0.5); }
    100% { text-shadow: 0 0 30px rgba(255, 0, 64, 0.8), 0 0 40px rgba(255, 0, 64, 0.4); }
}

/* Efecto de escritura */
.typing {
    overflow: hidden;
    border-right: 3px solid #ff0040;
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #ff0040; }
}

/* ====================
   CAMPOS FORMULARIO
   ==================== */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-control {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 0, 64, 0.3);
    color: #fff;
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 1.1em;
    font-family: 'Orbitron', monospace;
    width: 100%;
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.form-control:focus {
    outline: none;
    border-color: #ff0040;
    box-shadow: 
        0 0 20px rgba(255, 0, 64, 0.5),
        inset 0 0 20px rgba(255, 0, 64, 0.1);
    transform: scale(1.02);
    background: rgba(255, 0, 64, 0.1);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* ==============
   BOTONES NEON
   ============== */
.btn-theme, .btn-signup {
    background: linear-gradient(45deg, transparent, rgba(255, 0, 64, 0.2), transparent);
    border: 2px solid transparent;
    border-image: linear-gradient(45deg, #ff0040, #ff4081) 1;
    color: #fff;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: 700;
    border-radius: 12px;
    font-family: 'Orbitron', monospace;
    margin: 10px 0;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    text-decoration: none;
    display: block;
}

.btn-theme:hover, .btn-signup:hover {
    background: linear-gradient(45deg, #ff0040, #ff4081);
    box-shadow: 
        0 0 25px rgba(255, 0, 64, 0.8),
        0 0 40px rgba(255, 0, 64, 0.6);
    transform: translateY(-3px) scale(1.05);
    animation: buttonPulse 0.6s ease;
}

@keyframes buttonPulse {
    0% { box-shadow: 0 0 25px rgba(255, 0, 64, 0.8), 0 0 40px rgba(255, 0, 64, 0.6); }
    50% { box-shadow: 0 0 35px rgba(255, 0, 64, 1), 0 0 60px rgba(255, 0, 64, 0.8); }
    100% { box-shadow: 0 0 25px rgba(255, 0, 64, 0.8), 0 0 40px rgba(255, 0, 64, 0.6); }
}

/* ===============
   LÍNEA DIVISORIA
   =============== */
hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff0040, #ff4081, #ff0040, transparent);
    margin: 30px 0;
    border-radius: 2px;
    animation: lineGlow 2s ease-in-out infinite alternate;
}

@keyframes lineGlow {
    0% { box-shadow: 0 0 5px rgba(255, 0, 64, 0.5); }
    100% { box-shadow: 0 0 15px rgba(255, 0, 64, 0.8); }
}

/* Link del grupo */
.form-group small a {
    color: #ff4081;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.form-group small a:hover {
    color: #ff0040;
    text-shadow: 0 0 10px #ff0040;
}

/* =============
   RESPONSIVE
   ============= */
@media (max-width: 480px) {
    .login__block {
        padding: 40px 25px;
        margin: 10px;
    }
    
    .login__title {
        font-size: 1.8em;
    }
}