form {
  max-width: 480px;
}

form > div > div {
  margin-bottom: 1rem;
}

form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

form input:not([type=checkbox]):not([type=radio]),
form select,
form textarea {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
}

/* Focus state */
form input:focus,
form select:focus,
form textarea:focus {
  outline: 0;
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Réserve l'espace pour éviter les sauts visuels */
form ul.errorlist:empty::before {
  content: "\200B"; /* zéro-width space pour éviter le collapse */
  display: block;
}

/* Centrer tout le bloc h1 + p + form dans la colonne */
.col-xl-10.offset-xl-1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 2rem 1rem;
  box-sizing: border-box;
  text-align: center;
}

/* Repasser le form en largeur raisonnable */
.col-xl-10.offset-xl-1 form {
  max-width: 480px;
  width: 100%;
  text-align: left;
}
