    /* === Styles communs pour login, reset et signup === */
    :root {
        --primary: #bd8739;
        --primary-hover: #a97330;
        --text: #1e293b;
        --text-light: #64748b;
        --border: #e2e8f0;
        --bg: #f8fafc;
        --success: #059669;
        --radius: 12px;
        --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    body {
        font-family: 'Segoe UI', 'Arial', system-ui, sans-serif;
        background-color: var(--bg);
        color: var(--text);
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        padding: 1rem;
    }

    /* Containers (login / reset / signup) */
    .login-container,
    .reset-container,
    .signup-container {
        background: white;
        padding: 2.5rem;
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        width: 100%;
        max-width: 480px;
        text-align: center;
    }

    /* Titres & textes */
    h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    p {
        color: var(--text-light);
        margin-bottom: 2rem;
        line-height: 1.5;
    }

    /* Formulaire */
    .input-group,
    .form-group {
        margin-bottom: 1.5rem;
        text-align: left;
    }

    label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
        font-size: 0.9rem;
        color: #334155;
    }

    input {
        width: 100%;
        padding: 0.875rem;
        border: 1px solid var(--border);
        border-radius: 8px;
        font-size: 1rem;
        transition: all 0.2s;
    }

    input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(189, 134, 58, 0.2);
    }

    /* Boutons */
    .btn {
        background-color: var(--primary);
        color: white;
        border: none;
        padding: 0.875rem;
        width: 100%;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: background-color 0.2s;
        margin-top: 0.5rem;
    }

    .btn:hover {
        background-color: var(--primary-hover);
    }

    /* Liens */
    .links,
    .login-link,
    .back-link {
        font-size: 0.9rem;
        margin-top: 1.5rem;
    }

    .links a,
    .login-link a,
    .back-link {
        color: var(--primary);
        text-decoration: none;
    }

    .links a:hover,
    .login-link a:hover,
    .back-link:hover {
        text-decoration: underline;
    }

    /* Messages */
    .success-message {
        display: none;
        color: var(--success);
        background-color: #ecfdf5;
        padding: 1rem;
        border-radius: 8px;
        margin-bottom: 1.5rem;
        text-align: left;
    }

    /* Diviseur (signup) */
    .divider {
        display: flex;
        align-items: center;
        margin: 1.5rem 0;
        color: var(--text-light);
        font-size: 0.9rem;
    }
    .divider::before,
    .divider::after {
        content: "";
        flex: 1;
        border-bottom: 1px solid var(--border);
    }
    .divider::before { margin-right: 1rem; }
    .divider::after { margin-left: 1rem; }

    /* Social login */
    .social-login {
        display: flex;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    /* Password toggle */
    .password-container {
        position: relative;
    }
    .toggle-password {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: var(--text-light);
        cursor: pointer;
    }
        .terms {
            font-size: 0.8rem;
            color: var(--text-light);
            text-align: center;
            margin-top: 1.5rem;
            line-height: 1.5;
        }
        
        .terms a {
            color: var(--primary);
            text-decoration: none;
        }
        
        .terms a:hover {
            text-decoration: underline;
        }
    /* Responsive */
    @media (max-width: 480px) {
        .login-container,
        .reset-container,
        .signup-container {
            padding: 1.5rem;
            margin: 1rem;
        }
    }