/* Inlogschermen in de nieuwe stijl (akkoord Nabil 12-11-2026): zacht warm en effen, gebroken witte kaart,
   knoppen 'tussenin' #24528f, geen kale onderstreepte links. Altijd licht (Nabil 12-11): effen lichte achtergrond, kaart in hetzelfde wit als het logo. */
:root {
  --bg: #ebe9e4; --kaart: #faf9f6; --tekst: #25272b; --tekst-2: #585b61; --rand: rgba(40, 30, 10, .14);
  --actie: #24528f; --actie-donker: #1c4377; --op-actie: #fff; --tint: rgba(36, 82, 143, .10);
  --rood: #a91916; --rood-licht: #f6dfdd; --groen: #00443f; --groen-licht: #d5e8e5;
}
body { background: var(--bg) !important; color: var(--tekst) !important; padding: 24px 16px; }
form.inlog { background: var(--kaart) !important; border-radius: 16px !important; border: 0 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 10px 30px rgba(0, 0, 0, .08) !important; }
h1 { color: var(--tekst) !important; letter-spacing: -.01em; }
h1 small, .vergeten, .hint { color: var(--tekst-2) !important; }
label { color: var(--tekst) !important; }
input:not([type="checkbox"]) { background: var(--bg) !important; color: var(--tekst) !important; border: 1px solid var(--rand) !important;
  border-radius: 10px !important; }
input:focus { outline: 2px solid var(--actie) !important; outline-offset: 1px; border-color: transparent !important; }
input[type="checkbox"] { accent-color: var(--actie); }
button { background: var(--actie) !important; color: var(--op-actie) !important; border-radius: 10px !important; }
button:hover { background: var(--actie-donker) !important; }
.fout { background: var(--rood-licht) !important; color: var(--rood) !important; border: 0 !important; border-radius: 10px !important; }
.melding { background: var(--groen-licht) !important; color: var(--groen) !important; border: 0 !important; border-radius: 10px !important; }
/* links als knop of chip, nooit kaal onderstreept */
a.vergeten, .vergeten a, .terug a { display: inline-block; justify-self: center; text-decoration: none !important; color: var(--actie) !important;
  background: var(--tint); padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }
a.vergeten:hover, .vergeten a:hover, .terug a:hover { background: rgba(36, 82, 143, .18); }
.talen a { color: var(--tekst-2) !important; border-color: var(--rand) !important; }
.talen a:hover { color: var(--actie) !important; border-color: var(--actie) !important; }
.talen a.actief { background: var(--actie) !important; border-color: var(--actie) !important; color: var(--op-actie) !important; }
:root { color-scheme: light; }
/* 13-11-2026: donkere modus volgt de systeeminstelling (het gekozen portaalthema is vóór het inloggen nog niet bekend).
   Kaart donkergrijs, tekst licht, knop dieper blauw (wit op #2b6cd4 = 5,0:1); het logo staat op een licht vlakje zodat het leesbaar blijft. */
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark;
    --bg: #1a1d21; --kaart: #2a2e35; --tekst: #e9ebee; --tekst-2: #b4b9c2; --rand: rgba(255, 255, 255, .16);
    --actie: #2b6cd4; --actie-donker: #2259b5; --op-actie: #fff; --tint: #16294a; --link: #8cbcff;
    --rood: #ffb4ab; --rood-licht: #3a1715; --groen: #8fd6b0; --groen-licht: #12302a; }
  form.inlog { box-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35) !important; border-top-color: transparent !important; }
  .merk img { background: #faf9f6; border-radius: 12px; padding: 10px 14px; box-sizing: content-box; width: 150px !important; }
  input:not([type="checkbox"]) { background: #1e2126 !important; border-color: #4a505a !important; }
  input::placeholder { color: var(--tekst-2); }
  input:focus { outline-color: #8cbcff !important; }
  a.vergeten, .vergeten a, .terug a { color: var(--link) !important; }
  a.vergeten:hover, .vergeten a:hover, .terug a:hover { background: #1d3560; }
  .talen a:hover { color: var(--link) !important; border-color: var(--link) !important; }
}
/* zichtbare focus met het toetsenbord */
a:focus-visible, button:focus-visible { outline: 3px solid var(--link, #24528f) !important; outline-offset: 2px; }
