/* Sign-in, sign-out and error pages, in the colours of the site. */
:root {
  color-scheme: light;
  --card: #f8f0d9;
  --ink: #27301a;
  --muted: #57593f;
  --line: #dccb9e;
  --olive: #56702a;
  --gold-text: #76561a;
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 32px 16px;
  color: var(--ink); font: 15px/1.5 var(--sans);
  background:
    radial-gradient(circle at 1px 1px, rgba(232, 207, 142, .09) 1px, transparent 0) 0 0 / 14px 14px,
    radial-gradient(900px 500px at 50% -10%, rgba(214, 178, 94, .22), transparent 60%),
    linear-gradient(180deg, #485a29 0%, #3e4e26 45%, #344121 100%);
}
.porte { width: 100%; max-width: 380px; display: grid; gap: 22px; }
.marque { display: grid; justify-items: center; gap: 8px; color: #f0d998; }
.marque img { width: 128px; height: auto; filter: drop-shadow(0 2px 6px rgba(30, 40, 10, .4)); }
.marque small { font-weight: 600; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; }

.carte {
  display: grid; gap: 8px; padding: 26px 24px 24px; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px -20px rgba(10, 15, 5, .7);
}
.carte h1 { margin: 0; font: 600 30px/1.1 var(--serif); }
.sous { margin: 0 0 8px; color: var(--muted); font-size: 13.5px; }
.sous b { color: var(--ink); overflow-wrap: anywhere; }
label { margin-top: 6px; font-weight: 600; font-size: 13px; }
input {
  width: 100%; padding: 10px 12px; font: inherit; color: inherit;
  background: #fffaf0; border: 1px solid #cdb98a; border-radius: 10px;
}
button {
  margin-top: 14px; padding: 11px 14px; font: 600 15px var(--sans); color: #fffbea;
  background: var(--olive); border: 0; border-radius: 10px; cursor: pointer;
}
button:hover { background: #4a6224; }
:focus-visible { outline: 2px solid #8a6420; outline-offset: 2px; }
.retour { justify-self: center; margin-top: 6px; color: var(--gold-text); font-size: 14px; }
.erreur, .info { margin: 0; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; }
.erreur { background: #f6dcd2; color: #7a2412; }
.info { background: #e3ead0; color: #34461a; }
/* Code received by SMS */
.sous b.tel { white-space: nowrap; }
input.code { font-size: 22px; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
button.second { margin-top: 4px; color: var(--olive); background: transparent; border: 1px solid #b5a06a; }
button.second:hover { background: #efe4c4; }
.aide { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
/* Checkbox with its explanation (remember or forget this device) */
label.coche { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; font-weight: 600; font-size: 14px; cursor: pointer; }
label.coche input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; padding: 0; accent-color: var(--olive); }
label.coche small { display: block; margin-top: 2px; font-weight: 400; font-size: 12.5px; color: var(--muted); }

/* The sign-in card rises softly into place. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.marque { animation: fade .7s ease-out both; }
.carte { animation: rise .55s .1s cubic-bezier(.2, .7, .2, 1) both; }
button { transition: filter .15s, transform .1s; }
button:hover { filter: brightness(1.08); }
button:active { transform: translateY(1px); }
@media (prefers-reduced-motion: reduce) {
  .marque, .carte { animation: none; }
  button { transition: none; }
}
