@font-face {
  font-family: "GabrielSansNormal";
  src: url("https://lib.morelos.gob.mx/fonts/Gabriel-Sans-Normal.otf");
}

@font-face {
  font-family: "GabrielSansBold";
  src: url("https://lib.morelos.gob.mx/fonts/Gabriel-Sans-Bold.otf");
}

html {
  height: 100% !important;
}

body {
  /*min-height: 100%!important;*/
  font-family: "GabrielSansNormal", Arial;
}

div.cortina {
  z-index: 2;
  background-color: rgba(111, 84, 153, 0.85);
  position: absolute;
  top: 0px;
  left: 0px;
  height: 100%;
  width: 100%;
}

legend {
  width: 100%;
  overflow: auto;
  /*background-color: red;*/
}

/**
* Estos son estilos para las diferentes resoluciones de pantalla
*/

/*Para pantallas pequenas*/

@media screen and (min-width: 360px) {
  img.img-index {
    width: 75% !important;
  }

  div.img-morelos {
    text-align: center;
  }

  div.img-secretaria {
    text-align: center;
  }

  p.titulo {
    font-size: 1.25rem !important;
  }
}

/*Para pantallas pequenas*/

@media screen and (min-width: 576px) {
  img.img-index {
    width: 75% !important;
  }

  div.img-morelos {
    text-align: center;
  }

  div.img-secretaria {
    text-align: center;
  }

  p.titulo {
    font-size: 1.25rem !important;
  }
}

/*Para pantallas medianas*/

@media screen and (min-width: 768px) {
  img.img-index {
    width: 75% !important;
  }

  div.img-morelos {
    text-align: left;
  }

  p.titulo {
    font-size: 2.5rem !important;
  }
}

/*Para pantallas largas*/

@media screen and (min-width: 992px) {
  img.img-index {
    width: 81% !important;
  }

  div.img-morelos {
    text-align: left;
  }

  p.titulo {
    font-size: 2.5rem !important;
  }
}

/*Para pantallas extra largas*/

@media screen and (min-width: 1200px) {
  img.img-index {
    width: 81% !important;
  }

  div.img-morelos {
    text-align: left;
  }

  p.titulo {
    font-size: 2.5rem !important;
  }
}

.login_wrapper {
  right: 0px;
  margin: 0px auto;
  margin-top: 5%;
  max-width: 350px;
  position: relative;
  min-height: 550px;
}

.inicioSesionUsuario_form,
.login_form {
  position: absolute;
  top: 0px;
  width: 100%;
}

.inicioSesionUsuario_form {
  z-index: 21;
  opacity: 0;
  width: 100%;
}

.login_form {
  z-index: 22;
}

.login_content {
  margin: 0 auto;
  padding: 25px 0 0;
  position: relative;
  text-align: center;
  text-shadow: 0 1px 0 #fff;
  min-width: 280px;
}

.login_content form {
  margin: 20px 0;
  position: relative;
}

.login_content h1 {
  font: normal 25px Helvetica, Arial, sans-serif;
  letter-spacing: -0.05em;
  line-height: 20px;
  margin: 10px 0 30px;
}

.login_content h1:before,
.login_content h1:after {
  content: "";
  height: 1px;
  position: absolute;
  top: 10px;
  width: 27%;
}

.login_content h1:after {
  background: #7e7e7e;
  background: -webkit-gradient(
    linear,
    left top,
    right top,
    from(#7e7e7e),
    to(white)
  );
  background: linear-gradient(to right, #7e7e7e 0%, white 100%);
  right: 0;
}

.login_content h1:before {
  background: #7e7e7e;
  background: -webkit-gradient(
    linear,
    right top,
    left top,
    from(#7e7e7e),
    to(white)
  );
  background: linear-gradient(to left, #7e7e7e 0%, white 100%);
  left: 0;
}

.login_content h1:before,
.login_content h1:after {
  content: "";
  height: 1px;
  position: absolute;
  top: 10px;
  width: 20%;
}

.login_content h1:after {
  background: #7e7e7e;
  background: -webkit-gradient(
    linear,
    left top,
    right top,
    from(#7e7e7e),
    to(white)
  );
  background: linear-gradient(to right, #7e7e7e 0%, white 100%);
  right: 0;
}

.login_content h1:before {
  background: #7e7e7e;
  background: -webkit-gradient(
    linear,
    right top,
    left top,
    from(#7e7e7e),
    to(white)
  );
  background: linear-gradient(to left, #7e7e7e 0%, white 100%);
  left: 0;
}

.login_content form input[type="text"],
.login_content form input[type="email"],
.login_content form input[type="password"] {
  border-radius: 3px;
  -webkit-box-shadow: 0 1px 0 #fff, 0 -2px 5px rgba(0, 0, 0, 0.08) inset;
  -ms-box-shadow: 0 1px 0 #fff, 0 -2px 5px rgba(0, 0, 0, 0.08) inset;
  -o-box-shadow: 0 1px 0 #fff, 0 -2px 5px rgba(0, 0, 0, 0.08) inset;
  box-shadow: 0 1px 0 #fff, 0 -2px 5px rgba(0, 0, 0, 0.08) inset;
  border: 1px solid #c8c8c8;
  color: #777;
  margin: 0 0 20px;
  width: 100%;
}

.login_content form input[type="text"]:focus,
.login_content form input[type="email"]:focus,
.login_content form input[type="password"]:focus {
  -webkit-box-shadow: 0 0 2px #aa77b4 inset;
  -ms-box-shadow: 0 0 2px #ed1c24 inset;
  -o-box-shadow: 0 0 2px #ed1c24 inset;
  box-shadow: 0 0 2px #a97aad inset;
  background-color: #fff;
  border: 1px solid #a878af;
  outline: none;
}

.clearfix:after,
form:after {
  /* content: ".";*/
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

h2 {
  font-size: 18px;
  font-weight: 700px;
}

.form-control {
  display: block;
  width: 100%;
  height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-purple {
  color: #fff;
  background-color: #6f5499;
  border-color: #6a3e8c;
}

.btn-purple:focus,
.btn-purple:hover {
  color: #fff;
  background-color: #503d6c;
}

.btn-outline-purple {
  color: #6a3e8c;
  border-color: #6a3e8c;
}

.btn-outline-purple:focus,
.btn-outline-purple:hover {
  color: #fff;
  background-color: #6a3e8c;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 12px;
}

.login_content form div a {
  font-size: 12px;
  margin: 10px 15px 0 0;
}

.clearfix:after,
form:after {
  /* content: ".";*/
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

button,
.buttons,
.btn,
.modal-footer .btn + .btn {
  margin-bottom: 5px;
  margin-right: 5px;
}

#registrarUsuario:target ~ .login_wrapper .inicioSesionUsuario_form,
#inicioSesionUsuario:target ~ .login_wrapper .login_form {
  z-index: 22;
  -webkit-animation-name: fadeInLeft;
  animation-name: fadeInLeft;
  -webkit-animation-delay: 0.1s;
  animation-delay: 0.1s;
}

#registrarUsuario:target ~ .login_wrapper .login_form,
#inicioSesionUsuario:target ~ .login_wrapper .inicioSesionUsuario_form {
  -webkit-animation-name: fadeOutLeft;
  animation-name: fadeOutLeft;
}

.animate {
  -webkit-animation-duration: 0.5s;
  -webkit-animation-timing-function: ease;
  -webkit-animation-fill-mode: both;
  -moz-animation-duration: 0.5s;
  -moz-animation-timing-function: ease;
  -moz-animation-fill-mode: both;
  -o-animation-duration: 0.5s;
  -o-animation-timing-function: ease;
  -o-animation-fill-mode: both;
  -ms-animation-duration: 0.5s;
  -ms-animation-timing-function: ease;
  -ms-animation-fill-mode: both;
  animation-duration: 0.5s;
  animation-timing-function: ease;
  animation-fill-mode: both;
}

.login_box {
  padding: 20px;
  margin: auto;
}

.login-form h2,
.registrarUsuario-form h2 {
  color: #696763;
  font-family: "GabrielSansNormal", sans-serif;
  font-size: 20px;
  font-weight: 300;
  margin-bottom: 30px;
}

.login-form form input,
.registrarUsuario-form form input {
  background: #f0f0e9;
  border: medium none;
  color: #696763;
  display: block;
  font-family: "GabrielSansNormal", sans-serif;
  font-size: 14px;
  font-weight: 300;
  height: 40px;
  margin-bottom: 10px;
  outline: medium none;
  padding-left: 10px;
  width: 100%;
}

#form {
  display: block;
  margin-bottom: 185px;
  margin-top: 185px;
  overflow: hidden;
}

.login-form form span {
  line-height: 25px;
}

.login-form form span input {
  width: 15px;
  float: left;
  height: 15px;
  margin-right: 5px;
}

.login-form form button {
  margin-top: 23px;
}

.login-form form button,
.registrarUsuario-form form button {
  background: #f44336;
  border: medium none;
  border-radius: 0;
  color: #ffffff;
  display: block;
  font-family: "GabrielSansNormal", sans-serif;
  padding: 6px 25px;
}

.login-form label input {
  border: medium none;
  display: inline-block;
  height: 0;
  margin-bottom: 0;
  outline: medium none;
  padding-left: 0;
}

.br_login {
  height: 60px;
}

.br_restablecer {
  height: 100px;
}

#footer {
  max-height: 150px;
  color: #888888;
  text-align: left;
  background-color: #222222;
  position: relative;
  margin-bottom: 0px;
  height: auto;
  padding-top: 10px;
  padding-bottom: 20px;
  padding: 0px 0;
  padding-left: 130px;
}

#footerLogin {
  margin-left: 0 !important;
  width: 100% !important;
  color: #888888;
  text-align: left;
  background-color: #222222;
  position: relative;
  margin-bottom: 0px;
  height: auto;
  padding-top: 10px;
  padding-bottom: 20px;
  padding: 0px 0;
  /*padding-left: 180px;*/
}

#footer-1 {
  color: #ffffff;
  text-align: left;
  background-color: #333333;
  position: relative;
  margin-bottom: 0px;
  height: auto;
  padding-top: 10px;
  padding-bottom: 20px;
  padding: 0px 0;
  padding-left: 30%;
}

#footer-2 {
  text-align: center;
  padding: 0px 0;
  background-color: #333333;
  color: #ffffff;
  margin-left: 220px;
  width: calc(100% - 210px);
}

body.swal2-height-auto {
  height: 100% !important;
}

/* Login visual refresh */
body.login-page {
  min-height: 100%;
  margin: 0;
  color: #263238;
  background: #f3f6f1;
}

body.login-page .login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
  min-height: 100vh;
  background: #f3f6f1;
}

body.login-page .login-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  padding: 48px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(16, 41, 31, 0.88), rgba(26, 75, 48, 0.58)),
    url("https://st3.depositphotos.com/4590583/18469/i/450/depositphotos_184697682-stock-photo-set-groats-grains-buckwheat-lentils.jpg") center / cover no-repeat;
}

body.login-page .login-visual:after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.3;
}

body.login-page .login-brand-panel {
  position: relative;
  z-index: 1;
  max-width: 560px;
  color: #fff;
}

body.login-page .login-logo {
  display: block;
  max-width: min(430px, 78vw);
  margin: 22px 0 18px;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.3));
}

body.login-page .login-brand-panel p {
  max-width: 470px;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

body.login-page .login-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #d7f1c8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.login-page .login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(243, 246, 241, 0.98)),
    #f3f6f1;
}

body.login-page .login_wrapper {
  width: min(100%, 430px);
  max-width: 430px;
  min-height: auto;
  margin: 0;
  right: auto;
}

body.login-page .login_form {
  position: relative;
  width: 100%;
}

body.login-page .login_content {
  min-width: 0;
  padding: 34px;
  text-align: left;
  text-shadow: none;
  background: #fff;
  border: 1px solid rgba(36, 55, 43, 0.1);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(32, 45, 38, 0.16);
}

body.login-page .login_content form {
  margin: 0;
}

body.login-page .login-form-header {
  margin-bottom: 26px;
}

body.login-page .login-form-header .login-kicker {
  border-color: rgba(34, 95, 54, 0.2);
  color: #2d6b3f;
  background: #eef7eb;
}

body.login-page .login_content h1 {
  margin: 14px 0 8px;
  color: #183426;
  font: 700 1.85rem/1.15 "GabrielSansBold", "GabrielSansNormal", Arial, sans-serif;
  letter-spacing: 0;
}

body.login-page .login_content h1:before,
body.login-page .login_content h1:after {
  display: none;
}

body.login-page .login-form-header p {
  margin: 0;
  color: #6f7d73;
  font-size: 0.95rem;
  line-height: 1.45;
}

body.login-page .login_content label {
  margin-bottom: 0.4rem;
  color: #37483e;
  font-size: 0.85rem;
  font-weight: 700;
}

body.login-page .login_content .input-group-text {
  min-width: 44px;
  justify-content: center;
  color: #4f744d;
  background: #f5f8f2;
  border-color: #dbe4d6;
  border-radius: 6px 0 0 6px;
}

body.login-page .login_content .form-control {
  height: 46px;
  color: #223027;
  border-color: #dbe4d6;
  border-radius: 6px;
  box-shadow: none;
}

body.login-page .login_content .input-group .form-control {
  border-left: 0;
  border-radius: 0 6px 6px 0;
}

body.login-page .login_content form input[type="text"],
body.login-page .login_content form input[type="password"] {
  margin: 0;
  color: #223027;
  border-color: #dbe4d6;
  box-shadow: none;
}

body.login-page .login_content form input[type="text"]:focus,
body.login-page .login_content form input[type="password"]:focus,
body.login-page .login_content select.form-control:focus {
  border-color: #558c44;
  box-shadow: 0 0 0 0.18rem rgba(85, 140, 68, 0.16);
}

body.login-page .login_content .form-text {
  margin-top: 0.45rem;
  line-height: 1.35;
}

body.login-page #btnLogin {
  min-height: 48px;
  margin: 8px 0 0;
  border: 0;
  border-radius: 6px;
  font-weight: 700;
  background: #2f6f3e;
  box-shadow: 0 12px 22px rgba(47, 111, 62, 0.22);
}

body.login-page #btnLogin:hover,
body.login-page #btnLogin:focus {
  background: #285d35;
  box-shadow: 0 14px 28px rgba(47, 111, 62, 0.28);
}

body.login-page #btnLogin i {
  margin-right: 0.35rem;
}

body.login-page .login-help {
  margin-top: 22px;
  text-align: center;
}

body.login-page .login-help a {
  margin: 0;
  color: #2f6f3e;
  font-size: 0.95rem;
  font-weight: 700;
}

body.login-page .login-footnote {
  margin-top: 18px;
  color: #738277;
  font-size: 0.78rem;
  text-align: center;
}

@media screen and (max-width: 991.98px) {
  body.login-page .login-shell {
    grid-template-columns: 1fr;
  }

  body.login-page .login-visual {
    min-height: 280px;
    padding: 32px 24px;
  }

  body.login-page .login-panel {
    min-height: auto;
    padding: 28px 18px 36px;
  }
}

@media screen and (max-width: 575.98px) {
  body.login-page .login-visual {
    min-height: 220px;
    align-items: center;
  }

  body.login-page .login-logo {
    max-width: 260px;
  }

  body.login-page .login-brand-panel p {
    display: none;
  }

  body.login-page .login_content {
    padding: 26px 20px;
  }
}

/* FivaAdmin login migration */
body.fiva-login-page {
  background:
    linear-gradient(135deg, rgba(248, 249, 253, 0.92), rgba(236, 242, 255, 0.88)),
    url("../fivaadmin/img/login-bg.jpg") center / cover fixed no-repeat;
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.fiva-login-page .login-shell {
  grid-template-columns: minmax(0, 1fr) minmax(390px, 500px);
  background: transparent;
}

body.fiva-login-page .login-visual {
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.78), rgba(41, 98, 255, 0.46)),
    url("../fivaadmin/img/login-bg.jpg") center / cover no-repeat;
}

body.fiva-login-page .login-kicker {
  color: #2962ff;
  background: rgba(41, 98, 255, 0.1);
  border-color: rgba(41, 98, 255, 0.16);
}

body.fiva-login-page .login-brand-panel .login-kicker {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
}

body.fiva-login-page .login-panel {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
}

body.fiva-login-page .login_content {
  border-color: rgba(237, 240, 247, 0.96);
  border-radius: 12px;
  box-shadow: 0 24px 58px rgba(34, 41, 47, 0.16);
}

body.fiva-login-page .login_content h1 {
  color: #2a2a2a;
}

body.fiva-login-page .login_content .input-group-text {
  color: #2962ff;
  background: #f5f7ff;
  border-color: #e3e8fb;
}

body.fiva-login-page .login_content .form-control,
body.fiva-login-page .login_content form input[type="text"],
body.fiva-login-page .login_content form input[type="password"] {
  border-color: #e3e8fb;
}

body.fiva-login-page .login_content .select2-container {
  width: 100% !important;
}

body.fiva-login-page .login_content .select2-container--default .select2-selection--single {
  height: 46px;
  border: 1px solid #e3e8fb;
  border-radius: 6px;
  background: #fff;
}

body.fiva-login-page .login_content .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding-left: 0.75rem;
  padding-right: 2.25rem;
  color: #223027;
  line-height: 44px;
}

body.fiva-login-page .login_content .select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 1px;
  right: 0.55rem;
  height: 44px;
}

body.fiva-login-page .login_content .select2-container--default.select2-container--open .select2-selection--single,
body.fiva-login-page .login_content .select2-container--default.select2-container--focus .select2-selection--single {
  border-color: #2962ff;
  box-shadow: 0 0 0 0.18rem rgba(41, 98, 255, 0.14);
}

body.fiva-login-page .select2-dropdown {
  overflow: hidden;
  border-color: #e3e8fb;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(34, 41, 47, 0.16);
}

body.fiva-login-page .select2-results__option {
  padding: 0.65rem 0.8rem;
  color: #405170;
  font-size: 0.9rem;
}

body.fiva-login-page .select2-results__option--highlighted[aria-selected] {
  color: #fff;
  background: #2962ff;
}

body.fiva-login-page .login_content form input[type="text"]:focus,
body.fiva-login-page .login_content form input[type="password"]:focus,
body.fiva-login-page .login_content select.form-control:focus {
  border-color: #2962ff;
  box-shadow: 0 0 0 0.18rem rgba(41, 98, 255, 0.14);
}

body.fiva-login-page #btnLogin {
  background: #2962ff;
  box-shadow: 0 12px 24px rgba(41, 98, 255, 0.24);
}

body.fiva-login-page #btnLogin:hover,
body.fiva-login-page #btnLogin:focus {
  background: #1f52dc;
  box-shadow: 0 16px 30px rgba(41, 98, 255, 0.3);
}

body.fiva-login-page .login-help a {
  color: #2962ff;
}

@media screen and (max-width: 991.98px) {
  body.fiva-login-page .login-shell {
    grid-template-columns: 1fr;
  }

  body.fiva-login-page .login-visual {
    min-height: 240px;
  }

  body.fiva-login-page .login-panel {
    min-height: auto;
    padding-top: 24px;
  }
}

@media screen and (max-width: 575.98px) {
  body.fiva-login-page .login-panel {
    padding: 18px 12px 28px;
  }

  body.fiva-login-page .login_content {
    padding: 22px 16px;
    border-radius: 10px;
  }

  body.fiva-login-page .login_content h1 {
    font-size: 1.45rem;
  }
}
