/* ============================================
DESINCRYP - Páginas de Autenticación (Neon)
============================================ */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 110px 20px 50px;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: rgba(10, 10, 15, 0.85);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 20px;
    padding: 48px 40px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 243, 255, 0.05);
    animation: fadeInUp 0.6s ease;
}

.auth-card.wide { max-width: 620px; }

.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    text-decoration: none;
}

.logo-text-neon {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.neon-title {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    margin-bottom: 32px;
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    animation: fadeIn 0.4s ease;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
}

.alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ff6b7a;
}

.alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #2ed375;
}

/* Form */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group { margin-bottom: 20px; position: relative; }

.form-group label {
    display: block;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-link {
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    color: var(--neon-cyan);
    text-decoration: none;
    transition: all 0.3s;
}

.forgot-link:hover {
    color: var(--neon-purple);
    text-shadow: 0 0 10px rgba(188, 19, 254, 0.5);
}

.neon-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(5, 5, 8, 0.6);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.neon-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
    background: rgba(5, 5, 8, 0.9);
}

.neon-input::placeholder { color: var(--text-muted); }

.input-error { 
    border-color: #ff4757 !important; 
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.2) !important;
}

.field-error {
    color: #ff6b7a;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 600;
    margin-top: 6px;
}

/* Toggle password */
.pass-wrapper { position: relative; }

.toggle-pass {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.toggle-pass:hover { opacity: 1; }

/* Checkboxes */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.checkbox-group input {
    width: 18px;
    height: 18px;
    accent-color: var(--neon-cyan);
    margin-top: 2px;
    cursor: pointer;
}

.checkbox-group a { 
    color: var(--neon-cyan); 
    text-decoration: none;
    font-weight: 600;
}

.checkbox-group a:hover { text-decoration: underline; }

.checkbox-error {
    display: none;
    color: #ff6b7a;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 600;
    margin: -8px 0 14px;
}

.checkbox-error.visible { display: block; }

/* Divider y footer */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 26px 0;
    color: var(--text-muted);
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.3), transparent);
}

.auth-divider span { padding: 0 14px; }

.auth-footer {
    text-align: center;
    color: var(--text-secondary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 500;
}

.auth-footer a {
    color: var(--neon-cyan);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.auth-footer a:hover {
    color: var(--neon-purple);
    text-shadow: 0 0 10px rgba(188, 19, 254, 0.5);
}

.referral-hint {
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.4;
}

@media (max-width: 560px) {
    .auth-card { padding: 36px 24px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .logo-text-neon { font-size: 26px; }
}
/* ===== EFECTOS NEON PARA AUTH ===== */
.neon-glow-card {
    border: 1px solid rgba(0, 243, 255, 0.3);
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.1),
                0 0 80px rgba(188, 19, 254, 0.05),
                inset 0 0 20px rgba(0, 243, 255, 0.05);
    animation: neonCardPulse 4s ease-in-out infinite;
}

@keyframes neonCardPulse {
    0%, 100% { 
        box-shadow: 0 0 40px rgba(0, 243, 255, 0.1),
                    0 0 80px rgba(188, 19, 254, 0.05),
                    inset 0 0 20px rgba(0, 243, 255, 0.05);
    }
    50% { 
        box-shadow: 0 0 60px rgba(0, 243, 255, 0.2),
                    0 0 100px rgba(188, 19, 254, 0.1),
                    inset 0 0 30px rgba(0, 243, 255, 0.1);
    }
}

/* Logo Neon Container */
.neon-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.logo-neon-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 15px;
}

.logo-neon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(0, 243, 255, 0.6))
            drop-shadow(0 0 30px rgba(188, 19, 254, 0.4));
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 15px rgba(0, 243, 255, 0.6))
                drop-shadow(0 0 30px rgba(188, 19, 254, 0.4));
    }
    50% { 
        filter: drop-shadow(0 0 25px rgba(0, 243, 255, 0.9))
                drop-shadow(0 0 50px rgba(188, 19, 254, 0.7))
                drop-shadow(0 0 70px rgba(0, 243, 255, 0.5));
    }
}

.neon-glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.3) 0%, transparent 70%);
    animation: glowRotate 4s linear infinite;
    pointer-events: none;
}

@keyframes glowRotate {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-50%, -50%) rotate(180deg); }
}

.neon-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid rgba(0, 243, 255, 0.5);
    border-radius: 50%;
    animation: pulseRing 2s ease-out infinite;
    pointer-events: none;
}

@keyframes pulseRing {
    0% { 
        width: 100%; 
        height: 100%; 
        opacity: 1; 
    }
    100% { 
        width: 200%; 
        height: 200%; 
        opacity: 0; 
    }
}

.logo-text-neon {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    text-shadow: 0 0 30px rgba(0, 243, 255, 0.5);
    animation: textNeonPulse 3s ease-in-out infinite;
}

@keyframes textNeonPulse {
    0%, 100% { 
        filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.5));
    }
    50% { 
        filter: drop-shadow(0 0 20px rgba(0, 243, 255, 0.8));
    }
}

.logo-subtitle-neon {
    font-family: 'Rajdhani', sans-serif;
    font-size: 11px;
    color: var(--text-secondary);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-top: 5px;
}

.neon-title-register {
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.neon-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 32px;
    font-family: 'Rajdhani', sans-serif;
}

/* Inputs Neon */
.neon-input-field {
    background: rgba(5, 5, 15, 0.6);
    border: 1px solid rgba(0, 243, 255, 0.2);
    transition: all 0.3s ease;
}

.neon-input-field:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3),
                inset 0 0 10px rgba(0, 243, 255, 0.1);
    background: rgba(5, 5, 15, 0.9);
}

.neon-select {
    cursor: pointer;
}

.neon-button-glow {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
    animation: buttonNeonPulse 3s ease-in-out infinite;
}

@keyframes buttonNeonPulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
    }
    50% { 
        box-shadow: 0 0 40px rgba(0, 243, 255, 0.7),
                    0 0 60px rgba(188, 19, 254, 0.3);
    }
}

.neon-button-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.6),
                0 0 80px rgba(188, 19, 254, 0.4);
}

.neon-button-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: buttonShine 3s ease-in-out infinite;
}

@keyframes buttonShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Checkboxes Neon */
.neon-checkbox input {
    accent-color: var(--neon-cyan);
}

.neon-checkbox:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}