/* Pages du compte FinancePro : connexion, mise en service, mon compte. */
:root {
  --bg: #f4f4fb;
  --card: #ffffff;
  --text: #1d1d2b;
  --muted: #6b6b80;
  --line: #e4e4ef;
  --accent: #666fec;
  --accent-ink: #ffffff;
  --accent-soft: rgba(102, 111, 236, .1);
  --danger: #d14b4b;
  --ok: #1baf7a;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14141d;
    --card: #1e1e2b;
    --text: #ecebf5;
    --muted: #a3a3b8;
    --line: #2f2f42;
    --accent: #7773ff;
    --accent-soft: rgba(119, 115, 255, .16);
    --danger: #ef6b6b;
    --ok: #34c793;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: grid;
  place-items: start center;
  padding: clamp(24px, 8vh, 80px) 16px 40px;
}
[hidden] { display: none !important; }
.card {
  width: min(420px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 26px;
  box-shadow: 0 18px 50px rgba(29, 29, 43, .08);
}
.wide { width: min(720px, 100%); }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand h1 { font-size: 19px; margin: 0; }
.brand p { margin: 0; color: var(--muted); font-size: 13px; }
h2 { font-size: 15px; margin: 26px 0 8px; }
h2:first-of-type { margin-top: 6px; }
p.hint { color: var(--muted); font-size: 13px; margin: 4px 0 12px; }
label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 5px; }
input {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 12px;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
button, .button {
  font: inherit;
  font-weight: 600;
  border: 0;
  border-radius: 11px;
  padding: 11px 16px;
  cursor: pointer;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  display: inline-block;
}
button[disabled] { opacity: .55; cursor: progress; }
.block { width: 100%; margin-top: 18px; }
button.ghost, .button.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); font-weight: 500; }
button.link { background: none; color: var(--muted); padding: 6px 0; font-weight: 400; text-decoration: underline; margin-top: 12px; }
button.danger { background: transparent; color: var(--danger); border: 1px solid var(--line); font-weight: 500; padding: 7px 12px; }
.message { min-height: 1.5em; margin: 14px 0 0; font-size: 14px; }
.message.error { color: var(--danger); }
.message.ok { color: var(--ok); }
.list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; }
.list li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .sub { color: var(--muted); font-size: 12.5px; }
.tag { font-size: 11.5px; color: var(--accent); background: var(--accent-soft); border-radius: 99px; padding: 2px 8px; margin-left: 6px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.codes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 18px;
  font: 600 16px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .04em;
  background: var(--accent-soft);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 10px 0;
}
.qr { background: #fff; border-radius: 14px; padding: 10px; width: 220px; max-width: 100%; }
.qr svg { display: block; width: 100%; height: auto; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: 14px; margin-top: 14px; }
.check input { width: auto; margin-top: 3px; }
details summary { cursor: pointer; color: var(--muted); font-size: 13px; margin-top: 22px; }
.audit { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; padding-left: 18px; }
.top-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
@media print {
  body { background: #fff; color: #000; padding: 0; }
  .card { box-shadow: none; border: 0; }
  .no-print, button { display: none !important; }
  .codes { background: none; border: 1px solid #000; }
}
