/*
 * NEXO : pages de connexion de la boutique privee (MakePrivateShop + LPS ProAccount).
 * Charge uniquement par override/modules/makeprivateshop/makeprivateshop.php.
 * Photo a gauche, formulaire a droite a partir de 992px ; photo masquee en dessous.
 * Les selecteurs "html body#..." passent devant la largeur fixe generee par MakePrivateShop.
 */

html body#authentication,
html body#password,
html body#registration,
html body#module-lpsproaccount-registrationb2b,
html body#module-lpsproaccount-registrationb2c,
html body#module-lpsproaccount-procmspage {
  max-width: none;
  margin: 0;
  background: #fff;
}

html body#authentication::before,
html body#password::before,
html body#registration::before,
html body#module-lpsproaccount-registrationb2b::before,
html body#module-lpsproaccount-registrationb2c::before,
html body#module-lpsproaccount-procmspage::before {
  content: "";
  display: none;
  background: #000 url(../img/nexo-login.jpg) 62% 50% / cover no-repeat;
}

/* Selecteur de langue, en haut de la colonne du formulaire */
.nexo-private-lang {
  display: flex;
  justify-content: flex-end;
  margin: 15px 0 0;
}

.nexo-private-lang .language-selector-wrapper {
  display: flex;
  align-items: center;
}

.nexo-private-lang .dropdown-menu {
  right: 0;
  left: auto;
}

@media (min-width: 992px) {
  html body#authentication::before,
  html body#password::before,
  html body#registration::before,
  html body#module-lpsproaccount-registrationb2b::before,
  html body#module-lpsproaccount-registrationb2c::before,
  html body#module-lpsproaccount-procmspage::before {
    display: block;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 50%;
  }

  html body#authentication > main,
  html body#password > main,
  html body#registration > main,
  html body#module-lpsproaccount-registrationb2b > main,
  html body#module-lpsproaccount-registrationb2c > main,
  html body#module-lpsproaccount-procmspage > main {
    position: relative;
    margin-left: 50%;
    width: 50%;
  }

  html body#authentication #wrapper,
  html body#password #wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
  }

  html body#authentication #wrapper > .container,
  html body#password #wrapper > .container,
  html body#registration #wrapper > .container,
  html body#module-lpsproaccount-registrationb2b #wrapper > .container,
  html body#module-lpsproaccount-registrationb2c #wrapper > .container,
  html body#module-lpsproaccount-procmspage #wrapper > .container {
    width: 100%;
    max-width: 640px;
  }

  /* fixed : #content-wrapper (col-xs-12) est deja positionne, on vise le coin de la page */
  .nexo-private-lang {
    position: fixed;
    top: 20px;
    right: 30px;
    margin: 0;
    z-index: 2;
  }
}
