/* auth.css - VERSION AMÉLIORÉE AVEC ŒIL MOT DE PASSE */

/* Style général */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #1E3A8A 0%, #8B1E3F 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

/* Carte centrale */
.auth-container {
    background: #fff;
    padding: 2rem 3rem;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
    text-align: center;
    animation: fadeIn 0.6s ease-in-out;
    border: 1px solid #F5F5F5;
}

/* Animation d'apparition */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo */
.brand-logo {
    max-height: 80px;
    margin-bottom: 20px;
    border-radius: 8px;
}

/* Titres */
.auth-container h1 {
    margin-bottom: 0.5rem;
    color: #0E0E0E;
    font-size: 1.8rem;
    font-weight: 700;
}

.text-muted {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Champs du formulaire - STYLES AMÉLIORÉS */
.auth-container input {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 2px solid #F5F5F5;
    border-radius: 10px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.auth-container input:focus {
    border-color: #C9A74D;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(201, 167, 77, 0.25);
}

/* CONTAINER PASSWORD AVEC ŒIL */
.password-container {
    position: relative;
    width: 100%;
    margin: 10px 0;
}

.password-container input {
    width: 100%;
    padding-right: 50px; /* Espace pour l'œil */
}

/* Bouton œil */
.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
    font-size: 1.2rem;
    z-index: 10;
}

.toggle-password:hover {
    color: #C9A74D;
}

.toggle-password:focus {
    outline: none;
}

/* Boutons */
.auth-container button[type="submit"] {
    width: 100%;
    padding: 15px 24px;
    margin-top: 1rem;
    background: linear-gradient(135deg, #C9A74D, #E7C988);
    color: #0E0E0E;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 167, 77, 0.25);
}

.auth-container button[type="submit"]:hover {
    background: linear-gradient(135deg, #E7C988, #C9A74D);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 167, 77, 0.4);
}

/* Messages d'erreur et de succès */
.error {
    color: #d9534f;
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.success {
    color: #155724;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* Liens */
.auth-links {
    margin-top: 1.5rem;
}

.auth-links a {
    color: #C9A74D;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: #E7C988;
    text-decoration: underline;
}

.auth-links p {
    margin: 8px 0;
}

/* Boîte d'information */
.info-box {
    background: #F5F5F5;
    border-radius: 8px;
    padding: 15px;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: #666;
    text-align: left;
}

.info-box strong {
    color: #333;
}

/* Centrage du texte */
.text-center {
    text-align: center;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-container {
        padding: 1.5rem 2rem;
        margin: 10px;
    }
    
    .brand-logo {
        max-height: 60px;
    }
    
    .auth-container h1 {
        font-size: 1.5rem;
    }
    
    .toggle-password {
        right: 10px;
        font-size: 1rem;
    }
}