/* form.css — thème sombre, mobile-first, centré, compatible Symfony forms */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: #121212;
    color: #eaeaea;
    font-family: Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Conteneur du formulaire */
.form-wrapper {
    width: 100%;
    padding: 1rem;
    max-width: 400px;
    box-sizing: border-box;
}

/* Bloc du formulaire */
form {
    background-color: #1e1e1e;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Titres */
h1 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #eaeaea;
}

/* Labels et inputs Symfony */




/* Exceptions (checkbox inline) */
form div.checkbox {
    display: flex;
    align-items: center;
}

form div.checkbox input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

/* Focus */
form input:focus,
form textarea:focus,
form select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px #3498db;
}

/* Bouton principal */
form button[type="submit"],
form .btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 1rem;
}

form button[type="submit"]:hover,
form .btn:hover {
    background-color: #2980b9;
}

/* Erreurs Symfony */
.form-error-message,
form .form-error-message {
    color: #f44336;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

/* Flash / alerte */
.alert {
    background-color: #8e2b2b;
    color: #fff;
    border: 1px solid #aa3d3d;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    text-align: center;
}

/* Message d’info (login) */
.info {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #aaa;
    text-align: center;
}

.info a {
    color: #3498db;
    text-decoration: none;
}

.info a:hover {
    text-decoration: underline;
}

.form-secondary-action {
    text-align: right;
    margin-top: 0.5rem;
}

.form-secondary-action a {
    font-size: 0.85rem;
    color: #888;
    text-decoration: none;
}

.form-secondary-action a:hover {
    text-decoration: underline;
    color: #ccc;
}
