/* ==========================================
   VARIABLES ET CONFIGURATION DE BASE 
   ========================================== */
:root {
    --texte: #333333;
    --details: #3333338d;
    --gold: #d4af37;
    --primary: #2c3e50; 
    --bg-main: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e9ecef;
    --error-color: #e74c3c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Urbanist', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--texte);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
}

/* ==========================================
   CARTE D'AUTHENTIFICATION
   ========================================== */
.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 1.5rem;
}

.auth-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

/* Header de la carte */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.auth-header h2 span {
    color: var(--gold);
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
}

.auth-header p {
    color: var(--details);
    font-size: 0.9rem;
    margin-top: 0.4rem;
    line-height: 1.4;
}

/* Champs de saisie stylisés */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrapper i {
    position: absolute;
    left: 1rem;
    color: var(--details);
    font-size: 0.95rem;
}

.input-icon-wrapper input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
    background-color: var(--bg-main);
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.input-icon-wrapper input:focus {
    border-color: var(--primary);
    background-color: var(--bg-white);
}

/* Bouton de soumission */
.btn-auth {
    width: 100%;
    padding: 0.95rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-top: 2rem;
}

.btn-auth:hover {
    background-color: #1a252f;
}

.btn-auth:active {
    transform: scale(0.98);
}

/* Alerte d'erreur */
.auth-error {
    background-color: #fdeaea;
    color: var(--error-color);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}