/* The look of the login pages (W1-24b). Copied from the shell of the app (apps/web/src/ui/thema.css
   and the buttons and fields of W1-10), not shared: nothing under identity/ uses code from apps/.
   Plain text has a contrast of at least 7:1, buttons at least 4.5:1, in light and dark (NF-27).
   No font, image or script from another address: the system font only. */

:root {
  color-scheme: light;
  --ix-bg: #ffffff;
  --ix-surface: #f3f4f6;
  --ix-fg: #111827;
  --ix-muted: #374151;
  --ix-border: #4b5563;
  --ix-line: #d1d5db;
  --ix-primary: #1e3a8a;
  --ix-on-primary: #ffffff;
  --ix-focus: #1d4ed8;
  --ix-danger: #991b1b;
  --ix-on-danger: #ffffff;
  --ix-info-bg: #eff6ff;
  --ix-info-fg: #1e3a8a;
  --ix-error-bg: #fef2f2;
  --ix-error-fg: #7f1d1d;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ix-bg: #0b0f19;
    --ix-surface: #161b26;
    --ix-fg: #f3f4f6;
    --ix-muted: #d1d5db;
    --ix-border: #9ca3af;
    --ix-line: #374151;
    --ix-primary: #bfdbfe;
    --ix-on-primary: #0b1a3a;
    --ix-focus: #93c5fd;
    --ix-danger: #fecaca;
    --ix-on-danger: #450a0a;
    --ix-info-bg: #0f1d3a;
    --ix-info-fg: #dbeafe;
    --ix-error-bg: #2a0b0b;
    --ix-error-fg: #fee2e2;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background-color: var(--ix-bg);
  color: var(--ix-fg);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

/* Hidden stays hidden, also for elements whose class sets a display. */
[hidden],
.knop[hidden],
.stap[hidden],
.melding[hidden],
.vraag[hidden] {
  display: none;
}

.kader {
  max-width: 28rem;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

h1 {
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.125rem;
  margin: 1.5rem 0 0.5rem;
}

p {
  margin: 0 0 1rem;
  overflow-wrap: anywhere;
}

#product {
  color: var(--ix-muted);
}

.stap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stap > h2:first-child {
  margin-top: 0.5rem;
}

.stap > p {
  margin: 0;
}

label {
  font-weight: 600;
}

input {
  min-height: 2.75rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font: inherit;
  color: var(--ix-fg);
  background-color: var(--ix-bg);
  border: 2px solid var(--ix-border);
  border-radius: 0.375rem;
}

.knop {
  display: inline-flex;
  min-height: 2.75rem;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 0.375rem;
  cursor: pointer;
}

.knop.primair {
  background-color: var(--ix-primary);
  color: var(--ix-on-primary);
  border-color: var(--ix-primary);
}

.knop.secundair {
  background-color: var(--ix-bg);
  color: var(--ix-fg);
  border-color: var(--ix-border);
}

.knop.gevaar {
  background-color: var(--ix-danger);
  color: var(--ix-on-danger);
  border-color: var(--ix-danger);
}

.knop.tekstknop {
  background-color: var(--ix-bg);
  color: var(--ix-fg);
  text-decoration: underline;
}

.knop:disabled {
  cursor: wait;
}

:focus-visible {
  outline: 3px solid var(--ix-focus);
  outline-offset: 2px;
}

.melding {
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  border: 2px solid currentColor;
}

.melding.fout {
  background-color: var(--ix-error-bg);
  color: var(--ix-error-fg);
}

.melding.info {
  background-color: var(--ix-info-bg);
  color: var(--ix-info-fg);
}

.lijst {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.passkey {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background-color: var(--ix-surface);
  border: 1px solid var(--ix-line);
  border-radius: 0.375rem;
}

.passkey > span {
  flex: 1 1 10rem;
  overflow-wrap: anywhere;
}

.passkey .knop {
  width: auto;
}

.vraag {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 2px solid var(--ix-border);
  border-radius: 0.375rem;
}

.vraag > p {
  margin: 0;
}
