/* Habillage des deux seules pages que voit un visiteur non authentifié :
   le formulaire de connexion et la configuration initiale.

   Volontairement indépendant de style.css : ces pages doivent s'afficher même
   si le tableau de bord, lui, n'est pas encore déposé. */

:root {
  --paper: #f7f7f5; --card: #fff; --ink: #16181d; --ink-2: #5b6070;
  --line: #e2e2df; --accent: #2f5d50; --bad: #a3372c;
  --sans: "Public Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14161a; --card: #1b1e24; --ink: #e9eaec; --ink-2: #9aa0ad;
    --line: #2b2f37; --accent: #6fae9a; --bad: #e08074;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0; min-height: 100vh; display: grid; place-items: center;
  padding: 1.5rem; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.55;
}

.box {
  width: 100%; max-width: 23rem; background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; padding: 1.6rem 1.5rem;
}

h1 { margin: 0 0 .25rem; font-size: 1.15rem; font-weight: 600; letter-spacing: -.011em; }
p.sub { margin: 0 0 1.4rem; color: var(--ink-2); font-size: .85rem; }
p.sub a { color: var(--accent); }

label { display: block; margin-bottom: .28rem; font-size: .82rem; font-weight: 500; }
.hint { display: block; margin: -.6rem 0 .9rem; color: var(--ink-2); font-size: .75rem; }

/* 16 px au minimum : en dessous, Safari sur iPhone zoome à la mise au point du
   champ et la page part de travers. */
input {
  width: 100%; padding: .6rem .7rem; margin-bottom: .9rem;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: 6px;
  font-family: var(--sans); font-size: 16px;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

button {
  width: 100%; padding: .7rem; border: 0; border-radius: 6px;
  background: var(--accent); color: #fff;
  font-family: var(--sans); font-size: .95rem; font-weight: 600; cursor: pointer;
}
button[disabled] { opacity: .5; cursor: not-allowed; }

.error, .ok {
  margin: 0 0 1rem; padding: .55rem .7rem; border-radius: 6px; font-size: .84rem;
}
.error { border: 1px solid var(--bad); color: var(--bad); }
.ok { border: 1px solid var(--accent); color: var(--accent); }

.foot { margin: 1.2rem 0 0; color: var(--ink-2); font-family: var(--mono); font-size: .68rem; }
code { font-family: var(--mono); font-size: .85em; }
