/*************/
/*   LOGIN   */
/*************/

/* Modelo de caja unificado, limitado al bloque de login.
   Motivo: sin <!DOCTYPE> el navegador entra en quirks mode y aplica el modelo
   de caja antiguo (equivalente a border-box). Al declarar el DOCTYPE se pasa a
   standards mode y reglas como ".sl-login__input { width: 100%; padding-left:
   16px }" empezarian a sumar el padding al ancho (553px -> 571px). Fijando
   border-box el resultado es identico en ambos modos y coincide con la
   intencion original del diseno.
   El selector esta acotado a .sl-login para no alterar las paginas que se
   renderizan via template.ftl con las clases kc* del tema base. */
.sl-login,
.sl-login *,
.sl-login *::before,
.sl-login *::after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.sl-login {
  width: 100%;
  /* min-height (y no height) para que un contenido alto -- p. ej. los pasos del
     alta de TOTP -- haga crecer la pagina en lugar de desbordar el centrado
     flex, que recorta la cabecera y deja el footer fuera de la vista. */
  min-height: 100vh;
  min-height: 100dvh; /* descuenta la barra del navegador en movil */
  font-family: "Open Sans";
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  /* stretch en vez de center: el centrado vertical lo resuelve
     .sl-login__container, evitando desborde inalcanzable con scroll. */
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  position: relative;
}

.sl-login .sl-login__picture {
  width: 50%;
  background-image: url("../img/common/sl-login.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  /* top + bottom definen el alto: acompana a la pagina si esta crece. */
  top: 0;
  bottom: 0;
  right: 0;
  height: auto;
}

.sl-login .sl-login__container {
  width: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  /* height: auto + stretch del padre: ocupa el viewport cuando el contenido cabe
     y crece con el contenido cuando no, sin recortar nada. */
  height: auto;
  box-sizing: border-box;
  /* Aire vertical para que ni el titulo ni el footer queden pegados al borde. */
  padding-top: clamp(24px, 5vh, 64px);
  padding-bottom: clamp(24px, 5vh, 64px);
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  color: #001658;
}

.sl-login .sl-login__container .sl-login__title {
  font-size: 25px;
  color: #001658;
  font-weight: bold;
  margin-bottom: 69px;
}

.sl-login .sl-login__container .sl-login__form {
  width: 100%;
  max-width: 553px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin-bottom: 10%;
}

.sl-login .sl-login__container .sl-login__form .sl-login__input {
  width: 100%;
  background-color: #fafafa;
  font-size: 15px;
  font-weight: 300;
  color: #a4a4a4;
  height: 51px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  outline: none;
  border: none;
  margin-bottom: 25px;
  padding-left: 16px;
}

.sl-login .sl-login__container .sl-login__form .sl-login__signup {
  font-size: 16px;
  font-weight: 300;
  margin-bottom: 24px;
  margin-top: 36px;
}

.sl-login .sl-login__container .sl-login__form .sl-login__signup .sl-login__strong {
  font-weight: bold;
}

.sl-login .sl-login__container .sl-login__form .sl-login__forgetPass {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 52px;
}

.sl-login .sl-login__container .sl-login__form .sl-login__submit {
  font-size: 15px;
  color: #ffffff;
  font-weight: bold;
  height: 50px;
  min-width: 176px;
  background-color: #004ab7;
  text-align: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  border: none;
  outline: none;
  cursor: pointer;
}

@media screen and (max-width: 767px) {
  .sl-login .sl-login__container .sl-login__form .sl-login__submit {
    margin-bottom: 100px;
  }
}

.sl-login .sl-login__container .sl-login__form .sl-login__submit:hover {
  background-color: #001658;
}

.sl-login .sl-login__container .sl-login__copyright {
  font-size: 14px;
  font-weight: 300;
}

@media screen and (max-width: 1024px) {
  .sl-login .sl-login__picture {
    display: none;
  }

  .sl-login .sl-login__container {
    width: 100%;
  }
}

@media screen and (max-width: 767px) {
  .sl-login {
    text-align: center;
  }

  .sl-login .sl-login__container {
    /* Solo padding horizontal: el atajo "padding" anulaba el aire vertical
       definido arriba y el contenido quedaba pegado al borde en movil. */
    padding-left: 15px;
    padding-right: 15px;
  }
}

/*************/
/* FORGOTTEN */
/*************/

.sl-forgotten-password {
  width: 100%;
  height: 100vh;
  font-family: "Open Sans";
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  position: relative;
}

.sl-forgotten-password .sl-forgotten-password__picture {
  width: 50%;
  height: 100%;
  background-image: url("../img/common/sl-rememberpassword.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
}

.sl-forgotten-password .sl-forgotten-password__container {
  width: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  color: #001658;
}

.sl-forgotten-password .sl-forgotten-password__container .sl-forgotten-password__title {
  font-size: 25px;
  color: #001658;
  font-weight: bold;
  margin-bottom: 23px;
}

.sl-forgotten-password .sl-forgotten-password__container .sl-forgotten-password__text {
  font-size: 16px;
  text-align: center;
  font-weight: 300;
  max-width: 492px;
  width: auto;
  margin-bottom: 53px;
}

.sl-forgotten-password .sl-forgotten-password__container .sl-forgotten-password__form {
  width: 100%;
  max-width: 553px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.sl-forgotten-password .sl-forgotten-password__container .sl-forgotten-password__form .sl-forgotten-password__input {
  width: 100%;
  background-color: #fafafa;
  font-size: 15px;
  font-weight: 300;
  color: #a4a4a4;
  height: 51px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  outline: none;
  border: none;
  margin-bottom: 74px;
  padding-left: 16px;
}

.sl-forgotten-password .sl-forgotten-password__container .sl-forgotten-password__form .sl-forgotten-password__buttons {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  width: auto;
  margin-bottom: 20%;
}

.sl-forgotten-password .sl-forgotten-password__container .sl-forgotten-password__form .sl-forgotten-password__buttons .sl-forgotten-password__submit {
  font-size: 15px;
  color: #ffffff;
  font-weight: bold;
  height: 50px;
  min-width: 176px;
  background-color: #004ab7;
  text-align: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  border: none;
  outline: none;
  margin-right: 43px;
  cursor: pointer;
}

@media screen and (max-width: 767px) {
  .sl-forgotten-password .sl-forgotten-password__container .sl-forgotten-password__form .sl-forgotten-password__buttons .sl-forgotten-password__submit {
    margin-bottom: 30px;
    margin-right: 0px;
  }
}

.sl-forgotten-password .sl-forgotten-password__container .sl-forgotten-password__form .sl-forgotten-password__buttons .sl-forgotten-password__submit:hover {
  background-color: #001658;
}

.sl-forgotten-password .sl-forgotten-password__container .sl-forgotten-password__form .sl-forgotten-password__buttons .sl-forgotten-password__goback {
  display: block;
  font-size: 15px;
  cursor: pointer;
}

.sl-forgotten-password .sl-forgotten-password__container .sl-forgotten-password__form .sl-forgotten-password__buttons .sl-forgotten-password__goback:hover {
  text-decoration: underline;
}

@media screen and (max-width: 767px) {
  .sl-forgotten-password .sl-forgotten-password__container .sl-forgotten-password__form .sl-forgotten-password__buttons {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }
}

.sl-forgotten-password .sl-forgotten-password__container .sl-forgotten-password__copyright {
  font-size: 14px;
  font-weight: 300;
}



@media screen and (max-width: 1024px) {
  .sl-forgotten-password .sl-forgotten-password__picture {
    display: none;
  }

  .sl-forgotten-password .sl-forgotten-password__container {
    width: 100%;
  }
}

@media screen and (max-width: 767px) {
  .sl-forgotten-password {
    text-align: center;
  }

  .sl-forgotten-password .sl-forgotten-password__container {
    padding: 0px 15px;
  }
}


.sl-login a, .sl-forgotten-password a, .sl-login__strong a, .sl-forgotten-password__goback a {​​​​​​​​
  font-family: "Open Sans";
  font-size: 15px;
  font-weight: bold;
  font-stretch: normal;
  font-style: normal;
  line-height: normal;
  letter-spacing: normal;
  color: #001658;
}​​​​​​​​