* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: #14181c; color: #e9e6df;
  font: 16px/1.5 system-ui, "Segoe UI", sans-serif;
  display: flex; align-items: center; justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
main { width: 100%; max-width: 360px; }
h1 { font-size: 1.3rem; margin: 0 0 14px; font-weight: 600; }
form { display: flex; flex-direction: column; gap: 12px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; color: #b7b2a6; }
input {
  font: inherit; color: #e9e6df; background: #1f252b; border: 1px solid #3a434c; border-radius: 8px;
  padding: 11px 12px; min-height: 44px;
}
input:focus { outline: 2px solid #d9a441; outline-offset: 1px; }
button {
  font: inherit; font-weight: 700; color: #1d1a14; background: #d9a441; border: 0; border-radius: 8px;
  padding: 12px; min-height: 44px; cursor: pointer; margin-top: 4px;
}
button:disabled { opacity: .6; cursor: default; }
.links { margin: 6px 0 0; font-size: .9rem; color: #7f7a70; }
a { color: #d9a441; }
#avis { margin: 0 0 16px; padding: 10px 12px; border-radius: 8px; background: #1f2b24; border: 1px solid #3c6b52; }
#avis.error { background: #2e1f1f; border-color: #8a4040; }
[hidden] { display: none !important; }
