* {
  box-sizing: border-box;
}

body, html {
  height: 100%;
  padding: 0;
  overflow-x: hidden;
}

#fondo_app {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/images/fondo_app.jpg') left center no-repeat;
  background-size: 60vw auto;
  background-attachment: fixed;
  z-index: 0;
  pointer-events: none;
}

@media screen and (max-width: 1200px) {
  #fondo_app {
    background-size: 50vw auto;
  }
}

@media screen and (max-width: 992px) {
  #fondo_app {
    background-size: 40vw auto;
  }
}

@media screen and (max-width: 768px) {
  #fondo_app {
    background-size: 35vw auto;
  }
}

@media screen and (max-width: 640px) {
  #fondo_app {
    background-size: 25vw auto;
  }
}

#login_form_content {
  padding: 20px;
  margin: 0;
  width: 417px;
  max-width: 90%;
  background: rgba(238, 239, 243, 0.6);
  overflow: hidden;
  border-radius: 5px;
  position: fixed;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  z-index: 10;
}

@media screen and (max-width: 768px) {
  #login_form_content {
    width: 350px;
    margin-top: 0;
    margin-bottom: 0;
  }
}

@media screen and (max-width: 600px) {
  #login_form_content {
    width: 300px;
    margin-top: 0;
    margin-bottom: 0;
  }
}

@media screen and (max-width: 480px) {
  #login_form_content {
    width: 280px;
    margin-top: 0;
    margin-bottom: 0;
  }
}

@media screen and (max-width: 360px) {
  #login_form_content {
    width: 240px;
    margin-top: 0;
    margin-bottom: 0;
  }
}

#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: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 5;
  background-color: #fff;
  box-sizing: border-box;
  padding: 10px;
}

.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) {
  #login_form_content {
    width: calc(100% - 40px);
    max-width: 100%;
    position: fixed;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 0;
  }

  #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;
  }

  #button_login {
    margin-top: 20px;
  }

  #remember_pass {
    margin-top: 30px;
  }
}

@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 */
}
