html,
body {
  min-height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: "Raleway", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #eef4f9;
  color: #15385b;
}

body {
  display: block;
}

.aps-login-page {
  min-height: 100vh;
}

.aps-login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 0.94fr) minmax(520px, 1.06fr);
  background: #ffffff;
}

.aps-login-panel {
  min-width: 0;
}

.aps-login-panel-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 44px;
  background:
    radial-gradient(circle at top left, rgba(11, 97, 216, 0.06), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.aps-login-card {
  width: 100%;
  max-width: 370px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.aps-login-brand {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 34px;
}

.aps-login-logo {
  display: block;
  width: 100%;
  height: auto;
}

.aps-login-logo-vertical {
  max-width: 242px;
}

#f_ingreso {
  width: 100%;
}

.cuadro_texto {
  width: 100%;
  min-height: 46px;
  padding: 10px 2px 10px 2px;
  border: 0;
  border-bottom: 1px solid #b8c7d4;
  border-radius: 0;
  background: transparent;
  outline: none;
  box-shadow: none;
  font-size: 16px;
  color: #15385b;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cuadro_texto::placeholder {
  color: #8b9aac;
}

.cuadro_texto:focus {
  border-bottom-color: #0b61d8;
  box-shadow: inset 0 -1px 0 #0b61d8;
}

#btn_ingreso {
  width: 100%;
  min-height: 46px;
  margin-top: 28px;
  margin-bottom: 26px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, #163e64 0%, #123b63 60%, #0b61d8 100%);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: 0 12px 24px rgba(16, 49, 85, 0.16);
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

#btn_ingreso:hover,
#btn_ingreso:focus {
  filter: brightness(1.03);
  transform: translateY(-1px);
  outline: none;
}

.wsi {
  width: 100%;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  color: #6a7c8f;
}

.aps-login-panel-brand {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(12, 46, 82, 0.08), rgba(12, 46, 82, 0.24)),
    url("../img/login_derecho.jpg") center center / cover no-repeat;
}

.aps-login-panel-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(6, 22, 40, 0.58) 0%, rgba(6, 22, 40, 0.18) 28%, rgba(6, 22, 40, 0.04) 56%, rgba(6, 22, 40, 0) 100%);
}

.aps-login-brand-surface {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  z-index: 1;
  padding: 18px 34px 14px 34px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(2px);
}

.aps-login-brand-title {
  font-size: 48px;
  line-height: 0.95;
  font-weight: 300;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #ffffff;
  text-align: right;
}

.aps-login-brand-subtitle {
  margin-top: 4px;
  font-size: 58px;
  line-height: 0.9;
  font-weight: 800;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #ffffff;
  text-align: right;
}

.aps-login-brand-subtitle-strong {
  letter-spacing: -0.03em;
}

.modal {
  z-index: 1030 !important;
}

.modal-backdrop {
  z-index: 1020 !important;
}

@media screen and (max-width: 1150px) {
  .aps-login-shell {
    grid-template-columns: minmax(380px, 0.96fr) minmax(420px, 1.04fr);
  }

  .aps-login-panel-form {
    padding: 44px 34px;
  }

  .aps-login-brand-title {
    font-size: 42px;
  }

  .aps-login-brand-subtitle {
    font-size: 50px;
  }
}

@media screen and (max-width: 991px) {
  .aps-login-shell {
    grid-template-columns: 1fr;
    min-height: 100vh;
  }

  .aps-login-panel-brand {
    display: none;
  }

  .aps-login-panel-form {
    min-height: auto;
    padding: 38px 26px 44px 26px;
  }
}

@media screen and (max-width: 575px) {
  .aps-login-logo-vertical {
    max-width: 206px;
  }
}
