:root {
  --bg: #1a1c19;
  --ink: #f2efe8;
  --line: #33362f;
  --accent: #5c7a52;
  --muted: #9a9f94;
}
* { box-sizing: border-box; }
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, sans-serif;
}
.auth-box { width: min(320px, 92vw); }
.auth-form { display: flex; flex-direction: column; gap: 8px; }
.auth-form input[type="password"],
.auth-form input[type="email"],
.auth-form input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 10px;
  background: #181818;
  color: var(--ink);
}
.auth-form button {
  border: none;
  background: var(--accent);
  color: #fff;
  border-radius: 7px;
  padding: 8px 12px;
  white-space: nowrap;
  cursor: pointer;
}
.auth-form button:hover { filter: brightness(1.05); }
.auth-err {
  margin: 10px 0 0;
  color: #c08080;
  font-size: 0.85rem;
}
.auth-title {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--muted);
  text-align: center;
}

.auth-ok { margin: 10px 0 0; color: #9cba90; font-size: 0.85rem; text-align: center; }
.auth-back { margin: 14px 0 0; text-align: center; font-size: 0.85rem; }
.auth-back a { color: var(--muted); }

/* Page « rejoindre une liste partagée » */
.join-text { margin: 0 0 10px; line-height: 1.45; }
.join-hint { margin: 0 0 14px; color: var(--muted); font-size: 0.85rem; }
.join-label { display: block; margin: 4px 0 -2px; font-weight: 600; font-size: 0.95rem; text-align: left; }
.join-step { margin: 18px 0 8px; font-weight: 600; }
.join-check { display: flex; gap: 8px; align-items: flex-start; font-size: 0.8rem; line-height: 1.35; color: var(--muted); }
.join-check input { margin-top: 2px; }
.join-check a { color: inherit; }
.auth-form button.join-secondary { background: transparent; border: 1px solid var(--muted); color: inherit; }

/* Page « rejoindre » aux couleurs de l'app (beige, vert sauge, terracotta) : on ne croit pas changer de site (audit du 03/11/2026). */
.join-body {
  --bg: #FBF8F3;
  --ink: #263322;
  --line: #C5D4BE;
  --accent: #C45D38;
  --muted: #48613F;
  padding: 24px 16px;
}
.join-box { width: min(380px, 100%); background: #fff; border-radius: 20px; padding: 24px 20px; box-shadow: 0 4px 24px rgba(38, 51, 34, 0.08); }
.join-logo { font-size: 1.35rem; color: #263322; }
.join-body .auth-form input[type="password"],
.join-body .auth-form input[type="email"],
.join-body .auth-form input[type="text"] { background: #fff; min-height: 48px; font-size: 1rem; border-radius: 12px; }
.join-body .auth-form button { min-height: 48px; font-size: 1rem; font-weight: 600; border-radius: 12px; }
.join-body .auth-form button.join-secondary { border-color: #48613F; color: #263322; }
.join-body .auth-err { color: #A8462A; }
.join-account { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: #F2F5F0; line-height: 1.4; }
.join-switch { margin: 12px 0 0; font-size: 0.9rem; color: var(--muted); text-align: center; }
.join-link { min-height: 44px; border: none; background: none; padding: 0 4px; color: #A8462A; text-decoration: underline; font: inherit; cursor: pointer; }
