/* ==========================================================================
   Scribo – modern loginscherm
   Altijd actief: de keuze moderne/klassieke stijl is per gebruiker en die kennen
   we pas na het inloggen. Zelfde huisstijl als scribo-modern.css.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&display=swap");

:root {
  --sc-font: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --sc-ink: #1C2430;
  --sc-ink-2: #3D4655;
  --sc-muted: #5B6472;
  --sc-canvas: #F3F4F6;
  --sc-surface: #FFFFFF;
  --sc-line: #E1E4E9;
  --sc-line-strong: #CBD1D9;
  --sc-brand: #1E3A5F;
  --sc-brand-h: #162C49;
  --sc-link: #1F5FAE;
  --sc-focus: rgba(31, 95, 174, .28);
  --sc-danger: #B42318;
  --sc-danger-soft: #FDECEA;
}

/* ---------- pagina ---------- */
html body.loginPage {
  min-height: 100vh;
  background: var(--sc-canvas) none;
  color: var(--sc-ink);
  font-family: var(--sc-font);
  -webkit-font-smoothing: antialiased;
}
html body.loginPage .container { min-height: 100vh; }

/* logo gecentreerd boven de kaart (de inline stijl berekent een negatieve marge per logobreedte);
   onderkant verankerd 40px boven de kaart, zodat hoge logo's naar boven groeien i.p.v. over de kaart */
html body.loginPage .image-logo {
  max-width: 240px;
  max-height: 160px;
  top: auto;
  bottom: calc(50% + 150px + 40px);  /* kaart begint op 50% - 150px */
  margin-top: 0;
  margin-left: 0 !important;
  transform: translateX(-50%);
  mix-blend-mode: multiply;  /* witte achtergrond van het logo-bestand neemt de achtergrondkleur aan */
}

/* ---------- kaart ---------- */
html body.loginPage .loginContainer {
  width: 360px;
  margin-left: -180px;
  margin-top: -150px;
  padding: 24px 28px 28px;
  border: 1px solid var(--sc-line);
  border-radius: 12px;
  background: var(--sc-surface);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 16px 40px rgba(16, 24, 40, .08);
}
/* geen gestapelde, gedraaide "papiertjes" meer */
html body.loginPage .loginContainer::before,
html body.loginPage .loginContainer::after { display: none; }

html body.loginPage .loginContainer .form-group { margin-bottom: 16px; }

html body.loginPage .loginContainer .form-group .control-label {
  padding: 0 15px 6px;
  color: var(--sc-ink-2);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
}

html body.loginPage .loginContainer .form-control {
  height: 40px;
  padding: 0 40px 0 12px;
  border: 1px solid var(--sc-line-strong);
  border-radius: 8px;
  box-shadow: none;
  color: var(--sc-ink);
  font-family: var(--sc-font);
  font-size: 14px;
  transition: border-color .12s ease, box-shadow .12s ease;
}
html body.loginPage .loginContainer .form-control::placeholder { color: #8A929F; }
html body.loginPage .loginContainer .form-control:focus {
  border-color: var(--sc-link);
  box-shadow: 0 0 0 3px var(--sc-focus);
  outline: 0;
}

/* gebruiker- en slot-icoon rechts in het veld */
html body.loginPage #loginForm .form-group span.icon16 {
  top: 8.6px;      /* verticaal gecentreerd in het veld van 40px */
  right: 27px;     /* 12px van de rand, zoals de tekst links */
  margin: 0;
  color: #9AA3AF;
}

/* "Paswoord vergeten?" */
html body.loginPage .loginContainer .forgot {
  float: right;
  margin: 8px 0 0;
  font-size: 12px;
}
html body.loginPage .loginContainer .forgot a { color: var(--sc-link); }
html body.loginPage .loginContainer .forgot a:hover { color: var(--sc-brand); text-decoration: underline; }

/* foutmeldingen */
html body.loginPage .loginContainer label.error {
  display: block;
  margin: 6px 0 0;
  color: var(--sc-danger);
  font-size: 12px;
  font-weight: 500;
}
html body.loginPage .loginContainer .alert {
  border-radius: 8px;
  background-image: none;
  box-shadow: none;
  text-shadow: none;
  font-size: 13px;
}
html body.loginPage .loginContainer .alert-danger {
  border-color: #F1B8B3;
  background-color: var(--sc-danger-soft);
  color: var(--sc-danger);
}

/* ---------- knop: geen grijze balk meer, volle breedte ---------- */
html body.loginPage .loginContainer .form-horizontal .form-group:last-child,
html body.loginPage .loginContainer .form-group:last-child { margin: 8px -15px 0; }
html body.loginPage .loginContainer .form-actions {
  padding: 0 15px;
  border: 0;
  background: none;
  box-shadow: none;
}
html body.loginPage #loginBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  float: none;
  width: 100%;
  height: 40px;
  border: 1px solid var(--sc-brand);
  border-radius: 8px;
  background: var(--sc-brand) none;
  box-shadow: none;
  color: #FFF;
  font-family: var(--sc-font);
  font-size: 14px;
  font-weight: 600;
  text-shadow: none;
}
html body.loginPage #loginBtn:hover,
html body.loginPage #loginBtn:focus-visible {
  border-color: var(--sc-brand-h);
  background: var(--sc-brand-h) none;
}
html body.loginPage #loginBtn:focus-visible { box-shadow: 0 0 0 3px var(--sc-focus); outline: 0; }
html body.loginPage #loginBtn:disabled { opacity: .7; }
html body.loginPage #loginBtn span.icon16,
html body.loginPage #loginBtn .fa { margin: 0; color: #FFF; }

/* "laatste update" onder de knop */
html body.loginPage .loginContainer .row > .col-md-12 {
  margin: 16px 0 0 !important;
  color: var(--sc-muted);
  font-size: 12px;
  text-align: center;
}
