/* styleFront.css - Makeover naar screenshot */
/* Load order: keep font link to Open Sans in headWelkomPage() as you already have. */

:root {
  --main-background: radial-gradient( circle at 65% 55%, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 35% ),
                     linear-gradient(90deg, #7A03E9 0%, #A435F4 28%, #AC43F8 55%, #C06FFA 100%);
}

* { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background: strong purple on the left, smoother to lighter radial glow right of center */
body {
  min-height: 100vh;
  margin: 0;
  /* stacked backgrounds: radial glow + linear purple sweep */
  background: var(--main-background);
  background-attachment: fixed;
  color: #222;
  overflow-x: hidden;
}

#brandHeader {
  display: flex;
  align-items: center;  /* tekst verticaal mooi gecentreerd naast logo */
  gap: 24px;            /* ruimte tussen logo en titel */
  margin-bottom: 60px;  /* ruimte naar companybox */
}

/* Page layout wrapper - left hero and right area */
#brandWrap {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6vh 6vw;
}

/* Left column: hero area */
#brandLeft {
  max-width: 980px;
  color: #ffffff;
  position: relative;
  padding-left: 4vw;

  display: flex;         /* zet ze naast elkaar */
  align-items: flex-end; /* logo en titel mooi uitlijnen */
  gap: 24px;             /* wat ruimte ertussen */
}

/* DK mark (large) - serif, bold and heavy */
#brandLogo {
  font-weight: 900;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 140px;
  line-height: 1;
  letter-spacing: -6px;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 4px 18px rgba(0,0,0,0.18);
  margin-bottom: 165px;  /* optisch iets hoger plaatsen */
}

#brandTitle > div {
  font-size: 70px;       /* dezelfde grootte voor boven en onder */
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  text-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

#brandTitle .titleStrong {
  font-size: 64px;
  font-weight: 900;
  color: #ffffff;
  margin-top: 4px;
  line-height: 0.95;
  letter-spacing: -1px;
  text-shadow: 0 6px 18px rgba(0,0,0,0.10);
  font-weight: 900;
  margin-bottom: 180px;
}

/* Small company box under the title */
#brandCompanyBox {
  margin-top: 34px;
}
#brandCompanyBox .companyLeft { text-align: left; }
.companyLabel {
  font-weight: 700;
  color: #fff;
  font-size: 24px;
}
.companyName {
  font-weight: 800;
  font-size: 16px;
  margin-top: 2px;
}

/* small company logo image */
.companyLogo img {
  height: 36px;
  width: auto;
  display: block;
}

.companyLogo {
  background: rgba(0,0,0,0);
  display: inline-flex;
  align-items: center;
  gap: 18px;
  border-radius: 10px;
  padding: 12px 18px;
  box-shadow: 0 14px 40px rgba(20,6,60,0.12);
  color: #333;
  align-items: center;
  justify-content: center;
  width: 57%;
  border: 1px solid #fff;
}

/* Right side background image under loginBox, covers right half, fades left */
#brandRight {
  position: fixed;
  top: 0;
  right: 0;
  width: 50vw;
  height: 100vh;
  z-index: 10;
  pointer-events: none;
}

/* ========================
   Login card styling
   ======================== */

/* Position login card fixed on the right (matches screenshot) */
#loginBox {
  width: 420px;
  position: fixed;
  right: 5.5vw;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  font-family: "Open Sans", Arial, sans-serif;
}

/* remove the old translucent element visually but keep DOM compatibility */
#loginBoxContentTransparant { display: none; }

/* main card */
#loginBoxContent {
  width: 100%;
  padding: 34px 36px;
  font-size: 14px;
  color: #333;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 40px 80px rgba(22,10,60,0.28);
  z-index: 61;
  position: relative;
  min-height: 320px;
}

/* header inside card - matches screenshot text style */
#loginBoxContent h2 {
  margin: 0 0 6px 0;
  font-size: 26px;
  font-weight: 900;
  color: #0f0f0f;
}

/* small description under heading */
#loginBoxContent p.description {
  margin: 6px 0 18px 0;
  color: #6a6a6a;
  font-size: 13px;
  line-height: 1.85;
}

/* Input fields (rounded, soft gray) */
.loginField {
  color: #4e4e4e;
  border: 0;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  font-size: 15px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: #f3f4f6;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

/* dark variant (used when TOONVIDEO present) */
.loginFieldDark {
  color: #fff;
  background-color: #09233e;
}

/* The primary action button — purple, pill-like */
.loginButton {
  background: linear-gradient(90deg,#6b00ff 0%,#9300ff 60%);
  border: 0;
  color: #fff;
  width: 100%;
  padding: 12px;
  font-size: 16px;
  margin-top: 6px;
  font-family: "Open Sans", Arial, sans-serif;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(115,0,255,0.18);
}

.languageFlags {
  display: flex;
  justify-content: space-between;
  max-width: 40%;
}

/* small links below (password forgotten, QR toggle) */
#loginBoxContent a {
  color: #8a76ff;
  font-size: 13px;
  display: block;
  margin-top: 12px;
  text-decoration: none;
}
#loginBoxContent a:hover { text-decoration: underline; }

/* language flags container styling */
#loginBoxContent img { height: 18px; vertical-align: middle; }

/* footer links along the bottom of the page (left aligned in screenshot center-bottom) */
#loginFooter {
  height: 24px;
  width: 650px;
  bottom: 30px;
  position: fixed;
  right: 50%;
  margin-right: -325px;
  z-index: 60;
  color: rgba(255,255,255,0.9);
}
#loginFooter a { font-size: 12px; color: rgba(255,255,255,0.92); text-decoration: none; }
#loginFooter a:hover { text-decoration: underline; }

/* error message class preserved */
.error_melding {
  color: #bf260d;
  margin-bottom: 10px;
  display: block;
}

/* anchor fallback */
a { color: #4e4e4e; text-decoration: none; }
a:hover { color: #3071BD; text-decoration: none; }

/* -----------------------
   Language dropdown (fixed corner)
   ----------------------- */
.lang-dropdown {
  position: fixed;
  top: 22px;
  right: 5.5vw;               /* matched loginBox right offset */
  z-index: 120;               /* boven loginBox (loginBox z-index 60) */
  font-family: "Open Sans", Arial, sans-serif;
  user-select: none;
}

/* Toggle button (current flag + caret) */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(20,6,60,0.12);
  transition: transform .12s ease, box-shadow .12s ease;
  height: 40px;
}

/* small hover / active */
.lang-toggle:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(20,6,60,0.14); }

/* current flag */
.lang-toggle .flag-current {
  height: 20px;
  width: auto;
  display: block;
  border-radius: 3px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

/* caret */
.lang-toggle .caret { color: rgba(111, 111, 111, 0.92); transform: translateY(1px); }

/* menu (hidden by default) */
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  min-width: 220px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), #ffffff);
  border-radius: 12px;
  box-shadow: 0 30px 70px rgba(10,8,40,0.22);
  padding: 8px;
  list-style: none;
  margin: 0;
  display: none;              /* shown by JS when open */
  overflow: hidden;
  transform-origin: top right;
  transition: transform .14s ease, opacity .14s ease;
  z-index: 121;
}

/* visible state toggled by JS adding .open on .lang-dropdown */
.lang-dropdown.open .lang-menu {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

/* each option */
.lang-option { margin: 6px 0; }

/* link inside option */
.lang-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  color: #222;
  font-weight: 600;
  font-size: 14px;
}

/* hover state for option */
.lang-link:hover {
  background: rgba(110, 64, 255, 0.08);
  color: #3a0d9a;
}

/* small flag inside menu */
.lang-link .flag-icon { height: 18px; width: auto; display:block; border-radius:3px; }

/* label style */
.lang-link .lang-label { color: #0f0f0f; font-weight:700; }

/* visually hidden text for screen readers */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* noscript fallback style */
.lang-noscript { position: fixed; top: 22px; right: 5.5vw; z-index: 120; }

/* Responsive tweak: op smalle schermen verplaats link naar links boven of inline */
@media (max-width: 680px) {
  .lang-dropdown { right: 18px; top: 14px; }
  .lang-menu { min-width: 180px; }
  .lang-toggle { height: 36px; padding: 6px 10px; }
}

/* Responsive tweaks so it doesn't break on mobile */
@media (max-width: 1200px) {
  /* Stack brandLeft content above and below loginBox on small screens */
  #brandWrap {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 2vw;
    height: auto;
  }
  #brandLeft {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 105%;
    max-width: 105%;
    padding: 0;
    margin-bottom: 32px;
    position: static;
    gap: 12px;
    background: var(--main-background);
    z-index: 5;
  }
  #brandLogo {
    margin-bottom: 12px;
    margin-top: 0;
    text-align: center;
  }
  #brandTitle > div,
  #brandTitle .titleStrong {
    text-align: center;
    margin-bottom: 0;
  }
  #brandCompanyBox {
    margin-top: 18px !important;
    margin-bottom: 0;
    text-align: center;
    bottom: 20% !important;
    left: unset !important;
  }
  #brandRight {
    -webkit-mask-image: none !important;
    mask-image: none !important;
    width: 100vw;
    z-index: 0;
  }
  #brandCompanyBox {
    border-radius: 24px;
    z-index: 5;
    padding: 12px 12px;
    bottom: 12% !important;
  }
  #loginBox {
    left: 50%;
    right: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    max-width: 800px;
    max-height: 90vh;
  }
}

@media (max-width: 620px) {
  #brandLogo { font-size: 68px; }
  #brandTitle > div:first-child { font-size: 28px; }
  #brandTitle .titleStrong { font-size: 34px; }
  .companyName { font-size: 14px; }
  #brandCompanyBox { display: none !important; }
  .logo {
    width: 100px !important;
    height: 100px !important;
  }
  #brandLogo {
    max-height: 100px;
    max-width: 100px;
  }
}

/*Hele, hele kleine schermpjes (Ik heb het over jullie, Iphone gebruikers! D; )*/
@media (max-width: 400px) {
  #brandLogo { font-size: 54px; margin-bottom: 8px; }
  #brandTitle > div:first-child { font-size: 22px; }
  #brandTitle .titleStrong { font-size: 28px; }
  #brandCompanyBox { display: none !important; }
  .companyLabel { font-size: 20px; }
  .companyName { font-size: 12px; }
  #loginBox { width: 90vw; }
  .logo { display: none; }
  #brandHeader { gap: unset !important;}
  #brandRight { background: var(--main-background);}

}

/* Geen idee hoe je dit voor elkaar zou krijgen, maar dit zorgt ervoor dat het meest essentiële wordt weergegeven, zelfs op de kleinste van de kleinste schermen */
@media (max-height: 430px) {
  #brandTitle { display: none !important; }
  #loginFooter { display: none !important; }
}