/* Pages de connexion : la nuit au camp, un feu qui rougeoie en bas de l'écran. */
:root {
  --night: #0b1020; --night-2: #131a33; --ember: #ff8a3d; --flame: #ffc65c; --ink: #eef1ff; --muted: #a3abc9;
  --card: rgba(19, 24, 45, .72); --line: rgba(255, 255, 255, .09); --danger: #ff6b6b;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body.auth {
  font: 15px/1.5 ui-rounded, "SF Pro Rounded", -apple-system, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  color: var(--ink); background: radial-gradient(1200px 600px at 50% 120%, #3a1d12 0%, transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 70%, #1d1626 100%);
  display: grid; place-items: center; overflow: hidden; padding: 16px;
}
main { position: relative; z-index: 2; width: 100%; max-width: 400px; }
.auth-card {
  display: grid; gap: 14px; padding: 32px 28px 26px; border-radius: 24px; background: var(--card);
  border: 1px solid var(--line); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
  animation: rise .6s cubic-bezier(.2,.8,.2,1);
}
.auth-logo { width: 56px; height: 56px; justify-self: center; filter: drop-shadow(0 6px 18px rgba(255,166,77,.45)); }
h1 { margin: 0; text-align: center; font-size: 1.6rem; letter-spacing: -.02em;
  background: linear-gradient(90deg, var(--flame), var(--ember)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-sub { margin: -6px 0 6px; text-align: center; color: var(--muted); }
label { display: grid; gap: 6px; }
label > span { font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
input[type=text], input[type=password], input:not([type]) {
  font: inherit; color: var(--ink); background: rgba(0,0,0,.28); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; outline: none; transition: border-color .2s, box-shadow .2s;
}
input:focus { border-color: var(--ember); box-shadow: 0 0 0 4px rgba(255,138,61,.18); }
.auth-check { display: flex; align-items: center; gap: 10px; }
.auth-check span { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .9rem; }
.auth-check input { accent-color: var(--ember); width: 18px; height: 18px; }
button {
  font: inherit; font-weight: 700; color: #1b1006; border: 0; border-radius: 14px; padding: 13px; cursor: pointer;
  background: linear-gradient(135deg, var(--flame), var(--ember)); box-shadow: 0 10px 30px rgba(255,138,61,.35);
  transition: transform .15s, box-shadow .15s;
}
button:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(255,138,61,.45); }
button:active { transform: translateY(0); }
.auth-error { background: rgba(255,107,107,.12); border: 1px solid rgba(255,107,107,.35); color: #ffd1d1; padding: 10px 12px; border-radius: 12px; font-size: .92rem; }
.auth-error ul { margin: 0; padding-left: 18px; }
.auth-hint, .auth-foot { margin: 0; text-align: center; color: var(--muted); font-size: .85rem; }
.auth-foot a { color: var(--flame); }
.auth-sky i { position: fixed; width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: .7; animation: twinkle 3s infinite ease-in-out; }
.auth-sky i:nth-child(1) { top: 8%; left: 12%; } .auth-sky i:nth-child(2) { top: 18%; left: 72%; animation-delay: .6s; }
.auth-sky i:nth-child(3) { top: 30%; left: 28%; animation-delay: 1.2s; } .auth-sky i:nth-child(4) { top: 12%; left: 46%; animation-delay: 1.8s; }
.auth-sky i:nth-child(5) { top: 40%; left: 88%; animation-delay: .3s; } .auth-sky i:nth-child(6) { top: 6%; left: 90%; animation-delay: 2.1s; }
.auth-sky i:nth-child(7) { top: 24%; left: 6%; animation-delay: 1.5s; } .auth-sky i:nth-child(8) { top: 36%; left: 58%; animation-delay: .9s; }
.auth-fire { position: fixed; left: 50%; bottom: -160px; width: 520px; height: 320px; transform: translateX(-50%); z-index: 1;
  background: radial-gradient(closest-side, rgba(255,166,77,.55), rgba(255,94,58,.25) 45%, transparent 75%);
  filter: blur(20px); animation: flicker 2.4s infinite alternate ease-in-out; }
@keyframes twinkle { 50% { opacity: .15; } }
@keyframes flicker { from { opacity: .75; transform: translateX(-50%) scale(1); } to { opacity: 1; transform: translateX(-50%) scale(1.08); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }
