/* Inlogscherm ARGOS Education (23-11-2026), opbouw zoals Magister:
   wit paneel over de volle hoogte links, foto rechts. Altijd licht.
   Eigen klassen (lg-*) zodat de oude login-* regels met !important niet meedoen. */

.lg {
  --lg-blauw: #1F4FD1; --lg-blauw-hover: #1A42B0; --lg-blauw-zacht: #EEF2FC;
  --lg-inkt: #14213A; --lg-tekst: #3F4A5C; --lg-zacht: #6B7586;
  --lg-lijn: #D5D9E0; --lg-lijn-licht: #E7EAEE; --lg-rood: #B42318;
  display: grid; grid-template-columns: minmax(380px, 470px) 1fr; min-height: 100vh; min-height: 100dvh;
  background: #FFF; color: var(--lg-inkt); color-scheme: light;
  font-family: var(--ds-font, "IBM Plex Sans", system-ui, sans-serif);
}

/* ---------- paneel ---------- */
.lg-paneel { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; padding: 28px 56px 28px; background: #FFF; box-shadow: 1px 0 0 var(--lg-lijn-licht); }
.lg-balk { position: absolute; inset: 0 0 auto; height: 3px; overflow: hidden; opacity: 0; transition: opacity .15s; }
.lg-balk::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 35%; background: var(--lg-blauw); animation: lg-loop 1.1s ease-in-out infinite; }
.lg-paneel.is-bezig .lg-balk { opacity: 1; }
.lg-paneel.is-bezig .lg-stap { opacity: .6; pointer-events: none; }
@keyframes lg-loop { from { transform: translateX(-100%); } to { transform: translateX(300%); } }

.lg-midden { margin: auto 0; padding: 32px 0 48px; }
.lg-logo { display: block; width: 190px; height: auto; margin: 0 0 44px -4px; }
.lg-stap { transition: opacity .15s; }

.lg-titel { margin: 0; font-size: 26px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; color: var(--lg-inkt); }
.lg-uitleg { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--lg-tekst); }

/* school of gebruiker, klik = wijzigen */
.lg-chip { display: flex; align-items: center; gap: 12px; width: 100%; margin: 22px 0 0; padding: 10px 12px; border: 1px solid var(--lg-lijn); border-radius: 6px; background: #FFF; font: inherit; font-size: 15px; font-weight: 500; color: var(--lg-inkt); text-align: left; cursor: pointer; }
.lg-chip:hover { border-color: #B9BFC9; background: #FAFBFC; }
.lg-chip img { width: 36px; height: 36px; flex: none; object-fit: contain; }
.lg-chip span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lg-chip .lg-persoon { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--lg-zacht); stroke-width: 1.5; }
.lg-pijl { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--lg-zacht); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

[data-rechts] { margin-top: 24px; }
.lg-form { display: grid; gap: 16px; }

/* veld: label boven het invoerveld */
.lg-veld { display: flex; flex-direction: column-reverse; gap: 6px; margin: 0; }
.lg-veld > span { font-size: 14px; font-weight: 500; color: var(--lg-inkt); }
.lg .lg-veld input { width: 100%; height: 46px; padding: 0 14px !important; border: 1px solid #AEB4BE !important; border-radius: 6px !important; background: #FFF !important; font: inherit; font-size: 16px !important; color: var(--lg-inkt) !important; box-shadow: none !important; }
.lg .lg-veld input:hover { border-color: #8A919C !important; }
.lg .lg-veld input:focus { outline: 0; border-color: var(--lg-blauw) !important; box-shadow: 0 0 0 3px rgba(31, 79, 209, .18) !important; }
.lg .lg-veld.is-fout input { border-color: var(--lg-rood) !important; }
.lg .lg-veld input::placeholder { color: transparent; }
.lg .lg-code { font-size: 22px !important; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.lg-tekst { margin: 0; font-size: 15px; line-height: 1.5; color: var(--lg-tekst); }
.lg-fout { margin: -8px 0 0; font-size: 14px; color: var(--lg-rood); }

.lg-vink { display: flex; align-items: center; gap: 8px; width: fit-content; font-size: 14px; color: var(--lg-tekst); cursor: pointer; }
.lg-vink input { width: 16px; height: 16px; margin: 0; accent-color: var(--lg-blauw); }

/* knop over de volle breedte, tekstlink eronder */
.lg-acties { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 14px; margin-top: 8px; }
.lg-acties > span:empty { display: none; }
.lg .lg-knop { height: 46px; padding: 0 20px; border: 0; border-radius: 6px; background: var(--lg-blauw); color: #FFF; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.lg .lg-knop:hover { background: var(--lg-blauw-hover); }
.lg .lg-knop:disabled { opacity: .7; cursor: default; }
.lg-tekstknop { align-self: center; padding: 2px 4px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--lg-blauw); cursor: pointer; }
.lg-tekstknop:hover { text-decoration: underline; }

/* inloggen via de school */
.lg-sso { display: grid; gap: 8px; }
.lg-sso p { display: flex; align-items: center; gap: 12px; margin: 4px 0; font-size: 13px; color: var(--lg-zacht); }
.lg-sso p::before, .lg-sso p::after { content: ""; flex: 1; height: 1px; background: var(--lg-lijn-licht); }
.lg-sso-knop { height: 44px; border: 1px solid var(--lg-lijn); border-radius: 6px; background: #FFF; font: inherit; font-size: 15px; color: var(--lg-inkt); cursor: pointer; }
.lg-sso-knop:disabled { color: var(--lg-zacht); cursor: not-allowed; }

/* scholenlijst */
.lg-scholen[hidden] { display: none; }
.lg-scholen { max-height: 340px; margin: 14px 0 0; padding: 0; overflow: auto; list-style: none; border: 1px solid var(--lg-lijn-licht); border-radius: 6px; }
.lg-scholen li + li { border-top: 1px solid var(--lg-lijn-licht); }
.lg-scholen button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; border: 0; background: #FFF; font: inherit; text-align: left; cursor: pointer; }
.lg-scholen button:hover, .lg-scholen button:focus-visible { background: var(--lg-blauw-zacht); outline: 0; }
.lg-scholen img { width: 40px; height: 40px; flex: none; object-fit: contain; }
.lg-scholen span { display: grid; gap: 1px; }
.lg-scholen b { font-size: 15px; font-weight: 500; color: var(--lg-inkt); }
.lg-scholen small { font-size: 13px; color: var(--lg-zacht); }
.lg-leeg { padding: 14px; font-size: 14px; line-height: 1.5; color: var(--lg-tekst); }

/* meldingen */
.lg-melding { margin: 0 0 16px; padding: 12px 14px; border: 1px solid #F4C1BC; border-radius: 6px; background: #FDF1EF; font-size: 14px; line-height: 1.5; color: var(--lg-rood); }
.lg-melding.is-info { border-color: #CFD9F3; background: var(--lg-blauw-zacht); color: var(--lg-inkt); }
.lg-melding b { display: block; margin-bottom: 2px; font-weight: 600; }
.lg-melding p { margin: 0; }
.lg-melding p + p { margin-top: 4px; }
.lg-melding a { color: var(--lg-blauw); }

/* tweestapsverificatie */
.lg-qr { width: 176px; margin: 0 0 14px; padding: 6px; border: 1px solid var(--lg-lijn-licht); border-radius: 6px; }
.lg-qr svg { display: block; width: 100%; height: auto; }
.lg-sleutel { margin: 0 0 18px; font-size: 14px; }
.lg-sleutel summary { color: var(--lg-blauw); cursor: pointer; }
.lg-sleutel p { margin: 8px 0 0; font: 600 15px/1.6 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .04em; word-break: break-all; }

/* voetregel onderaan het paneel */
.lg-voet { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--lg-lijn-licht); font-size: 13px; color: var(--lg-zacht); }
.lg-voet a { color: var(--lg-tekst); text-decoration: none; }
.lg-voet a:hover { color: var(--lg-blauw); text-decoration: underline; }

/* ---------- foto ---------- */
.lg-beeld { position: relative; margin: 0; overflow: hidden; background: #2B3440; }
.lg-beeld img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lg-beeld figcaption { position: absolute; right: 14px; bottom: 10px; font-size: 11px; color: rgba(255, 255, 255, .75); text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.lg-beeld figcaption a { color: inherit; }

/* ---------- smal ---------- */
@media (max-width: 860px) {
  .lg { grid-template-columns: 1fr; }
  .lg-beeld { display: none; }
  .lg-paneel { width: min(470px, 100%); margin: 0 auto; padding: 28px 20px 20px; box-shadow: none; }
  .lg-midden { margin: 0; padding-top: 28px; }
  .lg-logo { width: 160px; margin-bottom: 36px; }
}

/* Sinal (29-11): de maker klein in de voet. */
.lg-maker { flex-basis: 100%; margin: 2px 0 0; color: var(--h-vaag, #8A93A3); font-size: 12px; text-align: left; }
/* Ouders (30-11) */
.lg-ouder { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--lg-lijn, #E3E6EB); color: #5B6472; font-size: 14px; }
.lg-ouder .lg-tekstknop { padding: 0; font-size: 14px; }
