/* Pages d'authentification : aucun style en ligne (CSP stricte), aucune ressource externe. */
:root {
  --bg: #0e0f14;
  --surface: #1a1c25;
  --text: #eceef4;
  --muted: #9aa0b4;
  --accent: #f5b942;
  --danger: #ff8a8a;
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; }

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: radial-gradient(1000px 520px at 50% -160px, #1f2335, var(--bg));
  background-attachment: fixed;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.auth { width: 100%; max-width: 380px; }

.brand {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; margin-bottom: 26px;
}
.brand img { width: 76px; height: 76px; filter: drop-shadow(0 8px 24px #f5b94238); }
.brand h1 { font-size: 1.7rem; font-weight: 700; letter-spacing: .06em; }

.panel {
  background: var(--surface);
  border: 1px solid #ffffff14;
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: 0 18px 48px #00000055;
}
.panel h2 { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.panel .hint { color: var(--muted); font-size: .88rem; margin-bottom: 18px; }

.field + .field { margin-top: 16px; }
label { display: block; font-size: .84rem; color: var(--muted); margin-bottom: 6px; }
input[type="text"], input[type="password"] {
  width: 100%;
  background: #12131a; color: var(--text);
  border: 1px solid #ffffff1f; border-radius: 9px;
  padding: 11px 13px; font: inherit;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }

.btn {
  display: block; width: 100%; margin-top: 22px;
  background: var(--accent); color: #1b1503;
  border: 0; border-radius: 9px;
  padding: 12px 16px; font: inherit; font-weight: 700; cursor: pointer;
  transition: filter .15s, transform .05s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: transparent; color: var(--muted); border: 1px solid #ffffff22; font-weight: 500; }

.error {
  margin-top: 16px; padding: 10px 12px;
  border: 1px solid #ff8a8a55; background: #ff8a8a14;
  color: var(--danger); border-radius: 9px; font-size: .9rem;
}
.error ul { padding-left: 18px; }

.rules { color: var(--muted); font-size: .84rem; padding-left: 18px; margin-bottom: 4px; }

code.secret {
  display: block; margin: 14px 0 6px; padding: 14px;
  background: #12131a; border: 1px dashed #f5b94277; border-radius: 9px;
  font: 600 1.25rem/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: .08em; text-align: center; user-select: all; word-break: break-all;
}
.note { color: var(--muted); font-size: .84rem; margin-top: 10px; }
.note strong { color: var(--text); }

[hidden] { display: none !important; }
