/* Général */
body {
    font-family: "Poppins", sans-serif;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); /* Fond identique à index.php */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    text-align: center;
    color: #000;
}

/* Conteneur principal */
.container {
    max-width: 500px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.8); /* Conteneur de formulaire légèrement transparent */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Titre */
h1 {
    text-align: center;
    color: #333;
}

/* Style pour les messages d'erreur et de succès */
.error-message {
    color: red;
    font-size: 14px;
    margin-bottom: 10px;
}

.success-message {
    color: green;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Formulaire */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Groupes de saisie */
.input-group {
    display: flex;
    flex-direction: column;
}

/* Labels des champs */
label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

/* Champs de saisie */
input[type="text"],
input[type="password"] {
    width: 80%;
    padding: 12px;
    margin: 10px auto;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 1rem;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #0077cc;
    outline: none;
}

/* Boutons */
button {
    background: #0099ff;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #0077cc;
}

/* Lien inscription */
.signup-link {
    text-align: center;
    font-size: 14px;
}

.signup-link a {
    color: #4CAF50;
    text-decoration: none;
}

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