/* Aanmeldpagina van het portaal, in de huisstijl van taleman.be:
   Cormorant Garamond voor de titel, Lora voor de tekst, crème en goud.
   Velden met enkel een lijn eronder, zoals het contactformulier op de site. */
@font-face {
  font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../site/fonts/cormorant-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../site/fonts/cormorant-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lora'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../site/fonts/lora-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lora'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../site/fonts/lora-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #FBF9F5;
  --inkt: #201f1d;
  --inkt-2: #444141;
  --inkt-3: #605d5d;
  --goud: #92682b;          /* zelfde goud als op de site: knoppen, labels */
  --goud-donker: #79561f;
  --lijn: #cfc9c0;
  --scheiding: rgba(32, 31, 29, .16);
  --fout: #a8261c;
  --kop: 'Cormorant Garamond', Georgia, serif;
  --tekst: 'Lora', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--inkt); font-family: var(--tekst); font-size: 16px; line-height: 1.6; }
a { color: var(--goud); text-underline-offset: 3px; }
a:hover { color: var(--goud-donker); }
:focus-visible { outline: 2px solid var(--goud); outline-offset: 3px; }
[hidden] { display: none !important; }

/* — opbouw: het merk compact bovenaan, daaronder een wit kader met de
   grote titel en het formulier (links uitgelijnd), zoals de witte kaart in de mail — */
.aanmelden { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 48px 20px 32px; }

.merk { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--inkt); font-family: var(--kop); font-weight: 600; font-size: 26px; line-height: 1.1; }
.merk img { height: 56px; width: auto; display: block; }
.merk:hover { color: var(--goud-donker); }

.kader {
  width: min(460px, 100%); margin: 28px 0 24px; padding: 40px 40px 36px;
  background: #fff; border: 1px solid #e6e2db;
  box-shadow: 0 1px 2px rgba(45, 43, 43, .05), 0 24px 48px -32px rgba(45, 43, 43, .28);
}
.kader form { display: grid; gap: 24px; }

h1 { margin: 0; font-family: var(--kop); font-weight: 600; font-size: clamp(40px, 6vw, 52px); line-height: 1.05; letter-spacing: -0.015em; }
#stap2 h1 { font-size: clamp(32px, 5vw, 40px); }
.inleiding { margin: -10px 0 4px; font-size: 16px; line-height: 1.65; color: var(--inkt-2); }
.inleiding strong { color: var(--inkt); font-weight: 600; }

/* Turnstile: neemt geen ruimte in zolang het onzichtbaar blijft */
.controle.zichtbaar { margin-top: 22px; }
.controle iframe { max-width: 100%; }

/* — veld met enkel een lijn eronder — */
.veld label, .code legend {
  display: block; padding: 0; margin: 0 0 2px;
  font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--goud);
}
.veld input {
  display: block; width: 100%; margin: 0; padding: 10px 0;
  font: inherit; font-size: 18px; color: var(--inkt);
  background: transparent; border: 0; border-bottom: 1px solid var(--lijn); border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
.veld input:hover { border-bottom-color: #7d7979; }
.veld input:focus { outline: none; border-bottom-color: var(--goud); box-shadow: 0 1px 0 0 var(--goud); }
.veld-fout { margin: 8px 0 0; font-size: 15px; color: var(--fout); }
.veld-fout:empty { display: none; }
[aria-invalid="true"] { border-bottom-color: var(--fout) !important; }

/* — code: 6 vakjes (lijntjes), plakken en automatisch invullen werken — */
.code { border: 0; padding: 0; margin: 0; min-width: 0; }
.vakjes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.vakjes input {
  width: 100%; height: 60px; padding: 0; text-align: center;
  font-family: var(--kop); font-weight: 600; font-size: 34px; color: var(--inkt);
  font-variant-numeric: lining-nums;
  background: transparent; border: 0; border-bottom: 2px solid var(--lijn); border-radius: 0;
  -webkit-appearance: none; appearance: none; caret-color: var(--goud);
}
.vakjes input:focus { outline: none; border-bottom-color: var(--goud); }
.vakjes input:not(:placeholder-shown) { border-bottom-color: var(--inkt-3); }

/* — knop: gevuld donkergoud, rechte hoeken — */
.knop {
  justify-self: stretch; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border: 0; border-radius: 0; cursor: pointer;
  font-family: var(--tekst); font-size: 16px; color: #fff; background: var(--goud);
  transition: background-color .15s ease;
}
.knop:hover { background: var(--goud-donker); }
.knop .knop-pijl { transition: transform .2s ease; }
.knop:hover .knop-pijl { transform: translateX(3px); }
.knop[disabled] { opacity: .6; cursor: progress; }

.onthouden { margin: -8px 0 0; font-size: 15px; color: var(--inkt-3); }
.acties { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 15px; color: var(--inkt-3); }
.link { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: var(--goud); text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--goud-donker); }
.link[disabled] { color: var(--inkt-3); text-decoration: none; cursor: default; }

/* testmodus (enkel lokaal): de code verschijnt hier in plaats van in de mail */
.test { padding: 12px 14px; border: 1px dashed #1c5cab; background: #eef4fc; font-size: 15px; }
.test b { font-size: 22px; letter-spacing: .12em; }

.aanmelden-voet { font-size: 15px; color: var(--inkt-3); text-align: center; }
.aanmelden-voet p { margin: 0 0 4px; }
.aanmelden-voet a { color: var(--inkt-3); }
.aanmelden-voet a:hover { color: var(--goud-donker); }

/* — gsm — */
@media (max-width: 520px) {
  .aanmelden { padding: 28px 14px 24px; }
  .merk { font-size: 21px; gap: 12px; }
  .merk img { height: 46px; }
  .kader { margin-top: 22px; padding: 30px 22px 28px; }
  .vakjes { gap: 8px; }
  .vakjes input { height: 54px; font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { .knop, .knop .knop-pijl { transition: none; } }

/* pagina achter de link in de mail: melding als de link niet meer geldig is */
#verlopen { display: grid; gap: 24px; }
a.knop { text-decoration: none; color: #fff; }
a.knop:hover { color: #fff; }
