@font-face {
  font-family: Manrope;
  src: url("Manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  font:
    16px/1.55 Manrope,
    system-ui,
    sans-serif;
  color-scheme: light;
  --bg: #f2f4ef;
  --paper: #fff;
  --ink: #18231f;
  --muted: #50645b;
  --line: #bccac1;
  --action: #123f36;
  --focus: #c9a75c;
  --error: #9c2424;
}
:root[data-theme="gray"] {
  color-scheme: dark;
  --bg: #303735;
  --paper: #414946;
  --ink: #f5f7f3;
  --muted: #d2dcd5;
  --line: #8a9c91;
  --action: #1c5a49;
  --error: #ffbbbb;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101916;
  --paper: #1a2922;
  --ink: #f0f5ed;
  --muted: #bccdbf;
  --line: #687e6e;
  --action: #1c5a49;
  --error: #ffbbbb;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
.shell {
  width: min(100% - 48px, 1120px);
  margin: auto;
  padding: 32px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
}
.brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand strong {
  display: block;
  font-size: 24px;
}
.brand span,
.theme,
.hint,
footer {
  color: var(--muted);
}
.theme {
  display: grid;
  gap: 8px;
  margin-left: auto;
  font-size: 14px;
}
main {
  width: min(100%, 640px);
  margin: 0 auto;
}
.card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 8px 24px #0000000d;
}
h1 {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 4vw, 1.8rem);
  line-height: 1.3;
}
p {
  margin: 0 0 24px;
}
form {
  display: grid;
  gap: 24px;
}
label {
  display: grid;
  gap: 8px;
}
input,
select,
button,
.button {
  font: inherit;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
}
input,
select {
  width: 100%;
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
}
button,
.button {
  cursor: pointer;
  color: var(--ink);
  background: var(--paper);
  text-decoration: none;
}
button.primary {
  color: #fff;
  background: var(--action);
  border-color: var(--action);
}
.password {
  display: flex;
  gap: 16px;
}
.password input {
  flex: 1;
}
.password button {
  flex-shrink: 0;
}
.check {
  display: flex;
  align-items: center;
  gap: 16px;
}
.check input {
  width: 24px;
  min-height: 24px;
}
.error {
  color: var(--error);
  margin: 0;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
a {
  color: inherit;
}
footer {
  display: flex;
  gap: 24px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 24px 0 0;
  font-size: 14px;
}
footer img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
footer strong {
  color: var(--ink);
}
footer p {
  margin: 4px 0 0;
}
@media (max-width: 600px) {
  .shell {
    width: calc(100% - 32px);
    padding-top: 24px;
  }
  .brand {
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
  }
  .brand img {
    width: 48px;
    height: 48px;
  }
  .brand strong {
    font-size: 20px;
  }
  .brand-name {
    flex: 1;
    min-width: 120px;
  }
  .theme {
    width: 100%;
    margin: 0;
  }
  .card {
    padding: 24px;
  }
  footer {
    gap: 16px;
  }
}
@media (max-width: 360px) {
  .card {
    padding: 16px;
  }
  .password {
    flex-wrap: wrap;
  }
  .password button {
    width: 100%;
  }
}
section[aria-label="Première association OTP"] svg {
  display: block;
  width: min(100%, 240px);
  height: auto;
  margin: 16px auto;
  background: white;
}
section[aria-label="Première association OTP"] code {
  overflow-wrap: anywhere;
}
