/* Styles of login.html, moved out of the page as they were (phase 1 of the architecture study, M172,
   docs/ETUDE-ARCHITECTURE.md), loaded where the inline block was. */
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; display: flex; align-items: center; justify-content: center; }
footer { border-top: 1px solid var(--line); }
footer .wrap {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  max-width: 1200px; margin: 0 auto; padding: 20px 20px; color: var(--muted); font-size: 13px;
}
.box {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 32px; width: 100%; max-width: 420px; margin: 20px;
}
h1 { font-size: 22px; margin: 0 0 6px; letter-spacing: -0.01em; }
.sub { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 5px; }
input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 6px; font-size: 15px; background: #fff; color: var(--ink);
}
input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
button {
  width: 100%; background: var(--accent); color: #fff; border: 0;
  border-radius: 6px; padding: 12px; font-size: 15px; font-weight: 500;
  cursor: pointer; margin-top: 22px;
}
button:hover { filter: brightness(1.08); }
button:disabled { opacity: .5; cursor: default; }
.bascule {
  text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted);
}
.oublie { text-align: center; margin-top: 10px; font-size: 13px; }
/* A button, for the keyboard and for its disabled state, drawn as the link it was. */
.oublie button {
  width: auto; margin: 0; padding: 0; background: none; border-radius: 0;
  color: var(--accent); font: inherit; cursor: pointer;
}
.oublie button:hover { filter: none; }
/* The window it opens: this page's full-width, spaced-out buttons undone. */
.modal-texte { margin: 0; font-size: 14px; color: var(--muted); }
.modal-box .boutons { margin-top: 20px; }
.modal-box .boutons button { width: auto; margin: 0; padding: 10px 16px; font-size: 14px; }
.msg { margin-top: 16px; font-size: 14px; padding: 10px 12px; border-radius: 6px; }
.msg.err { background: #fdf3f1; border: 1px solid var(--err); color: var(--err); }
.msg.ok { background: #f0f5f2; border: 1px solid var(--ok); color: var(--ok); }
.champ-mdp { position: relative; }
.champ-mdp input { padding-right: 40px; }
.regles-mdp { list-style: none; margin: 10px 0 0; padding: 0; font-size: 13px; color: var(--muted); }
.regles-mdp li { padding-left: 20px; position: relative; margin-bottom: 3px; }
.regles-mdp li::before { content: '○'; position: absolute; left: 0; }
.regles-mdp li.ok { color: var(--ok); }
.regles-mdp li.ok::before { content: '✓'; }
.jauge-mdp { margin-top: 10px; }
.jauge-barre { height: 6px; background: #eee7dc; border-radius: 3px; overflow: hidden; }
.jauge-barre span { display: block; height: 100%; width: 0; border-radius: 3px; transition: width .2s, background .2s; }
.jauge-texte { font-size: 12px; color: var(--muted); margin-top: 4px; display: inline-block; }
.err-champ { color: var(--err); font-size: 13px; margin: 4px 0 0; }
.verif-note { font-size: 14px; color: var(--muted); margin: 0; }
#verif-titre:focus { outline: none; }
