body { 
    font-family: sans-serif; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    height: 100vh; 
    background: #f5f5f0; 
}

form { 
    background: white; 
    padding: 2rem; 
    border-radius: 10px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.2); 
    display: flex; 
    flex-direction: column; 
    width: 100%;              /* occupe toute la largeur dispo */
    max-width: 400px;         /* limite sur grand écran */
    margin: 1rem;             /* évite que ça colle aux bords sur GSM */
}

input, button { 
    padding: 0.75rem; 
    margin-bottom: 1rem; 
    font-size: 1rem; 
    width: 100%;              /* champs prennent toute la largeur sauf pour la ligne avec checkbox */
    box-sizing: border-box;   /* évite débordements */
}

button {
    background-color: #A05252;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 0.5rem;
}

button:hover {
    background-color: #C67A7A;
}

p.error { 
    color: red; 
    margin: 0; 
}

input:focus {
    border-color: #A05252;
    outline: none;
}