/* ============================================================
   RIVO aanmeldscherm: "Laat talent stromen"
   Links een klasfoto met de slogan en stroomlijnen die naar het
   aanmeldpaneel toe buigen; rechts het witte paneel met het formulier.
   De legacy-klassen (.sidebar, .content, .form-group, .btn, ...) blijven
   bestaan omdat wachtwoord-reset.php ze ook gebruikt.
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; border: 0; outline: none; }
html, body { height: 100%; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  color: #16323a;
  background: #061a2b;
  display: flex;
  width: 100%;
  overflow: auto;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 992px) { body { overflow: hidden; } }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
  -webkit-transition: color 9999s ease-out, background-color 9999s ease-out;
  -webkit-transition-delay: 9999s;
}
a { color: #006ba3; text-decoration: none; transition: color 150ms ease-out; }
a:hover, a:active { color: #0081c5; }
.text-hide { font: 0/0 a; color: transparent; text-shadow: none; background-color: transparent; border: 0; }
b { font-weight: 600; }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes rvl-opkomen { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rvl-stroom { from { stroke-dashoffset: 2000; } to { stroke-dashoffset: 0; } }

/* ---------- opbouw ---------- */
#app { flex: 1; display: flex; flex-direction: column; min-height: 100%; }
@media (min-width: 992px) { #app { flex-direction: row; } }

/* ---------- beeldpaneel (links / bovenaan op mobiel) ---------- */
.sidebar {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #0b2e46 url('../modules/pb/images/aanmelden/10.jpg') no-repeat center 30%;
  background-size: cover;
  display: flex;
  align-items: flex-end;
  flex: 0 0 auto;
  height: 236px;
}
@media (min-width: 992px) {
  .sidebar { width: 58%; height: auto; flex: 0 0 58%; }
}
.rvl-beeld-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 26, 43, 0.30) 0%, rgba(6, 26, 43, 0) 45%, rgba(6, 26, 43, 0.70) 100%),
    linear-gradient(180deg, rgba(6, 26, 43, 0.35) 0%, rgba(6, 26, 43, 0.55) 50%, rgba(6, 26, 43, 0.92) 100%);
}
@media (max-width: 991px) {
  .rvl-beeld-overlay { background: linear-gradient(180deg, rgba(6, 26, 43, 0.15) 0%, rgba(6, 26, 43, 0.85) 100%); }
}

/* stroomlijnen: het svg wordt over het volledige paneel uitgerekt (preserveAspectRatio none);
   vector-effect houdt de streepdikte constant */
.rvl-stroom { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rvl-stroom-h { display: none; }
.rvl-stroom-v { display: block; }
@media (min-width: 992px) { .rvl-stroom-h { display: block; } .rvl-stroom-v { display: none; } }
.rvl-lijn { stroke-width: 1.2; vector-effect: non-scaling-stroke; }
/* lichtpuls: korte streep (120 van 1000) die één keer over de lijn loopt en dan een cyclus wacht;
   dasharray 120 + 1880 = 2000, offset 2000 -> 0 = één doorloop van rand naar paneel */
.rvl-puls {
  stroke-width: 2.2; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 120 1880; stroke-dashoffset: 2000; opacity: 0.95;
  animation-name: rvl-stroom; animation-timing-function: cubic-bezier(.45,.05,.55,.95); animation-iteration-count: infinite;
}
.rvl-puls-kop {
  stroke: #ffffff; stroke-width: 3.5; stroke-dasharray: 16 1984;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.95)) drop-shadow(0 0 14px rgba(141,193,0,0.8));
}
@media (prefers-reduced-motion: reduce) { .rvl-puls { animation: none; opacity: 0; } }

.rvl-merk {
  position: absolute; left: 24px; top: 22px; display: flex; align-items: center; gap: 8px;
  color: rgba(255, 255, 255, 0.9); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.rvl-merk-streep { display: inline-block; width: 22px; height: 3px; border-radius: 2px; background: #8dc100; }
@media (min-width: 992px) { .rvl-merk { left: 72px; top: 56px; font-size: 13px; gap: 10px; } .rvl-merk-streep { width: 28px; } }

.slogan-container { position: relative; width: 100%; padding: 0 24px 22px; }
.slogan-title {
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
  font-size: 30px; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em;
  opacity: 0; animation: rvl-opkomen .6s .15s cubic-bezier(.2,.7,.2,1) forwards;
}
.slogan-subtitle {
  display: none;
  font-size: 17px; font-weight: 400; line-height: 1.5; color: rgba(255, 255, 255, 0.86); max-width: 520px; margin-top: 16px;
  opacity: 0; animation: rvl-opkomen .6s .35s cubic-bezier(.2,.7,.2,1) forwards;
}
@media (min-width: 992px) {
  .slogan-container { padding: 0 72px 64px; }
  .slogan-title { font-size: 56px; max-width: 620px; }
  .slogan-subtitle { display: block; }
}
@media (min-width: 1280px) { .slogan-title { font-size: 64px; } }

/* ---------- aanmeldpaneel ---------- */
.main {
  position: relative; z-index: 1;
  flex: 1 1 auto;
  display: flex; flex-direction: column; justify-content: space-between;
  background: #ffffff;
  padding: 28px 24px 20px;
  margin-top: -18px; border-radius: 18px 18px 0 0;
}
@media (min-width: 992px) {
  .main { width: 42%; flex: 0 0 42%; margin-top: 0; border-radius: 0; padding: 56px 72px 40px; overflow-y: auto; }
}
.content { width: 100%; max-width: 420px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; flex: 1 1 auto; }
@media (min-width: 992px) { .content { margin: 0; justify-content: space-between; } }

.logo {
  display: block; width: 184px; height: 50px; flex: 0 0 auto;
  background: url('../images/logos/sgr6/10.png') no-repeat center center / 100% 100%;
}
@media (min-width: 992px) { .logo { width: 221px; height: 60px; } }

.rvl-form { display: flex; flex-direction: column; gap: 22px; }
.rvl-stap { display: flex; flex-direction: column; gap: 22px; animation: rvl-opkomen .45s cubic-bezier(.2,.7,.2,1) both; }
.content-header { display: flex; flex-direction: column; gap: 6px; }
.cta-title, .cta-subtitle { display: block; }
.cta-title { font-family: "Manrope", "Segoe UI", system-ui, sans-serif; font-size: 26px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; color: #16323a; }
@media (min-width: 992px) { .cta-title { font-size: 30px; } }
.cta-subtitle { font-size: 15px; line-height: 1.5; color: #5f6e76; }

.rvl-velden { display: flex; flex-direction: column; gap: 16px; }
.form-group { position: relative; display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: #16323a; }
.rvl-label-rij { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rvl-link { font-size: 13px; font-weight: 500; }

/* veld = kader met icoon links, invoer, en optioneel een knop/chevron rechts */
.rvl-veld {
  display: flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 6px 0 14px;
  border: 1.5px solid #d7dce0; border-radius: 10px; background: #ffffff;
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}
.rvl-veld:focus-within { border-color: #0081c5; box-shadow: 0 0 0 4px rgba(0, 129, 197, 0.14); }
.rvl-veld:focus-within .rvl-veld-icoon { color: #0081c5; }
.rvl-veld-icoon { flex: 0 0 auto; display: inline-flex; color: #8a979e; transition: color 150ms ease-out; }
.rvl-veld-chevron { flex: 0 0 auto; display: inline-flex; color: #8a979e; padding-right: 8px; pointer-events: none; }
.rvl-veld .form-control {
  flex: 1 1 auto; min-width: 0; height: 100%; border: 0; border-radius: 0; padding: 0;
  font: inherit; font-size: 15px; color: #16323a; background: transparent; box-shadow: none;
}
.rvl-veld .form-control:focus { border: 0; box-shadow: none; }
.rvl-veld .form-control::placeholder { color: #9aa7ad; }
.rvl-veld-select { padding-right: 0; position: relative; }
.rvl-veld-select select.form-control { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; }
.rvl-veld-select .rvl-veld-chevron { position: absolute; right: 6px; }
.rvl-veld-knop {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: #8a979e; cursor: pointer; transition: background 150ms ease-out, color 150ms ease-out;
}
.rvl-veld-knop:hover { background: #eef0f1; color: #16323a; }
.rvl-veld-knop .rvl-oog-dicht { display: none; }
.rvl-veld-knop.rvl-toont .rvl-oog-open { display: none; }
.rvl-veld-knop.rvl-toont .rvl-oog-dicht { display: inline; }

/* losse .form-control (wachtwoord-reset.php, authenticator-code) */
.form-control {
  display: block; width: 100%; height: 48px; padding: 0 14px;
  font: inherit; font-size: 15px; color: #16323a;
  border: 1.5px solid #d7dce0; border-radius: 10px; background: #ffffff;
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}
.form-control:focus { border-color: #0081c5; box-shadow: 0 0 0 4px rgba(0, 129, 197, 0.14); }
.form-control--username, .form-control--password, .form-control--email, .form-control--mfa { padding-left: 42px; }
.form-control-icon { pointer-events: none; position: absolute; left: 0; bottom: 0; height: 48px; width: 42px; background: center center no-repeat; opacity: 0.55; }
.form-control-icon--username { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238a979e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 3.6-6.5 8-6.5s8 2.5 8 6.5'/%3E%3C/svg%3E"); }
.form-control-icon--password { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238a979e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10' width='16' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); }
.form-control-icon--email { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238a979e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
.form-control-icon--mfa { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238a979e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2.5' width='10' height='19' rx='2'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"); }

/* authenticator-code: zes vakjes getekend achter één invoerveld */
.rvl-code {
  height: 58px; text-align: center; letter-spacing: 1.55em; padding-left: 1.55em; padding-right: 0;
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif; font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums;
  border-color: #d7dce0;
}
.rvl-code::placeholder { color: #d7dce0; letter-spacing: 1.55em; font-weight: 400; }
.rvl-hint { font-size: 12px; color: #8a979e; margin-top: 4px; }
.rvl-stappen { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #8a979e; }
.rvl-stap-bol { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font-size: 11px; font-weight: 700; }
.rvl-stap-bol-ok { background: #eef6d6; color: #5a7a00; }
.rvl-stap-bol-actief { background: #0081c5; color: #ffffff; }
.rvl-stap-actief { color: #16323a; font-weight: 600; }
.rvl-stap-lijn { width: 28px; height: 1px; background: #d7dce0; }
.rvl-auth-kop { flex-direction: row; align-items: flex-start; gap: 16px; }
.rvl-auth-kop > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rvl-auth-kop .cta-title { font-size: 26px; }
.rvl-auth-icoon { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px; background: #eaf5fb; color: #0081c5; display: inline-flex; align-items: center; justify-content: center; }
.rvl-auth-icoon-ok { background: #eef6d6; color: #5a7a00; }

/* ---------- knoppen ---------- */
.btn {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; border-radius: 10px; font-size: 15px; font-weight: 600; line-height: 1;
  cursor: pointer; user-select: none; text-decoration: none; overflow: hidden;
  transition: background-color 150ms ease-out, box-shadow 150ms ease-out, transform 150ms ease-out;
}
.btn > span { display: block; transform: translateY(0); opacity: 1; transition: all 225ms ease-in-out; }
.btn .loading-indicator { position: absolute; inset: 0; pointer-events: none; opacity: 0; transform: translateY(50px); transition: all 225ms ease-in-out; }
.btn .loading-spinner {
  position: absolute; inset: 0; display: block;
  background: center center / 20px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='32' height='32' fill='white'%3E%3Cpath opacity='.25' d='M16 0 A16 16 0 0 0 16 32 A16 16 0 0 0 16 0 M16 4 A12 12 0 0 1 16 28 A12 12 0 0 1 16 4'/%3E%3Cpath d='M16 0 A16 16 0 0 1 32 16 L28 16 A12 12 0 0 0 16 4z'/%3E%3C/svg%3E");
  animation: spin .8s infinite linear;
}
.btn.loading > span { opacity: 0; transform: translateY(-50px); }
.btn.loading .loading-indicator { transform: translateY(0); opacity: 1; }
.btn-primary, a.btn-primary {
  width: 100%; color: #ffffff; background-color: #0081c5;
  box-shadow: 0 6px 18px rgba(0, 129, 197, 0.28);
}
.btn-primary:hover, a.btn-primary:hover { background-color: #0072ad; color: #ffffff; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0, 129, 197, 0.34); }
.btn-primary:active, a.btn-primary:active { transform: none; }
.btn-sso, a.btn-sso {
  height: 48px; color: #16323a; background: #ffffff; border: 1.5px solid #d7dce0; font-size: 14px;
}
.btn-sso:hover, a.btn-sso:hover { color: #16323a; border-color: #b8c1c7; background: #f7f8f9; }
.btn-sso .loading-spinner { filter: invert(0.6); }
.rvl-sso { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rvl-sso-1 { grid-template-columns: 1fr; }
.rvl-scheiding { display: flex; align-items: center; gap: 12px; color: #8a979e; font-size: 12px; }
.rvl-scheiding span { flex: 1; height: 1px; background: #e6e9eb; }
.rvl-terug { display: inline-flex; align-items: center; gap: 6px; align-self: center; font-size: 13px; color: #5f6e76; }
.rvl-terug:hover { color: #16323a; }

/* fout: onder de velden, boven de knop */
.errormessage { display: none; font-size: 13px; line-height: 1.45; color: #b3261e; background: #fdecea; border: 1px solid #f5c2bd; border-radius: 10px; padding: 10px 12px; }
.errormessage.red, .errormessage:not(:empty) { display: block; }
.form-group.has-danger .form-control { border-color: #f2bc00; box-shadow: 0 0 4px 0 #f2bc00; }

/* ---------- voet ---------- */
.content-footer { margin-top: auto; padding-top: 8px; }
.footer-navigation { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-navigation-item { font-size: 12px; color: #8a979e; }
.footer-navigation-item + .footer-navigation-item { margin-top: 0; }
#resetPasswordButton, #loginButton, #mfaButton, #officeButton, #googleButton, #stadgentButton { display: flex; text-align: center; }
#mfa_token { display: flex; }

/* ---------- nieuws op het aanmeldscherm (nieuws.json) ---------- */
/* desktop: glaskaarten rechtsboven in het beeldpaneel; mobiel: enkel het eerste bericht onder de knoppen */
.rvl-nieuws {
  position: absolute; right: 72px; top: 56px; width: 400px;
  display: none; flex-direction: column; gap: 12px;
  opacity: 0; animation: rvl-opkomen .6s .5s cubic-bezier(.2,.7,.2,1) forwards;
}
@media (min-width: 992px) { .rvl-nieuws { display: flex; } }
@media (min-width: 992px) and (max-height: 760px) { .rvl-nieuws .rvl-nieuws-kaart + .rvl-nieuws-kaart { display: none; } }
.rvl-nieuws-kop { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.rvl-nieuws-kaart {
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px 18px; border-radius: 14px;
  background: rgba(6, 26, 43, 0.55); border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(3, 18, 30, 0.35);
  color: #ffffff;
}
.rvl-nieuws-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rvl-nieuws-chip {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.14); color: #ffffff;
}
.rvl-nieuws-opleiding .rvl-nieuws-chip { background: rgba(141, 193, 0, 0.22); color: #c9ef6b; }
.rvl-nieuws-nieuw .rvl-nieuws-chip { background: rgba(127, 208, 255, 0.22); color: #bfe7ff; }
.rvl-nieuws-onderhoud .rvl-nieuws-chip { background: rgba(246, 110, 0, 0.25); color: #ffc79a; }
.rvl-nieuws-datum { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: rgba(255, 255, 255, 0.7); white-space: nowrap; }
.rvl-nieuws-titel { font-family: "Manrope", "Segoe UI", system-ui, sans-serif; font-size: 16px; font-weight: 700; line-height: 1.25; margin: 0; }
/* tekst: standaard twee regels, "Lees meer" klapt open */
.rvl-nieuws-tekst {
  font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, 0.78); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rvl-nieuws-kaart.rvl-open .rvl-nieuws-tekst { display: block; -webkit-line-clamp: unset; overflow: visible; }
.rvl-nieuws-tekst a { color: #a6e04a; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.rvl-nieuws-tekst a:hover { color: #c9ef6b; }
.rvl-nieuws-meer {
  align-self: flex-start; background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.85); text-decoration: underline; text-underline-offset: 2px;
}
.rvl-nieuws-meer:hover { color: #ffffff; }
.rvl-nieuws-meer[hidden] { display: none; }
.rvl-nieuws-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #a6e04a; margin-top: 2px; }
.rvl-nieuws-link:hover { color: #c9ef6b; }
/* mobiel: compacte kaart in het witte paneel */
.rvl-nieuws-mobiel { display: block; }
@media (min-width: 992px) { .rvl-nieuws-mobiel { display: none; } }
.rvl-nieuws-mobiel .rvl-nieuws-kaart {
  background: #f7f8f9; border: 1px solid #e6e9eb; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  color: #16323a; padding: 14px 16px; border-radius: 12px;
}
.rvl-nieuws-mobiel .rvl-nieuws-chip { background: #eef0f1; color: #5f6e76; }
.rvl-nieuws-mobiel .rvl-nieuws-opleiding .rvl-nieuws-chip { background: #eef6d6; color: #5a7a00; }
.rvl-nieuws-mobiel .rvl-nieuws-nieuw .rvl-nieuws-chip { background: #eaf5fb; color: #006ba3; }
.rvl-nieuws-mobiel .rvl-nieuws-onderhoud .rvl-nieuws-chip { background: #ffe9d6; color: #b35200; }
.rvl-nieuws-mobiel .rvl-nieuws-datum { color: #7d8a90; }
.rvl-nieuws-mobiel .rvl-nieuws-titel { font-size: 15px; }
.rvl-nieuws-mobiel .rvl-nieuws-tekst { color: #5f6e76; }
.rvl-nieuws-mobiel .rvl-nieuws-tekst a { color: #006ba3; }
.rvl-nieuws-mobiel .rvl-nieuws-meer { color: #5f6e76; }
.rvl-nieuws-mobiel .rvl-nieuws-link { color: #006ba3; }
