/* VitAll huisstijl voor de pseudonimiseringsapp. Fonts lokaal, niets van internet. */
@font-face { font-family: "Jost"; src: url("/static/fonts/Jost-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/static/fonts/Jost-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("/static/fonts/OpenSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("/static/fonts/OpenSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("/static/fonts/OpenSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --donkerblauw: #1e439b; --petrol: #38839e; --mint: #84cfc5; --lichtblauw: #5ec7f2;
  --helderblauw: #00a4e0; --koraal: #f6926f; --tint-lb: #e8f6fd; --tint-mint: #edf8f6;
  --lijn: #a0a0a0; --tekst: #000000; --wit: #ffffff; --fout: #b3261e;
  --display: Futura, "Futura PT", Jost, sans-serif;
  --text: "Open Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--text); font-size: 17px; line-height: 1.5; color: var(--tekst); background: var(--wit); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--donkerblauw); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--helderblauw); outline-offset: 2px; }

/* Kop met logo rechtsboven, zoals in de documenten */
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px clamp(20px, 5vw, 64px); border-bottom: 2px solid var(--tint-lb); }
.app-naam { font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--donkerblauw); text-decoration: none; }
.top-rechts { display: flex; align-items: center; gap: 20px; }
.gebruiker { font-size: 15px; color: var(--petrol); font-weight: 600; }
.logo { height: 44px; width: auto; display: block; }

main { flex: 1; width: 100%; max-width: 900px; margin: 0 auto; padding: 40px clamp(20px, 5vw, 40px) 64px; }
h1 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4vw, 40px); line-height: 1.15; color: var(--donkerblauw); margin: 0 0 12px; }
.intro { margin: 0 0 32px; max-width: 62ch; }

/* Genummerde stappen met een grijze lijn ertussen (huisstijl formulieren) */
.stap { padding: 32px 0; border-top: 2px solid var(--lijn); }
.stap:first-of-type { border-top: 0; padding-top: 8px; }
.stap h2 { font-family: var(--text); font-weight: 700; font-size: 20px; margin: 0 0 6px; }
.stap .uitleg { margin: 0 0 20px; color: #333; max-width: 62ch; }

label, .label { display: block; font-weight: 600; font-size: 15px; margin: 18px 0 6px; }
input[type=text], input[type=password], textarea {
  width: 100%; font: inherit; color: var(--tekst); background: var(--wit);
  border: 2px solid var(--lijn); border-radius: 0; padding: 12px 14px;
}
input[type=text]:focus, input[type=password]:focus, textarea:focus { border-color: var(--donkerblauw); outline: none; box-shadow: 0 0 0 3px var(--tint-lb); }
textarea { min-height: 220px; resize: vertical; line-height: 1.45; }
textarea[readonly] { background: var(--tint-mint); }
.twee { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
input[type=file] { font: inherit; font-size: 15px; }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; background: var(--wit); color: var(--donkerblauw); border: 2px solid var(--donkerblauw); border-radius: 0; padding: 8px 16px; margin-right: 12px; cursor: pointer; }
.of { margin: 14px 0 0; font-size: 15px; color: #444; }

.knop { display: inline-block; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  background: var(--donkerblauw); color: var(--wit); border: 2px solid var(--donkerblauw); border-radius: 0; padding: 12px 26px; margin-top: 22px; }
.knop:hover { background: #17357c; border-color: #17357c; }
.knop.licht { background: var(--wit); color: var(--donkerblauw); }
.knop.licht:hover { background: var(--tint-lb); }
.knop.klein { font-size: 14px; padding: 7px 14px; margin: 0; }
.knoppen { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.knoppen .knop { margin-top: 0; }

.let-op { background: var(--tint-lb); color: var(--donkerblauw); padding: 14px 18px; margin: 0 0 28px; border-left: 6px solid var(--donkerblauw); }
.fout { background: #fdecea; color: var(--fout); padding: 12px 16px; margin: 0 0 18px; border-left: 6px solid var(--fout); }

.sleutel { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: var(--tint-mint); padding: 16px 18px; margin: 8px 0 24px; }
.sleutel code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 16px; word-break: break-all; color: var(--donkerblauw); font-weight: 600; }

/* Tabel in huisstijl: donkerblauwe kop, afwisselende rijen, mint randen */
table { border-collapse: collapse; margin: 8px 0 28px; min-width: 280px; }
th { background: var(--donkerblauw); color: var(--wit); text-align: left; padding: 8px 16px; font-weight: 700; }
td { padding: 7px 16px; border-bottom: 1px solid var(--mint); }
tr:nth-child(even) td { background: var(--tint-lb); }
td.getal { text-align: right; font-variant-numeric: tabular-nums; }

footer { padding: 16px clamp(20px, 5vw, 64px); font-size: 13px; color: var(--petrol); border-top: 2px solid var(--tint-lb); }

/* Inlogpagina: merkvlak met verspringende kleurvlakken en de hartslaglijn */
body.login { background: var(--wit); }
.login-wrap { flex: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; }
.merk { position: relative; overflow: hidden; background: var(--donkerblauw); color: var(--wit); padding: clamp(32px, 6vw, 72px); display: flex; flex-direction: column; justify-content: space-between; }
.merk .logo { height: 64px; position: relative; z-index: 2; align-self: flex-start; }
.merk .payoff { position: relative; z-index: 2; font-family: var(--display); font-size: 22px; max-width: 18ch; line-height: 1.3; margin: 0; }
.vlak { position: absolute; }
.vlak.v1 { background: var(--mint);        width: 46%; height: 30%; right: -6%; top: 26%; }
.vlak.v2 { background: var(--petrol);      width: 40%; height: 28%; right: 8%;  top: 36%; }
.vlak.v3 { background: var(--helderblauw); width: 30%; height: 20%; right: -4%; top: 52%; }
.vlak.v4 { background: var(--lichtblauw);  width: 34%; height: 14%; right: 22%; top: 60%; }
.hartslag { position: absolute; left: 0; right: 0; top: 44%; width: 100%; height: 120px; z-index: 1; }
.inlog { display: flex; align-items: center; justify-content: center; padding: clamp(28px, 6vw, 72px); }
.inlog-kaart { width: 100%; max-width: 420px; }
.inlog-kaart h1 { margin-bottom: 4px; }
.inlog-kaart .sub { margin: 0 0 18px; color: #333; }
.inlog-kaart .knop { width: 100%; }
.hint { font-size: 14px; color: #444; margin: 6px 0 0; }

@media (max-width: 760px) {
  .login-wrap { grid-template-columns: 1fr; }
  .merk { min-height: 180px; padding: 24px; }
  .merk .payoff, .hartslag { display: none; }
  .twee { grid-template-columns: 1fr; }
  .top { flex-wrap: wrap; }
  .gebruiker { display: none; }
}
