/* --- RESET & BASE --- */
* {
    box-sizing: border-box;
}

:root {
    --primary-color: #000;
    --accent-beige: #B49282;
    --light-beige: #F5DBC4;
    --bg-gray: #f8f9fa;
    --text-dark: #333;
    --text-muted: #777;
    --error-color: #d9534f;
    --success-color: #28a745;
    --input-border: #e0e0e0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-gray);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
}

/* --- LAYOUT --- */
.auth-page-container {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: #fff;
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid #eee;
    text-align: center; /* Centre le texte par défaut */
}

/* --- HEADER --- */
.auth-header {
    margin-bottom: 30px;
}

.icon-circle {
    width: 60px;
    height: 60px;
    background-color: #fdf6f2; /* Beige très très clair */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    color: var(--accent-beige);
    font-size: 1.5rem;
}

.auth-header h1 {
    font-size: 1.8rem;
    margin: 0 0 10px 0;
    color: var(--text-dark);
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* --- FORMULAIRE --- */
.auth-form {
    text-align: left; /* Remet les champs à gauche */
}

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

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

.input-icon-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid var(--input-border);
    border-radius: 50px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #fff;
}

.form-group input:focus {
    border-color: var(--accent-beige);
    outline: none;
    box-shadow: 0 0 0 3px rgba(180, 146, 130, 0.1);
}

/* Bouton */
.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #333;
    transform: translateY(-2px);
}

/* --- FOOTER --- */
.auth-footer {
    margin-top: 30px;
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

/* --- ALERTS --- */
.flash-messages { margin-bottom: 20px; text-align: left; }

.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.alert.error { background: #fdecea; color: var(--error-color); border: 1px solid #f5c6cb; }
.alert.success { background: #d4edda; color: var(--success-color); border: 1px solid #c3e6cb; }

/* --- RESPONSIVE --- */
@media (max-width: 480px) {
    .auth-page-container {
        padding: 10px;
        padding-top: 30px;
        align-items: flex-start;
    }
    
    .auth-card {
        padding: 25px 20px;
        box-shadow: none;
        border: none;
        background: transparent;
    }

    .auth-header h1 { font-size: 1.6rem; }
}