/* Sign-in page of Cap Concours: same palette as the app (the black cat). */
:root {
  --bg: #f7f3ec;
  --card: #ffffff;
  --ink: #1c1a17;
  --muted: #5f584f;
  --line: #e6ded1;
  --line-strong: #8c8377;
  --soft: #f2eadc;
  --brand: #1c1a17;
  --on-brand: #fdf2df;
  --accent: #b0441a;
  --ok: #1d7348;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141210;
    --card: #1f1c19;
    --ink: #f5efe6;
    --muted: #c0b7a9;
    --line: #3a352f;
    --line-strong: #80776b;
    --soft: #2d2925;
    --brand: #fdf2df;
    --on-brand: #1c1a17;
    --accent: #f2a174;
    --ok: #8fd6ac;
  }
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
.page {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
/* The cat, on a cream tile that stays visible in dark mode too. */
.brand .logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fdf2df;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.brand strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.5px;
}
.brand .dot {
  color: var(--accent);
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
}
.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}
h1 {
  margin: 6px 0 8px;
  font-size: 30px;
  line-height: 1.2;
}
h2 {
  margin: 8px 0 4px;
  font-size: 19px;
}
.lead {
  margin: 0 0 20px;
  color: var(--muted);
}
.small {
  color: var(--muted);
  font-size: 13px;
}
button {
  font: inherit;
  font-weight: 700;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: var(--on-brand);
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: progress;
}
button.google {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--card);
  color: var(--ink);
  border-color: var(--line-strong);
}
button.google:hover:not(:disabled) {
  border-color: var(--brand);
}
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}
label {
  display: block;
  font-weight: 600;
  margin: 12px 0 4px;
}
input {
  font: inherit;
  width: 100%;
  padding: 12px;
  font-size: 20px;
  letter-spacing: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
}
/* Second-factor step: one field, one main button, a quiet way back. */
.etape-code {
  margin-top: 4px;
}
.etape-code h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.etape-code h2 svg {
  color: var(--brand);
  flex: none;
}
input.code {
  height: 60px;
  padding: 0 12px;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.3em;
  font-variant-numeric: tabular-nums;
  border-width: 2px;
  border-radius: 12px;
}
input.code::placeholder {
  color: var(--line);
  font-weight: 600;
}
input.code:focus {
  border-color: var(--brand);
  outline: none;
}
button.large {
  display: block;
  width: 100%;
  margin-top: 16px;
}
button.lien {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  padding: 8px;
  border: 0;
  background: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
button.lien:hover {
  color: var(--ink);
}
.notice,
.error {
  margin: 0 0 16px;
  padding: 10px 14px;
  background: var(--soft);
  border-left: 4px solid var(--ok);
  border-radius: 8px;
}
.error {
  border-left-color: var(--accent);
}
.restricted {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
footer {
  margin-top: 20px;
  text-align: center;
}
a {
  color: var(--brand);
}
[hidden] {
  display: none !important;
}
