/**
 * NOX AI VIP AUTHENTICATION OVERLAY
 */

/* Overlay principal */
.vip-auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, 
        rgba(10, 10, 10, 0.95) 0%, 
        rgba(26, 26, 46, 0.95) 50%, 
        rgba(22, 33, 62, 0.95) 100%);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.5s ease-out;
}

.vip-auth-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(138, 43, 226, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 20, 147, 0.1) 0%, transparent 50%);
    pointer-events: none;
    animation: pulse 4s ease-in-out infinite;
}

/* Modal d'authentification */
.vip-auth-modal {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    border-radius: 25px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    border: 2px solid rgba(255, 215, 0, 0.4);
    backdrop-filter: blur(25px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s ease-out;
}

.vip-auth-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 215, 0, 0.1), 
        transparent);
    transition: left 0.8s ease;
    animation: shimmer 3s ease-in-out infinite;
}

/* Header */
.vip-auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.vip-auth-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ff1493);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShimmer 3s ease-in-out infinite;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.vip-auth-header p {
    color: #a0a0a0;
    font-size: 1.1rem;
    font-weight: 400;
}

/* Formulaire */
.vip-auth-form {
    margin-bottom: 25px;
}

#authCodeInput {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    backdrop-filter: blur(10px);
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#authCodeInput::placeholder {
    color: #666;
    text-transform: none;
    letter-spacing: normal;
    font-size: 1rem;
}

#authCodeInput:focus {
    outline: none;
    border-color: rgba(255, 215, 0, 0.7);
    box-shadow: 
        0 0 25px rgba(255, 215, 0, 0.4),
        inset 0 0 20px rgba(255, 215, 0, 0.1);
    transform: scale(1.02);
}

.vip-auth-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    border: none;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.vip-auth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.5);
    background: linear-gradient(45deg, #ffed4e, #ffd700);
}

.vip-auth-btn:active {
    transform: translateY(-1px);
}

.vip-auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Messages */
.vip-auth-message {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    animation: fadeIn 0.3s ease-out;
}

.vip-auth-message.success {
    background: linear-gradient(45deg, 
        rgba(0, 255, 136, 0.2), 
        rgba(0, 255, 136, 0.1));
    border: 1px solid rgba(0, 255, 136, 0.4);
    color: #00ff88;
}

.vip-auth-message.error {
    background: linear-gradient(45deg, 
        rgba(255, 71, 87, 0.2), 
        rgba(255, 71, 87, 0.1));
    border: 1px solid rgba(255, 71, 87, 0.4);
    color: #ff4757;
}

/* Footer */
.vip-auth-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.vip-auth-footer p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes goldShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Responsive */
@media (max-width: 768px) {
    .vip-auth-modal {
        padding: 30px 25px;
        margin: 20px;
    }
    
    .vip-auth-header h2 {
        font-size: 1.8rem;
    }
    
    #authCodeInput {
        font-size: 1.1rem;
        padding: 15px;
    }
    
    .vip-auth-btn {
        font-size: 1.1rem;
        padding: 15px;
    }
}

/* États cachés */
.vip-auth-overlay.hidden {
    display: none !important;
}

/* Effet de particules (optionnel) */
.vip-auth-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 215, 0, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 20, 147, 0.3), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(138, 43, 226, 0.3), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 215, 0, 0.3), transparent);
    background-size: 200px 200px;
    animation: sparkle 4s linear infinite;
    pointer-events: none;
}

@keyframes sparkle {
    0% { transform: translateY(0); }
    100% { transform: translateY(-200px); }
}
