/* ========================================================
   ARCHIVO DE LOGIN - DISEÑO MODERNO Y LLAMATIVO
   ======================================================== */

/* ==================== FONDO DEL LOGIN ==================== */
.login-bg {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}

/* Patrón geométrico animado */
.login-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(45deg, transparent 30%, rgba(212, 175, 55, 0.05) 30%, rgba(212, 175, 55, 0.05) 70%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(255, 255, 255, 0.02) 30%, rgba(255, 255, 255, 0.02) 70%, transparent 70%);
    background-size: 120px 120px, 120px 120px;
    animation: moveBackground 80s linear infinite;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, 50px) rotate(360deg); }
}

/* Gradientes de luz */
.login-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    animation: glassShift 20s ease-in-out infinite;
}

@keyframes glassShift {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ==================== TARJETA DE LOGIN ==================== */
.interactive-login {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 245, 245, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    animation: fadeInUp 0.8s ease-out, floatLogin 6s ease-in-out infinite 1s;
    border-radius: 24px;
    padding: 40px 45px;
    position: relative;
    z-index: 10;
    max-width: 420px;
    border: none;
}

@keyframes floatLogin {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Borde superior dorado brillante */
.interactive-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, 
        var(--color-secondary) 0%, 
        var(--color-cyan) 50%, 
        var(--color-secondary) 100%);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.5);
}

/* ==================== LOGO SHIELD ORIGINAL ==================== */
.lock-shield {
    font-size: 60px;
    color: var(--color-secondary);
    text-align: center;
    margin-bottom: 25px;
    animation: shieldPulse 3s ease-in-out infinite;
}

.lock-shield i {
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
}

@keyframes shieldPulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
    }
    50% { 
        transform: scale(1.05);
        filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.8));
    }
}

/* ==================== LOGO ANIMADO INTERACTIVO ==================== */
.animated-logo {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.animated-logo:hover {
    transform: scale(1.05);
}

/* Contenedor de partículas */
.logo-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotateParticles 20s linear infinite;
}

@keyframes rotateParticles {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Partículas individuales */
.particle-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-cyan));
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    animation: particlePulse 2s ease-in-out infinite;
}

.particle-dot:nth-child(1) {
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.particle-dot:nth-child(2) {
    top: 30%;
    right: 15%;
    animation-delay: 0.3s;
}

.particle-dot:nth-child(3) {
    bottom: 30%;
    right: 10%;
    animation-delay: 0.6s;
}

.particle-dot:nth-child(4) {
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.9s;
}

.particle-dot:nth-child(5) {
    bottom: 30%;
    left: 10%;
    animation-delay: 1.2s;
}

.particle-dot:nth-child(6) {
    top: 30%;
    left: 15%;
    animation-delay: 1.5s;
}

@keyframes particlePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
        box-shadow: 0 0 25px rgba(212, 175, 55, 0.9);
    }
}

/* Texto del logo */
.logo-text {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 2px;
}

.logo-letter {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 10px rgba(212, 175, 55, 0.4));
    animation: letterFloat 3s ease-in-out infinite;
    display: inline-block;
}

.logo-letter:nth-child(1) {
    animation-delay: 0s;
}

.logo-letter:nth-child(2) {
    animation-delay: 0.2s;
}

.logo-letter:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes letterFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Efecto hover interactivo */
.animated-logo:hover .particle-dot {
    animation-duration: 1s;
}

.animated-logo:hover .logo-particles {
    animation-duration: 10s;
}

.animated-logo:hover .logo-letter {
    animation-duration: 1.5s;
    filter: drop-shadow(0 4px 20px rgba(212, 175, 55, 0.8));
}

/* Efecto de clic */
.animated-logo:active {
    transform: scale(0.95);
}

.animated-logo:active .particle-dot {
    animation: particleExplode 0.5s ease-out;
}

@keyframes particleExplode {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.6;
    }
}

/* Título principal */
.interactive-login h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #06b6d4;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    text-align: center;
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.5), 0 2px 4px rgba(6, 182, 212, 0.3);
}

.login-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 2.5px;
    margin-top: 0;
    margin-bottom: 35px;
    font-weight: 600;
    text-transform: uppercase;
}

/* ==================== INPUTS ==================== */
.neon-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    padding: 18px 24px;
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.neon-input-group::before {
    display: none;
}

/* Estado focus del input */
.neon-input-group:focus-within {
    border-color: var(--color-secondary);
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 
        0 0 0 5px rgba(212, 175, 55, 0.15),
        0 8px 25px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transform: translateY(-3px);
}

/* Icono del input */
.input-icon {
    color: #6b7280;
    margin-right: 18px;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.neon-input-group:focus-within .input-icon {
    color: var(--color-secondary);
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
}

/* Campo de texto */
.neon-input-group input {
    background: transparent !important;
    border: none !important;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    width: 100%;
    color: #1a1a1a !important;
    outline: none;
    font-weight: 600;
}

.neon-input-group input::placeholder {
    color: #9ca3af;
    letter-spacing: 1px;
    font-weight: 500;
    font-size: 1.1rem;
}

/* Asegurar que el input de contraseña también tenga fondo transparente */
.neon-input-group input[type="password"] {
    background: transparent !important;
    -webkit-text-security: disc;
}

.input-line {
    display: none;
}

/* ==================== BOTONES DE LOGIN ==================== */
.login-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    justify-content: center;
    flex-direction: column;
}

.login-actions .nike-btn-neon {
    padding: 18px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    width: 100%;
    text-transform: uppercase;
    border: none;
}

/* Botón principal (EJECUTAR) */
.login-actions .nike-btn-neon.magenta {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 0 3px rgba(212, 175, 55, 0.3);
}

.login-actions .nike-btn-neon.magenta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    transition: left 0.5s;
}

.login-actions .nike-btn-neon.magenta:hover::before {
    left: 100%;
}

.login-actions .nike-btn-neon.magenta:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 0 3px rgba(212, 175, 55, 0.5),
        0 0 30px rgba(212, 175, 55, 0.3);
}

.login-actions .nike-btn-neon.magenta:active {
    transform: translateY(-2px);
}

/* Botón secundario (INVITADO) */
.login-actions .nike-btn-neon:not(.magenta) {
    background: #ffffff;
    border: 3px solid #1a1a1a;
    color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.login-actions .nike-btn-neon:not(.magenta):hover {
    background: #1a1a1a;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ==================== FOOTER DEL LOGIN ==================== */
.login-footer {
    margin-top: 35px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    font-weight: 500;
    text-transform: uppercase;
}

/* ==================== PARTÍCULAS FLOTANTES ==================== */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-particles .particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.8), transparent);
    border-radius: 50%;
    animation: floatParticle 25s linear infinite;
    opacity: 0;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.floating-particles .particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 28s;
}

.floating-particles .particle:nth-child(2) {
    left: 20%;
    animation-delay: 3s;
    animation-duration: 25s;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.8), transparent);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.floating-particles .particle:nth-child(3) {
    left: 35%;
    animation-delay: 6s;
    animation-duration: 30s;
}

.floating-particles .particle:nth-child(4) {
    left: 50%;
    animation-delay: 2s;
    animation-duration: 27s;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.8), transparent);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.floating-particles .particle:nth-child(5) {
    left: 65%;
    animation-delay: 8s;
    animation-duration: 29s;
}

.floating-particles .particle:nth-child(6) {
    left: 75%;
    animation-delay: 4s;
    animation-duration: 26s;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.8), transparent);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.floating-particles .particle:nth-child(7) {
    left: 85%;
    animation-delay: 7s;
    animation-duration: 31s;
}

.floating-particles .particle:nth-child(8) {
    left: 92%;
    animation-delay: 5s;
    animation-duration: 24s;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.8), transparent);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1.5);
        opacity: 0;
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .interactive-login {
        padding: 50px 40px;
        max-width: 90%;
        border-radius: 28px;
    }
    
    .animated-logo {
        width: 100px;
        height: 100px;
        margin-bottom: 25px;
    }
    
    .logo-letter {
        font-size: 1.6rem !important;
    }
    
    .particle-dot {
        width: 6px;
        height: 6px;
    }
    
    .interactive-login h2 {
        font-size: 2rem;
    }
    
    .login-subtitle {
        font-size: 0.9rem;
        margin-bottom: 40px;
    }
    
    .neon-input-group {
        padding: 18px 24px;
    }
    
    .neon-input-group input {
        font-size: 1.1rem;
    }
    
    .login-actions .nike-btn-neon {
        padding: 18px 32px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .interactive-login {
        padding: 40px 30px;
        max-width: 95%;
        border-radius: 24px;
    }
    
    .animated-logo {
        width: 90px;
        height: 90px;
        margin-bottom: 20px;
    }
    
    .logo-letter {
        font-size: 1.4rem !important;
    }
    
    .particle-dot {
        width: 5px;
        height: 5px;
    }
    
    .interactive-login h2 {
        font-size: 1.8rem;
    }
    
    .login-subtitle {
        font-size: 0.8rem;
        letter-spacing: 2px;
        margin-bottom: 35px;
    }
    
    .neon-input-group {
        padding: 16px 20px;
        border-radius: 16px;
    }
    
    .input-icon {
        font-size: 1.3rem;
    }
    
    .neon-input-group input {
        font-size: 1rem;
    }
    
    .neon-input-group input::placeholder {
        font-size: 1rem;
    }
    
    .login-actions {
        margin-top: 35px;
        gap: 12px;
    }
    
    .login-actions .nike-btn-neon {
        padding: 16px 28px;
        font-size: 1rem;
        border-radius: 16px;
    }
    
    .login-footer {
        margin-top: 40px;
        font-size: 0.75rem;
    }
}
