* {
  box-sizing: border-box;
}

body, html {
  height: 100%;
  padding: 0;
}

#fondo_app {
  height: calc(100% - 61px);
  position: relative;
  background: url('/images/fondo_app.jpg') center no-repeat;
  background-size: cover;
  z-index: 0;
}

#login_form_content {
  padding: 20px;
  margin: 0;
  width: 417px;
  background: rgba(238, 239, 243, 0.6);
  overflow: hidden;
  border-radius: 5px;
  position: absolute;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -58%);
  -webkit-transform: translate(-50%, -58%);
  transform: translate(-50%, -58%);
  box-sizing: border-box;
  z-index: 10;
}

.logo-client {
  margin: auto;
  display: block;
}

#username_icon, #pass_icon {
  margin-top: 10px;
  position: relative;
}

#username_icon label, #pass_icon label {
  font-size: 1.5em;
  color: #283593;
}

#username_icon:after, #pass_icon:after {
  color: #9696AA;
  position: absolute;
  right: 20px;
  top: calc(50% - 13px);
  z-index: 1000;
  font-size: 20px;
  height: 45px;
  line-height: 45px;
  font-family: 'FontAwesome';
}

#username_icon:after {
  content: "\f2bd";
}

#pass_icon:after {
  content: "\f023";
}

.field_login_form {
  width: 100%;
  padding-left: 20px !important;
  padding-right: 60px !important;
  box-sizing: border-box;
  background: #fff;
  border: 0 !important;
  border-radius: 5px !important;
  margin: 0;
  font-size: 20px !important;
  margin-bottom: 10px;
}

#tablafooter {
  width: 100%;
}

#tablafooter p, #tablafooter #logo1, #tablafooter #logo2 {
  float: left;
}

#tablafooter p {
  width: 60%;
  text-align: center;
}

#tablafooter #logo1, #tablafooter #logo2 {
  width: 20%;
  text-align: center;
}

@-webkit-keyframes lineincrease {
  from {width: 0;}
  to {width: 100%;}
}

@keyframes lineincrease {
  from {width: 0;}
  to {width: 100%;}
}

.field_login_form:hover {
  -webkit-transition: width 1s ease-in-out;
  -moz-transition: width 1s ease-in-out;
  -o-transition: width 1s ease-in-out;
  transition: width 1s ease-in-out;
  border-bottom-color: #283593;
  border-width: 3px;
}

#button_login {
  margin-top: 10px;
  border: 0;
  height: 45px;
  background-color: #283593;
  color: #fff;
  font-size: 20px;
  width: 100%;
  border-radius: 5px;
}

#button_login:hover {
  background: #1a237e;
  cursor: pointer;
}

.btn {
  padding: 15px;
  border: 0;
  font-size: 20px;
  border-radius: 5px;
  text-decoration: none;
  text-align: center;
}
.btn-azure {
  padding: 20px !important;
  color: rgb(78, 78, 78) !important;
  background-color: #ffffff;
  border-color: rgb(78, 78, 78);
  border: solid 1px;
}
.btn-azure:hover {
  color: #1a237e !important;
  background-color: #f1f5fa;
  border-color: rgb(78, 78, 78);
  border: solid 1px;
}
.btn-block {
  display: block;
  width: 100%;
}

#tablafooter {
  position: relative;
  top: 10px;
  z-index: 10;
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.login-options .left {
  flex: 1;
}

.login-options .right {
  flex: 1;
  text-align: right;
}

#lang_select {
  font-size: 10px;
  background-color: transparent;
  color: #b99e92; /* Color igual que el de "Recordar contraseña" */
  border: 2px solid #dfdfdf; /* Bordes consistentes */
  border-radius: 5px;
}

#lang_select option {
  color: black; /* Mantener el color del texto de las opciones al seleccionar */
}

#remember_pass {
  font-size: 15px;
  color: #6b6b6b;
  text-decoration: none;
}

#remember_pass:hover {
  color: #4d4d4e;
}


.login__logo1 {
  position: absolute;
  top: 50px;
  left: 50px;
}

.login__logo2 {
  position: absolute;
  top: 50px;
  right: 50px;
}

.login__logo3 {
  position: absolute;
  bottom: 50px;
  right: 50px;
}

.login__logo4 {
  position: absolute;
  bottom: 50px;
  left: 50px;
}

@media screen and (max-width: 639px) {
  #fondo_app {
    display: none;
  }


  #login_form_content {
    float: initial;
    /* display: none; */
    height: initial;
    width: calc(100% - 40px);
    margin: 20px;
    position: initial;
    -ms-transform: initial;
    -webkit-transform: initial;
    transform: initial;
  }

  #login_form_content form {
    position: initial;
    left: 0%;
    top: 0;
    transform: initial;
  }

  #login_form_content .field_login_form {
    width: 100%;
  }

  #login_form_content::before {
    display: none;
  }

  #tablafooter {
    /* position: fixed; */
    padding: 20px;
    overflow: hidden;
    bottom: 0;
    top: initial;
    background-color: #fff;
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
  }
  
  #button_login {
    margin-top: 20px;
  }

  #remember_pass {
    margin-top: 30px;
  }

  #tablafooter p {
    font-size: .7em;
    text-align: center;
    margin: 10px 0;
  }

  #tablafooter p span a {
    display: block;
  }

  #tablafooter #logo1 {
    text-align: center;
  }

  #tablafooter #logo2 {
    width: 100%;
    text-align: center;
  }
}

@media screen and (max-width: 1023px) and (min-width: 640px) {
  #tablafooter p {
    font-size: .7em;
    width: 50%;
  }
  #tablafooter p span { display: block; }

  #tablafooter #logo1, #tablafooter #logo2 { width: 25%; }
}

@media screen and (min-width: 1024px) {
  /* reglas CSS */
}