/* =====================================================
   LOGIN-STYLES.CSS - THÈME NOIR UNIFIÉ v4.9
   Pages: login.html, signup.html, recovery.html
   ===================================================== */

/* CSS Variables pour thème noir */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #0f0f0f;
    --bg-card: #151515;
    --bg-input: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --border-color: #333333;
    --accent-primary: #ffd700;
    --accent-secondary: #00d4ff;
    --success: #4CAF50;
    --error: #f44336;
    --warning: #FF9800;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    color: var(--text-primary);
}

.login-container {
    display: flex;
    min-height: 100vh;
}

/* Section gauche */
.login-left {
    flex: 1;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-card) 100%);
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.logo-section {
    position: relative;
    z-index: 1;
    margin-bottom: 4rem;
}

.logo-section h1 {
    font-size: 4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
}

.logo-section p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.benefits-list {
    position: relative;
    z-index: 1;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(10px);
    border-color: rgba(255, 255, 255, 0.3);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-right: 1.5rem;
    min-width: 60px;
}

.benefit-text h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.benefit-text p {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Section droite */
.login-right {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-secondary);
    position: relative;
}

.login-form-container {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.login-header {
    text-align: center;
    margin-bottom: 3rem;
}

.walle-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.logo-icon {
    font-size: 2rem;
    margin-right: 0.5rem;
    color: var(--accent-primary);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 215, 0, 0.05);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

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

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--accent-primary);
}

/* Style pour le checkbox "Se souvenir de moi" */
.form-group.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.form-group.remember-me input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
    accent-color: var(--accent-primary);
}

.form-group.remember-me label {
    margin-bottom: 0;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(45deg, var(--accent-primary), #ffc107);
    border: none;
    border-radius: 8px;
    color: #000000;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    background: var(--bg-secondary);
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-login {
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.social-btn {
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sur mobile, retour en colonne unique pour meilleure lisibilité */
@media (max-width: 480px) {
    .social-login {
        grid-template-columns: 1fr;
    }
    
    .social-btn {
        font-size: 0.9rem;
    }
}

.social-btn:hover {
    background: var(--bg-card);
    transform: translateY(-1px);
    border-color: var(--accent-primary);
}

.social-icon {
    margin-right: 0.8rem;
    font-size: 1.1rem;
}

.google-btn:hover {
    border-color: #4285f4;
    box-shadow: 0 0 10px rgba(66, 133, 244, 0.2);
}

.apple-btn:hover {
    border-color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.telegram-btn:hover {
    border-color: #0088cc;
    box-shadow: 0 0 10px rgba(0, 136, 204, 0.2);
}

.facebook-btn:hover {
    border-color: #1877f2;
    box-shadow: 0 0 10px rgba(24, 119, 242, 0.2);
}

.instagram-btn:hover {
    border-color: #e4405f;
    box-shadow: 0 0 10px rgba(228, 64, 95, 0.2);
}

.x-btn:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.login-footer {
    text-align: center;
}

.forgot-password {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--accent-secondary);
}

.signup-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

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

.security-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.security-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.security-icon {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--accent-primary);
}

/* =====================================================
   BOUTON RETOUR - STYLES POUR TOUTES LES PAGES AUTH
   ===================================================== */
.back-button-container {
    position: relative;
    z-index: 100;
    padding: 15px 0;
    margin-bottom: 10px;
}

.btn-back {
    display: inline-block;
    padding: 12px 20px;
    color: var(--accent-primary) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn-back:hover,
.btn-back:focus {
    background: var(--bg-input);
    border-color: var(--accent-primary);
    transform: translateX(-5px);
}

.btn-back:active {
    transform: translateX(-3px) scale(0.98);
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }
    
    .back-button-container {
        padding: 10px 0;
        text-align: center;
    }
    
    .btn-back {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .login-left {
        padding: 2rem 1.5rem;
        min-height: auto;
    }
    
    .logo-section h1 {
        font-size: 2.5rem;
    }
    
    .benefit-item {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .benefit-icon {
        font-size: 2rem;
        margin-right: 1rem;
        min-width: 50px;
    }
    
    .login-right {
        padding: 1.5rem;
    }
    
    .security-info {
        flex-direction: column;
        gap: 1rem;
    }
}