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

:root {
    --primary-color: #000;
    --accent-beige: #B49282;
    --bg-gray: #f8f9fa;
    --text-dark: #333;
    --text-muted: #777;
    --error-color: #d9534f;
    --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;
}

.auth-page-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    background: #fff;
    width: 100%;
    max-width: 500px; /* Un peu plus large que connexion car plus de champs */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid #eee;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}
.auth-header h1 {
    font-size: 2rem;
    margin: 0 0 10px 0;
}
.auth-header p {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0;
}

/* --- FORMULAIRE --- */
.form-section {
    margin-bottom: 25px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 15px;
}
.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    font-size: 1rem;
    color: var(--accent-beige);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

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

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

/* Row Group (Prénom / Nom côte à côte) */
.row-group {
    display: flex;
    gap: 15px;
}
.half {
    width: 50%;
}

/* Password Toggle */
.input-icon-wrapper {
    position: relative;
}
.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    cursor: pointer;
    padding: 5px;
}

/* Messages d'erreur champs */
.error-msg {
    color: var(--error-color);
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}
.info-msg {
    color: #999;
    font-size: 0.75rem;
    margin-top: 5px;
    display: block;
}

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

/* Separator & Social */
.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #aaa;
    font-size: 0.9rem;
}
.separator::before, .separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eee;
}
.separator span { padding: 0 15px; }

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 50px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.3s;
}
.btn-google:hover { background-color: #fcfcfc; border-color: #ccc; }
.btn-google img { width: 20px; height: 20px; }

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.95rem;
}
.auth-footer a {
    color: var(--accent-beige);
    font-weight: 600;
    text-decoration: none;
}
.auth-footer a:hover { text-decoration: underline; }

/* Alert Global */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}
.alert.error { background: #fdecea; color: var(--error-color); border: 1px solid #f5c6cb; }

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 25px 20px;
        box-shadow: none;
        border: none;
        background: transparent;
    }
    .row-group { flex-direction: column; gap: 0; }
    .half { width: 100%; }
}