/***************************************************************************/
/* Base                                                                    */
/***************************************************************************/

/* styles-helpers.css */
.hidden {
  display: none !important;
}

/* styles-layout.css */
.degrade_normal {
  background: rgb(123, 146, 10);
  background: var(--degrade-principal-1);
}

.fond_bac_a_sable {
  background: var(--env-2);
}

.fond_dev {
  background: var(--env-1);
}

.container-full-height {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* styles-buttons.css */
.button {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  user-select: none;
  border: none;
  cursor: pointer;
  border-radius: var(--arrondi-bouton-01);
  padding: 0.5rem 1.3rem;
  font-weight: 500;
  font-size: var(--font-size-button-3);
  transition: var(--transition-2);
  border: 2px solid rgba(0, 0, 0, 0);
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.button-primary {
  background: var(--primary-2);
  color: #fff;
  border-radius: var(--arrondi-bouton-20);
  border-color: var(--primary-2);
}

.button-primary:not(.disabled, .btn-loading):hover {
  background: #fff;
  color: var(--primary-2);
}

/***************************************************************************/
/* Page login                                                              */
/***************************************************************************/

.page-login {
  user-select: none;
}

.page-login .logo {
  margin-bottom: 6vh;
}

.page-login .logo svg,
.page-login .logo img {
  width: auto;
  height: 12vh;
}

.contenu-page-login {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
}

.txt-welcome {
  text-align: center;
  width: 28vw;
  margin-bottom: 4vh;
  color: var(--blanc-1);
  line-height: 1.3;
}

.txt-welcome h2 {
  font-size: var(--font-size-title-4);
  margin: 0;
  margin-bottom: 1.5vh;
  /* Bloc de reference du trait decoratif ::after ci-dessous */
  position: relative;
}

.txt-welcome h2::after {
  content: "";
  position: absolute;
  top: 105%;
  left: 50%;
  width: 100px;
  margin-left: -50px;
  height: 1px;
  background: var(--blanc-1);
}

.container-login,
.box-login {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
}

.container-login a {
  color: var(--blanc-1);
}

.a-lost-password {
  margin-top: 3vh;
}

.container-login a span {
  color: var(--primary-2);
}

.box-login {
  background: var(--blanc-1);
  color: var(--primary-2);
  width: 24vw;
  height: 24vw;
  border-radius: 50%;
}

.box-login form {
  display: flex;
  flex-direction: column;
  width: 15vw;
}

.box-login.fwf_form input[type="text"],
.box-login.fwf_form input[type="password"] {
  font-size: var(--font-size-input-4);
  padding: var(--padding-input-4);
}

/* Checkbox "Se souvenir de moi" : structure WordPress (input dans label)
   Différent de la structure Vue (input + label). On cible #rememberme pour éviter
   d'afficher en double la checkbox Vue si on met opacity:1 sur toutes les checkbox.
   Taille réduite à 16px car 27px est trop grand pour la page login. */
.box-login.fwf_form input[type="checkbox"]#rememberme {
  opacity: 1;
  position: relative;
  visibility: visible;
  width: 16px;
  height: 16px;
}

.box-login.fwf_form label {
  line-height: 1;
}

.box-login p {
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 0;
}

.box-login * + p {
  margin-top: 1rem;
}

#fwf_show_pdw {
  position: absolute;
  right: 0;
  top: 16px;
  bottom: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#fwf_show_pdw svg {
  height: 20px;
  width: auto;
}

/* Ecrans moyens et petits */
@media (min-width: 992px) and (max-width: 1600px) {
  .page-login .logo {
    margin-bottom: 14vh;
  }

  .page-login .logo svg {
    height: 18vh;
  }

  .contenu-page-login {
    flex-direction: row;
    width: 80%;
  }

  .contenu-page-login > * {
    flex: 1;
  }

  .txt-welcome {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding-right: 20%;
    text-align: left;
    height: 100%;
    padding-bottom: 5vh;
  }

  .txt-welcome p {
    text-align: left !important;
  }

  .box-login {
    width: 31vw;
    height: auto;
    padding: 2rem 0;
    border-radius: var(--arrondi-2);
  }

  .txt-welcome h2::after {
    left: 0;
    margin: 0;
  }
}

/* Smartphones et tablettes */
@media (max-width: 991px) {
  /* Pas de scroll : tout (logo + zone de login) tient dans l'ecran.
     styles-main force html en overflow-y: scroll, on l'annule ici. */
  html,
  body {
    overflow: hidden;
  }

  .page-login {
    display: flex;
    /* 100vh inclut la barre d'adresse mobile et fait deborder ; dvh suit la hauteur reellement visible */
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  /* Le logo prend la place restante et retrecit si l'ecran est bas (min-height: 0
     autorise le flex item a descendre sous la taille de son contenu) */
  .page-login .logo {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    padding: 1rem 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .page-login .logo svg,
  .page-login .logo img {
    width: 70vw;
    height: 100%;
    max-height: 200px;
    object-fit: contain;
  }

  .page-login .contenu-page-login {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
  }

  .page-login .container-login {
    width: 95%;
    padding-bottom: 0.5rem;
  }

  .page-login .container-login .box-login {
    width: 100%;
    border-radius: var(--arrondi-1);
    height: auto;
    padding: 1rem;
  }

  .box-login form {
    width: 100%;
  }

  .txt-welcome {
    display: none;
  }
}
