/* Reset et bases */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body, html {
    height: 100%;
    width: 100%;
}

/* Background impressionnant */
body {
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
}



/* Section logo */
.logo-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,0.05);
    padding: 30px;
    text-align: center;
}

.logo-section .nav-logo {
    width: 100px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.logo-section .nav-logo:hover {
    transform: scale(1.1);
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

/* Formulaire */
.form-container {
    flex: 1;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: #333;
}

/* Input groups */
.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.input-group label {
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.input-group input[type="text"],
.input-group input[type="email"],
.input-group input[type="tel"],
.input-group input[type="password"] {
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102,126,234,0.3);
    outline: none;
}

/* Checkbox group */
.checkbox-group {
    display: flex;
    gap: 15px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    color: #333;
}

/* Bouton submit */
button[type="submit"] {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102,126,234,0.4);
}

/* Messages d'erreur / succès */
.error-message {
    color: #ff4d4d;
    text-align: center;
    margin-top: 15px;
    font-weight: 500;
}

.success-message {
    color: #4BB543;
    text-align: center;
    margin-top: 15px;
    font-weight: 500;
}

/* Lien login */
.link-login {
    text-align: center;
    margin-top: 20px;
}

.link-login a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.link-login a:hover {
    text-decoration: underline;
}

/* Étoile requise */
.required {
    color: #ff4d4d;
}
/* Container principal */
.container {
    display: flex;
    justify-content: center;
    align-items: stretch; /* étirer en hauteur */
    width: 90%;
    max-height: 90vh; /* limiter à 90% de la hauteur de la fenêtre */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    overflow: hidden;
}

/* Section formulaire scrollable */
.form-container {
    flex: 1;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow-y: auto; /* scroll vertical si nécessaire */
    max-height: 90vh;
}

/* Scrollbar personnalisée pour le formulaire */
.form-container::-webkit-scrollbar {
    width: 8px;
}

.form-container::-webkit-scrollbar-thumb {
    background-color: rgba(102,126,234,0.6);
    border-radius: 10px;
}

.form-container::-webkit-scrollbar-track {
    background-color: rgba(0,0,0,0.05);
}


/* Responsive */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
        height: auto;
        padding: 20px;
    }

    .logo-section {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        padding: 20px;
    }

    .form-container {
        width: 100%;
        border-radius: 15px;
        padding: 30px 20px;
    }
}
