/* ============================================
   NOX PANEL - Style WoW Lumineux
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Montserrat:wght@400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --frost-blue: #00d4ff;
    --ice-blue: #4dd0e1;
    --gold: #ffd700;
    --light-gold: #ffed4e;
    --dark-bg: #0a0a14;
    --darker-bg: #050508;
    --silver: #c0c0c0;
    --border-color: #2a4a6a;
    --glow-blue: rgba(0, 212, 255, 0.5);
    --glow-gold: rgba(255, 215, 0, 0.5);
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--darker-bg) url('https://images.unsplash.com/photo-1579546929518-9e396f3cc809?w=1920') center/cover fixed;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 100, 200, 0.1), rgba(0, 0, 0, 0.9));
    z-index: -1;
}

/* ============================================
   EFFET NEIGE ANIMÉE
   ============================================ */

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

.snow-container::before,
.snow-container::after {
    content: '';
    position: absolute;
    top: -100%;
    width: 100%;
    height: 200%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, white, transparent),
        radial-gradient(2px 2px at 60px 70px, white, transparent),
        radial-gradient(1px 1px at 50px 50px, white, transparent),
        radial-gradient(1px 1px at 130px 80px, white, transparent),
        radial-gradient(2px 2px at 90px 40px, white, transparent);
    background-size: 200px 200px;
    animation: snowfall 20s linear infinite;
}

.snow-container::after {
    animation-duration: 30s;
    background-size: 250px 250px;
    opacity: 0.5;
}

@keyframes snowfall {
    0% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

/* ============================================
   LOGO & HEADER
   ============================================ */

.login-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo-text {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--frost-blue), var(--gold), var(--light-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px var(--glow-blue);
    animation: titleGlow 3s ease-in-out infinite;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

@keyframes titleGlow {
    0%, 100% { 
        filter: brightness(1) drop-shadow(0 0 20px var(--glow-blue));
    }
    50% { 
        filter: brightness(1.3) drop-shadow(0 0 40px var(--glow-gold));
    }
}

.tagline {
    font-size: 1rem;
    color: var(--ice-blue);
    text-shadow: 0 0 10px var(--glow-blue);
    letter-spacing: 2px;
}

/* ============================================
   FORMULAIRES
   ============================================ */

.forms-wrapper {
    position: relative;
}

.form-box {
    background: linear-gradient(135deg, rgba(10, 20, 40, 0.95), rgba(5, 10, 20, 0.95));
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 
        0 0 40px rgba(0, 100, 200, 0.3),
        inset 0 0 60px rgba(0, 150, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.form-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    animation: formGlow 8s linear infinite;
}

@keyframes formGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-box h2 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--gold);
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 20px var(--glow-gold);
    position: relative;
    z-index: 1;
}

.form-box h2 .icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ============================================
   INPUTS
   ============================================ */

.input-group {
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--ice-blue);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group input {
    width: 100%;
    padding: 15px;
    background: rgba(0, 20, 40, 0.8);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--frost-blue);
    box-shadow: 0 0 20px var(--glow-blue);
    background: rgba(0, 30, 60, 0.9);
}

.input-group small {
    display: block;
    margin-top: 5px;
    color: var(--silver);
    font-size: 0.8rem;
}

/* ============================================
   BOUTONS
   ============================================ */

.btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #1a4d7a, #0d2a4a);
    border: 2px solid var(--frost-blue);
    color: #fff;
    box-shadow: 0 0 20px var(--glow-blue);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    border-radius: 50%;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px var(--glow-blue), 0 10px 30px rgba(0, 100, 200, 0.5);
    border-color: var(--gold);
}

.btn span {
    position: relative;
    z-index: 1;
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.alert-error {
    background: rgba(200, 0, 0, 0.2);
    border: 2px solid #ff4444;
    color: #ff6666;
}

.alert-success {
    background: rgba(0, 200, 0, 0.2);
    border: 2px solid #44ff44;
    color: #66ff66;
}

/* ============================================
   SWITCH FORMULAIRES
   ============================================ */

.form-switch {
    text-align: center;
    margin-top: 20px;
    color: var(--silver);
    position: relative;
    z-index: 1;
}

.form-switch a {
    color: var(--frost-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-switch a:hover {
    color: var(--gold);
    text-shadow: 0 0 10px var(--glow-gold);
}

/* ============================================
   STATUT SERVEUR
   ============================================ */

.server-status {
    margin-top: 30px;
    background: rgba(10, 20, 40, 0.8);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    justify-content: space-around;
    box-shadow: 0 0 20px rgba(0, 100, 200, 0.2);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ice-blue);
    font-size: 0.9rem;
}

.pulse {
    width: 12px;
    height: 12px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px #00ff88;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1); 
    }
    50% { 
        opacity: 0.5; 
        transform: scale(1.2); 
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 600px) {
    .logo-text {
        font-size: 2.5rem;
    }
    
    .form-box {
        padding: 25px;
    }
    
    .server-status {
        flex-direction: column;
        gap: 15px;
    }
}
