/* Variables */
:root {
    --primary-color: #4a90e2;
    --primary-hover: #357abd;
    --background-dark: #1a1a1a;
    --background-darker: #2d2d2d;
    --text-light: #ffffff;
    --text-gray: #8a94a7;
    --card-background: rgba(255, 255, 255, 0.98);
    --input-background: #f8f9fa;
    --input-border: #e1e1e1;
    --error-color: #c62828;
    --success-color: #28a745;
    --shadow-color: rgba(0, 0, 0, 0.2);
    --divider-color: rgba(0, 0, 0, 0.1);
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-darker) 100%);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar {
    background-color: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 15px var(--shadow-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.logo a {
    text-decoration: none;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
}

.sport { color: var(--text-light); }
.analytics { color: var(--primary-color); }
.threeD { color: var(--text-light); }

/* Container d'authentification */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    background: radial-gradient(circle at center, rgba(74, 144, 226, 0.1) 0%, transparent 70%),
                linear-gradient(135deg, var(--background-dark) 0%, var(--background-darker) 100%);
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(74, 144, 226, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(74, 144, 226, 0.05) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Boîte d'authentification */
.auth-box {
    background: var(--card-background);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1),
                0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 40px;
    width: 100%;
    max-width: 480px;
    backdrop-filter: blur(10px);
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12),
                0 8px 20px rgba(0, 0, 0, 0.08);
}

/* En-tête d'authentification */
.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-header h2 {
    color: #333;
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(45deg, #333, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.auth-subtitle {
    color: #666;
    font-size: 1.1em;
    margin-top: 10px;
    line-height: 1.6;
}

/* Messages d'erreur et de succès */
.error-message,
.success-message {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    text-align: center;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.error-message {
    background: #ffebee;
    color: var(--error-color);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid var(--error-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-message i {
    font-size: 1.2em;
}

/* Formulaire */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #444;
    font-weight: 500;
    font-size: 0.95em;
}

.form-group label i {
    color: var(--primary-color);
    font-size: 1.1em;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--input-border);
    border-radius: 12px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: var(--input-background);
    color: #333;
}

.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
    outline: none;
}

.form-group input::placeholder {
    color: #999;
    font-size: 0.95em;
}

/* Options du formulaire */
.form-options {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 25px;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Style pour le conteneur du mot de passe */
.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
    background: transparent;
}

.toggle-password:hover {
    color: var(--primary-color);
    background: rgba(74, 144, 226, 0.1);
}

/* Checkbox personnalisée */
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    gap: 10px;
    font-size: 0.95em;
    color: #555;
}

.checkbox-container input {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    accent-color: var(--primary-color);
}

/* Bouton de soumission */
.auth-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(45deg, var(--primary-color), #6aa8e7);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
    background: linear-gradient(45deg, #6aa8e7, var(--primary-color));
}

.auth-button:active {
    transform: translateY(0);
}

.auth-button i {
    font-size: 1.2em;
}

/* Diviseur */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 35px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    width: 100%;
    border-bottom: 1px solid var(--divider-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 2px solid var(--divider-color);
    margin: 0 15px;
}

.auth-divider span {
    padding: 10px 20px;
    font-size: 1.1em;
    font-weight: 600;
    color: #555;
    background: var(--card-background);
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Liens en bas du formulaire */
.auth-links {
    text-align: center;
    margin-top: 25px;
}

.auth-links p {
    margin-bottom: 15px;
    color: #555;
    font-size: 0.95em;
}

.register-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 6px;
    background: transparent;
}

.register-link:hover {
    color: var(--primary-hover);
    background: rgba(74, 144, 226, 0.1);
    text-decoration: none;
}

.home-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #666;
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 10px;
}

.home-link:hover {
    color: var(--primary-color);
    background: rgba(0, 0, 0, 0.03);
}

/* Animation de focus pour les champs */
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label {
    transform: translateY(-25px) scale(0.9);
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 480px) {
    .auth-box {
        padding: 25px;
        margin: 15px;
        border-radius: 20px;
    }
    
    .auth-header h2 {
        font-size: 1.8em;
    }
    
    .auth-subtitle {
        font-size: 1em;
    }
    
    .form-group input {
        padding: 12px 16px;
        font-size: 0.95em;
    }
    
    .auth-button {
        padding: 14px;
        font-size: 1em;
    }
    
    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .auth-links {
        margin-top: 20px;
    }
}

.debug-info {
    margin-top: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 5px;
    font-family: monospace;
    font-size: 12px;
    white-space: pre-wrap;
    word-wrap: break-word;
} 