/* Auth Pages Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6C5CE7;
    --secondary: #00D9FF;
    --success: #00D97E;
    --danger: #FF4757;
    --dark: #0A0E27;
    --dark-light: #151932;
    --text: #E8E8F0;
    --text-muted: #8B8D9A;
}

html {
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    height: auto !important;
    min-height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark);
    color: var(--text);
    min-height: 100vh;
    overflow: visible !important;
    overflow-x: hidden !important;
    padding: 20px 0;
    margin: 0;
    position: relative;
    height: auto !important;
    width: 100%;
}

/* Particules d'arrière-plan */
.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(ellipse at bottom, #151932 0%, #0A0E27 100%);
    pointer-events: none;
}

.particles-bg::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(108, 92, 231, 0.8), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(0, 217, 255, 0.6), transparent);
    background-size: 200% 200%;
    animation: stars 20s linear infinite;
}

@keyframes stars {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-50px, -50px); }
}

/* Container principal */
.auth-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    min-height: auto;
    height: auto;
    overflow: visible;
    box-sizing: border-box;
}

/* Carte d'authentification */
.auth-card {
    background: rgba(21, 25, 50, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
}

.logo i {
    color: var(--primary);
    font-size: 36px;
}

.logo .pro {
    background: linear-gradient(135deg, #00D9FF 0%, #6C5CE7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--text);
}

.auth-header p {
    color: var(--text-muted);
    font-size: 16px;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
}

.form-group label i {
    color: var(--primary);
    margin-right: 5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 15px 20px;
    background: var(--dark);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text);
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.05);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 14px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox span {
    color: var(--text-muted);
}

.link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.link:hover {
    color: var(--secondary);
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #00D9FF 0%, #6C5CE7 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.4);
}

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

/* Alertes */
.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: rgba(0, 217, 126, 0.1);
    border: 1px solid rgba(0, 217, 126, 0.3);
    color: var(--success);
}

.alert-error {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: var(--danger);
}

/* Side panel */
.auth-side {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 35px 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.auth-side h2 {
    font-size: 32px;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #00D9FF 0%, #6C5CE7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    word-wrap: break-word;
}

.features-list {
    list-style: none;
    margin-bottom: 30px;
}

.features-list li {
    padding: 12px 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    word-wrap: break-word;
}

.features-list i {
    color: var(--success);
    font-size: 24px;
}

.stats-preview {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.stat {
    flex: 1;
    text-align: center;
    padding: 12px 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
    max-width: 50%;
}

.stat-value {
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(135deg, #00D9FF 0%, #6C5CE7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
    line-height: 1.1;
    overflow: hidden;
    word-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    display: block;
}

.stat-label {
    color: var(--text-muted);
    font-size: clamp(9px, 2vw, 11px);
    word-break: break-word;
    line-height: 1.3;
    overflow: hidden;
    max-width: 100%;
}

/* Demo accounts */
.demo-accounts {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
}

.demo-title {
    color: #FFD700;
    font-weight: 600;
    margin-bottom: 10px;
}

.demo-account {
    color: var(--text-muted);
    font-size: 14px;
    font-family: monospace;
}

/* Bonus banner */
.bonus-banner {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.2) 100%);
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.bonus-banner i {
    font-size: 36px;
    color: #FFD700;
}

.bonus-banner strong {
    display: block;
    color: #FFD700;
    font-size: 18px;
    margin-bottom: 5px;
}

.bonus-banner p {
    color: var(--text-muted);
    margin: 0;
}

/* Testimonial */
.testimonial {
    margin-top: 40px;
    padding: 25px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border-left: 4px solid var(--primary);
}

.testimonial p {
    font-style: italic;
    margin-bottom: 10px;
    font-size: 16px;
}

.testimonial strong {
    color: var(--text-muted);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1200px) {
    .auth-container {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .auth-side {
        display: none;
    }
}

@media (min-width: 1201px) and (max-width: 1400px) {
    .auth-container {
        grid-template-columns: 1fr 300px;
        gap: 20px;
    }
    
    .auth-side {
        padding: 30px 20px;
    }
    
    .stats-preview {
        gap: 8px;
    }
    
    .stat {
        padding: 10px 5px;
    }
    
    .stat-value {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 9px;
    }
}

@media (min-width: 1401px) {
    .stat-value {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .auth-card {
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .auth-header h1 {
        font-size: 24px;
    }

    .logo {
        font-size: 22px;
    }
}

