/* Réinitialisation globale */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Futura PT', system-ui, 'Helvetica Neue', sans-serif;
    background-color: #f0f2f5;
    color: #111111;
    line-height: 1.6;
}

.signup-container {
    display: flex;
    height: 100vh;
    background-color: #fff;
}

/* Section gauche - Informations & illustration */
.left-section {
    width: 50%;
    background: url('https://www.ecomelio.fr/images/provence.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 40px;
    position: relative;
}
.left-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}
.left-section .content {
    text-align: center;
    max-width: 400px;
    position: relative;
    z-index: 1;
}
.left-section h1 {
    font-size: clamp(2.25rem, 1.74rem + 2.63vw, 4rem);
    font-weight: 400;
    letter-spacing: 0.01em;
    font-family: 'Tiempos Headline', Georgia, serif;
    line-height: 1.16;
    margin-bottom: 20px;
}
.left-section p {
    font-size: clamp(1.125rem, 1.02rem + 0.56vw, 1.5rem);
    font-weight: 400;
    letter-spacing: -0.005em;
    line-height: 1.24;
}

/* Section droite */
.right-section {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}
.signup-box {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    text-align: center;
    transition: all 0.3s ease;
}
.signup-box:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.signup-box h2 {
    font-size: clamp(0.875rem, 0.38vw + 0.8rem, 1.125rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1.24;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* Inputs */
.signup-box input[type="text"],
.signup-box input[type="email"],
.signup-box input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 1em;
    transition: border-color 0.3s ease;
    background-color: #fff;
}
.signup-box input:focus {
    border-color: #0073e6;
    outline: none;
}

/* --- remplace l’ancien style du bouton œil par ceci --- */
.password-field {
    display: flex;
    align-items: center;
    gap: 6px;            /* léger espace pour ne pas coller l’icône à l’input */
    margin: 10px 0;
}
.password-field input {
    margin: 0;
}

/* Bouton œil sans cadre : pas de bordure, pas de fond — juste l’icône */
.toggle-password-btn {
    background: transparent;
    border: none;
    padding: 0;            /* pas de padding -> pas de hauteur inutile */
    height: auto;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

/* Taille de l’icône (facultatif) */
.toggle-password-btn i {
    font-size: 1.1rem;
}

/* Feedback discret au survol / clic, sans cadre */
.toggle-password-btn:hover { opacity: 0.85; }
.toggle-password-btn:active { opacity: 0.7; transform: none; }

/* Accessibilité clavier : pas de cadre par défaut, mais un outline visible au tab */
.toggle-password-btn:focus { outline: none; }
.toggle-password-btn:focus-visible {
    outline: 2px solid #0073e6;
    outline-offset: 2px;
}

/* Message d'erreur / succès */
.form-error {
    color: #d32f2f;
    font-size: 0.95rem;
    margin-top: 8px;
}
.success-msg {
    color: green;
}

/* Bouton principal */
.signup-btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: #111111;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    text-align: center;
    margin-top: 20px;
    border: none;
    transition: background-color 0.3s, transform 0.3s;
    cursor: pointer;
    width: 100%;
}
.signup-btn:hover {
    background-color: #333333;
}

/* Boutons sociaux */
.social-signup p {
    margin-top: 30px;
    font-size: 0.9em;
    color: #666;
}
.social-icons { margin-top: 10px; }
.social-icons a { margin: 0 10px; }
.social-icons img {
    width: 35px; height: 35px;
    transition: transform 0.3s ease;
}
.social-icons a:hover img { transform: scale(1.1); }

/* Conteneur des termes */
.terms {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    color: #666;
    margin: 20px 0;
    text-align: center;
    gap: 10px;
}
.terms input[type="checkbox"] { margin: 0; padding: 0; width: auto; }
.terms a { color: #0073e6; text-decoration: none; }

.signup-box p a {
    color: #0073e6;
    text-decoration: none;
    font-weight: 500;
}
.signup-box p a:hover { text-decoration: none; }

.forgot-password-link {
    margin: 0.5em 0;
    text-align: center;
}
.forgot-password-link a {
    color: #007bff;
    text-decoration: none;
}

/* Encadré maintenance */
.maintenance-box {
    margin-top: 1.5rem;
    margin-bottom: 20px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background-color: #fee2e2;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}
.maintenance-box i { color: #7f1d1d; margin-top: 0.25rem; }
.maintenance-box h4 { margin-bottom: 0.25rem; font-weight: 500; color: #7f1d1d; }
.maintenance-box p { font-size: 0.875rem; color: #991b1b; }

/* Responsif */
@media (max-width: 768px) {
    .signup-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100vh;
    }
    .left-section { display: none; }
    .right-section {
        width: 100%;
        max-width: 400px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .signup-box {
        max-width: 90%;
        margin: 0 auto;
        padding: 20px;
    }
}
