/* ========================================
   MODE WISE ACADEMY: INLOGSCHERM (ETALAGE)

   Gesplitst scherm: links het beeld van de winkel, rechts een ivoren paneel
   met logo en formulier. Beeld, logo en bijschrift komen per profiel uit
   functions.php (mw_inlog_profiel) als CSS-variabelen:
     --inlog-beeld, --inlog-beeld-pos, --inlog-logo, --inlog-logo-b, --inlog-logo-h,
     --inlog-bijschrift-kleur; het bijschrift zelf als content op body::after.
   Deze pagina laadt fundament.css niet: WordPress bouwt het inlogscherm
   buiten de themasjablonen om. Voorstel goedgekeurd 15 november 2026.
   ======================================== */

:root {
  --inkt: #1A1A1A;
  --taupe: #998675;
  --taupe-d: #7A6A5B;
  --ivoor: #F6F3EE;
  --lijn: #DDD5CB;
  --grijs: #6E655E;
  --kop: "Comfortaa", Arial, sans-serif;
  --tekst: "Figtree", Arial, Helvetica, sans-serif;
  --veld: 44px;
}

/* ---------------------------------------------------------------- ondergrond */

body.login {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding-left: 58%;
  font-family: var(--tekst);
  color: var(--inkt);
  background: var(--ivoor);
}

/* Het beeld: de linkerkant van het scherm. */
body.login::before {
  content: "";
  position: fixed;
  inset: 0 42% 0 0;
  z-index: 0;
  /* Zacht verloop onderin, zodat het bijschrift op elke foto leesbaar is. */
  background:
    linear-gradient(to top, rgba(20, 17, 15, 0.55), rgba(20, 17, 15, 0) 28%),
    var(--inlog-beeld) var(--inlog-beeld-pos, center) / cover no-repeat;
  pointer-events: none;
}

/* Bijschrift linksonder in het beeld; de tekst komt uit het profiel. */
body.login::after {
  position: fixed;
  left: 48px;
  bottom: 40px;
  z-index: 1;
  font: 700 11px/1 var(--kop);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--inlog-bijschrift-kleur, #fff);
  pointer-events: none;
}

body.login #login {
  position: relative;
  z-index: 1;
  width: 340px;
  max-width: calc(100% - 48px);
  padding: 0;
  margin: 0 auto;
}

/* ---------------------------------------------------------------- logo */

body.login h1 {
  margin: 0 0 48px;
}

body.login h1 a {
  display: block;
  width: var(--inlog-logo-b, 230px);
  height: var(--inlog-logo-h, 122px);
  margin: 0;
  padding: 0;
  background: var(--inlog-logo) left center / contain no-repeat;
  text-indent: -9999px;
  overflow: hidden;
  outline-offset: 4px;
}

/* Bij een klant: klein het Mode Wise Academy-logo onder het formulier. */
body.login.mw-klant #login::after {
  content: "";
  display: block;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--lijn);
  height: 64px;
  background: var(--inlog-afzender) left bottom / auto 40px no-repeat;
}

/* ---------------------------------------------------------------- formulier */

body.login form {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.login form label {
  display: block;
  margin-bottom: 0.2rem;
  font: 500 11px/1.4 var(--kop);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grijs);
}

body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"] {
  box-sizing: border-box;
  width: 100%;
  height: var(--veld);
  margin: 0 0 1.5rem;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--inkt);
  border-radius: 0;
  font: 400 17px/1.2 var(--tekst);
  color: var(--inkt);
  background: transparent;
  box-shadow: none;
}

body.login input[type="text"]:focus,
body.login input[type="password"]:focus,
body.login input[type="email"]:focus {
  border-bottom: 2px solid var(--taupe-d);
  outline: none;
  box-shadow: none;
}

body.login .wp-pwd {
  position: relative;
}

body.login .wp-pwd input[type="text"],
body.login .wp-pwd input[type="password"] {
  padding-right: 2.75rem;
}

body.login .wp-hide-pw {
  top: 0;
  right: 0;
  width: var(--veld);
  height: var(--veld);
  color: var(--grijs);
}

body.login .wp-hide-pw:hover,
body.login .wp-hide-pw:focus {
  color: var(--taupe-d);
}

body.login .forgetmenot {
  display: flex;
  align-items: center;
  float: none;
  font-size: 0.875rem;
}

/* De labelregel hierboven maakt labels blok en hoofdletters; hier niet. */
body.login .forgetmenot label {
  display: inline;
  margin: 0;
  font: 400 14px/1 var(--tekst);
  letter-spacing: 0;
  text-transform: none;
  color: var(--inkt);
  cursor: pointer;
}

body.login .forgetmenot input[type="checkbox"] {
  margin: 0 0.5rem 0 0;
  border: 1px solid var(--inkt);
  border-radius: 0;
}

body.login .forgetmenot input[type="checkbox"]:checked {
  background: var(--inkt);
}

body.login .forgetmenot input[type="checkbox"]:checked::before {
  margin: -3px 0 0 -4px;
  color: #fff;
}

/* ---------------------------------------------------------------- knop */

body.login .submit {
  float: none;
}

body.login #wp-submit,
body.login .mw-uitlog-knop {
  float: none;
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 0;
  font: 700 12px/1 var(--kop);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #fff;
  background: var(--inkt);
  box-shadow: none;
  text-shadow: none;
  cursor: pointer;
}

body.login #wp-submit:hover,
body.login #wp-submit:focus,
body.login .mw-uitlog-knop:hover,
body.login .mw-uitlog-knop:focus {
  background: var(--taupe-d);
  color: #fff;
}

body.login #wp-submit:focus,
body.login .mw-uitlog-knop:focus {
  outline: 2px solid var(--taupe-d);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------- eronder */

body.login #nav {
  margin: 0;
  padding: 1rem 0 0;
  text-align: center;
  text-shadow: none;
}

body.login #nav a {
  font-size: 0.8125rem;
  color: var(--grijs);
  text-decoration: underline;
  text-underline-offset: 4px;
}

body.login #nav a:hover,
body.login #nav a:focus {
  color: var(--inkt);
}

/* Terug naar de site voegt niets toe: het is een gesloten omgeving. Taalkeuze ook niet. */
body.login #backtoblog,
body.login .language-switcher {
  display: none;
}

/* ---------------------------------------------------------------- meldingen */

body.login .notice,
body.login #login_error,
body.login .message,
body.login .success {
  box-sizing: border-box;
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-left: 3px solid var(--taupe-d);
  border-radius: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--inkt);
  background: #fff;
  box-shadow: none;
}

body.login #login_error {
  border-left-color: #B42318;
}

body.login .notice a,
body.login #login_error a,
body.login .message a {
  color: var(--inkt);
}

/* ---------------------------------------------------------------- uitloggen */

body.login .mw-uitlog .message {
  margin-bottom: 1.25rem;
}

/* De knop is een <a>, geen <input>; die centreert zijn tekst niet vanzelf. */
body.login .mw-uitlog-knop {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* ========================================
   RUIMTE ONDER 'ONTHOUD MIJ'

   WordPress zet zelf margin-bottom:0 op .forgetmenot met een selector van drie
   klassen. Via de id van het formulier is het beslecht zonder !important.
   ======================================== */

body.login #loginform .forgetmenot {
  margin-block: 0 1.75rem;
}

body.login #loginform .submit {
  margin: 0;
  padding: 0;
}

/* ---------------------------------------------------------------- smal scherm */

@media (max-width: 800px) {
  body.login {
    justify-content: flex-start;
    padding-left: 0;
    padding-top: 38vh;
  }
  body.login::before {
    inset: 0 0 auto 0;
    height: 34vh;
  }
  body.login::after {
    left: 24px;
    bottom: auto;
    top: calc(34vh - 32px);
  }
  body.login #login {
    width: auto;
    max-width: none;
    margin: 0 24px;
    padding-bottom: 40px;
  }
  body.login h1 {
    margin-bottom: 32px;
  }
}
