/* =========================================
   PANTALLA DE ACCESO
   MI SALUD EN TU BARRIO
========================================= */

.login-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;

  display: flex;
  flex-direction: column;

  background: #f2f8fc;
  color: #19364d;

  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

.login-page *,
.login-page *::before,
.login-page *::after {
  box-sizing: border-box;
}

/* ENCABEZADO */

.login-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  padding: 20px clamp(20px, 5vw, 80px);

  background: #ffffff;
  border-bottom: 1px solid #d5e5ef;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 18px;

  color: #19364d;
  text-decoration: none;
}

.login-logo {
  display: block;
  width: 76px;
  height: 90px;
  object-fit: contain;
  flex-shrink: 0;
}

.login-brand span {
  max-width: 240px;

  font-family: "Nunito", sans-serif;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.2;
}

.login-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;
  padding: 10px 16px;

  border: 1px solid #1479b8;
  border-radius: 12px;

  color: #075785;
  background: #ffffff;

  font-size: 17px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.login-back:hover {
  background: #eaf6fd;
}

/* CONTENIDO */

.login-main {
  flex: 1;

  display: grid;
  place-items: center;

  padding: 48px 20px;
}

.login-card {
  width: 100%;
  max-width: 520px;

  padding: clamp(24px, 5vw, 44px);

  background: #ffffff;
  border: 1px solid #d5e5ef;
  border-radius: 24px;

  box-shadow: 0 12px 40px rgb(25 54 77 / 7%);
}

.login-eyebrow {
  display: block;
  margin-bottom: 10px;

  color: #075785;

  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
}

.login-card h1 {
  margin: 0 0 14px;

  font-family: "Nunito", sans-serif;
  font-size: clamp(30px, 5vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: normal;
}

.login-description {
  margin: 0 0 30px;

  color: #465e70;

  font-size: 18px;
  line-height: 1.7;
}

/* FORMULARIO */

.login-field {
  margin-bottom: 24px;
}

.login-field label {
  display: block;
  margin-bottom: 8px;

  color: #19364d;

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

.login-field input {
  display: block;

  width: 100%;
  min-width: 0;
  min-height: 56px;

  padding: 14px 16px;

  border: 1px solid #829aaa;
  border-radius: 12px;

  color: #19364d;
  background: #ffffff;

  font: inherit;
  font-size: 18px;
  line-height: 1.4;
}

.login-field input::placeholder {
  color: #596f7e;
  opacity: 1;
}

.login-field input:focus {
  border-color: #1479b8;
}

.login-field input[aria-invalid="true"] {
  border: 2px solid #a12b22;
}

.login-field small {
  display: block;
  margin-top: 8px;

  color: #465e70;

  font-size: 15px;
  line-height: 1.6;
}

/* CONTRASEÑA */

.login-password-group {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.login-password-group input {
  flex: 1;
}

.login-show-password {
  flex-shrink: 0;

  min-height: 56px;
  padding: 10px 14px;

  border: 1px solid #1479b8;
  border-radius: 12px;

  color: #075785;
  background: #eaf6fd;

  font: inherit;
  font-size: 16px;
  font-weight: 700;

  cursor: pointer;
}

.login-show-password:hover {
  background: #dceffc;
}

/* RESPETAR ELEMENTOS OCULTOS */

.login-page [hidden] {
  display: none !important;
}

/* MENSAJES */

.login-message {
  margin: 0 0 18px;

  color: #075785;

  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.login-message:empty {
  display: none;
}

.login-message.error {
  color: #a12b22;
}

/* BOTÓN PRINCIPAL */

.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 56px;
  padding: 14px 20px;

  border: 2px solid transparent;
  border-radius: 12px;

  color: #ffffff;
  background: #1479b8;

  font-family: "Nunito", sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;

  cursor: pointer;
}

.login-submit:hover:not(:disabled) {
  background: #075785;
}

.login-submit:disabled {
  color: #ffffff;
  background: #627889;
  cursor: not-allowed;
}

/* AVISO DEL PROTOTIPO */

.login-demo-note {
  margin: 26px 0 0;
  padding: 16px;

  border: 1px solid #d5e5ef;
  border-radius: 12px;

  color: #465e70;
  background: #f2f8fc;

  font-size: 15px;
  line-height: 1.7;
}

/* PIE DE PÁGINA */

.login-footer {
  padding: 0 20px 24px;
  text-align: center;
}

.login-footer p {
  margin: 4px 0;

  color: #465e70;

  font-size: 15px;
  line-height: 1.6;
}

/* NAVEGACIÓN CON TECLADO */

.login-page a:focus-visible,
.login-page button:focus-visible,
.login-page input:focus-visible {
  outline: 3px solid #075785;
  outline-offset: 4px;
}

/* CELULARES */

@media (max-width: 600px) {

  .login-header {
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 20px;
  }

  .login-brand {
    gap: 12px;
  }

  .login-logo {
    width: 60px;
    height: 76px;
  }

  .login-brand span {
    max-width: 200px;
    font-size: 21px;
  }

  .login-back {
    font-size: 16px;
  }

  .login-main {
    padding: 28px 16px;
  }

  .login-card {
    padding: 28px 22px;
    border-radius: 20px;
  }

}

@media (max-width: 360px) {

  .login-password-group {
    flex-wrap: wrap;
  }

  .login-password-group input {
    flex-basis: 100%;
  }

  .login-show-password {
    width: 100%;
    min-height: 48px;
  }

}