:root {
  --login-orange: #c94a16;
  --login-orange-dark: #a83a10;
  --login-cream: #fff7e6;
  --login-slate: #263746;
  --login-muted: #6b7785;
  --login-border: #dce3e8;
}

html,
body {
  min-height: 100%;
  margin: 0;
  font-family: "Raleway", sans-serif;
}

body.login-page {
  min-width: 320px;
  color: var(--login-slate);
  background: #fff;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  background-color: #fff;
  background-image: url("../img/bida_login.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.login-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44%;
  min-width: 470px;
  margin-right: auto;
  padding: 40px clamp(32px, 5vw, 92px) 28px;
}

#acceso {
  width: min(100%, 430px);
}

.login-card {
  width: 100%;
  padding: 34px 38px 26px;
  border: 1px solid rgba(220, 227, 232, 0.86);
  border-top: 4px solid var(--login-orange);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(38, 55, 70, 0.09);
  backdrop-filter: blur(4px);
}

.login-alert {
  width: 100%;
  margin-bottom: 20px;
  border: 1px solid #f0b8a0;
  border-radius: 10px;
  background: #fff4ef;
  color: #7f2c0e;
  font-size: 0.9rem;
}

.login-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.login-brand-crop {
  position: relative;
  display: block;
  width: 178px;
  height: 68px;
  overflow: hidden;
}

.login-brand-crop img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220px;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
}

.login-heading {
  margin-bottom: 26px;
  text-align: center;
}

.login-eyebrow {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--login-orange);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.login-heading h1 {
  margin: 0 0 8px;
  color: var(--login-slate);
  font-size: clamp(1.7rem, 2.2vw, 2.05rem);
  font-weight: 800;
}

.login-heading p {
  margin: 0;
  color: var(--login-muted);
  font-size: 0.91rem;
  line-height: 1.5;
}

#f_ingreso {
  width: 100%;
}

.login-field {
  position: relative;
  margin-bottom: 18px;
}

.login-field-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 16px;
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  color: var(--login-orange);
  transform: translateY(-50%);
  pointer-events: none;
}

.login-field-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.cuadro_texto {
  width: 100%;
  height: 52px;
  padding: 0 16px 0 49px;
  border: 1px solid var(--login-border);
  border-bottom: 2px solid #bdc8d0;
  border-radius: 9px;
  outline: none;
  background: var(--login-cream);
  color: var(--login-slate);
  font-size: 0.93rem;
  font-weight: 600;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.cuadro_texto::placeholder {
  color: #7a8490;
  opacity: 1;
}

.cuadro_texto:hover {
  border-color: #c9d2d9;
  border-bottom-color: var(--login-orange);
}

.cuadro_texto:focus {
  border-color: var(--login-orange);
  background: #fffdf8;
  box-shadow: 0 0 0 3px rgba(201, 74, 22, 0.12);
}

.login-field:focus-within .login-field-icon {
  color: var(--login-orange-dark);
}

#btn_ingreso {
  width: 100%;
  height: 50px;
  margin: 18px 0 24px;
  border: 0;
  border-radius: 9px;
  background: var(--login-orange);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

#btn_ingreso:hover {
  background: var(--login-orange-dark);
  transform: translateY(-1px);
}

#btn_ingreso:focus-visible {
  outline: 3px solid rgba(201, 74, 22, 0.26);
  outline-offset: 3px;
}

.wsi {
  width: 100%;
  color: #8a95a1;
  font-size: 0.68rem;
  line-height: 1.5;
  text-align: center;
}

.modal {
  z-index: 1060 !important;
}

.modal-backdrop {
  z-index: 1050 !important;
}

#recover_password .modal-header {
  border: 0;
  background: var(--login-slate);
  color: #fff;
}

#recover_password .modal-header .btn-close {
  filter: brightness(0) invert(1);
}

#recover_password .btn-primary {
  border-color: var(--login-orange);
  background: var(--login-orange);
}

#recover_password .form-control:focus {
  border-color: var(--login-orange);
  box-shadow: 0 0 0 0.2rem rgba(201, 74, 22, 0.14);
}

@media (max-width: 1100px) {
  .login-shell {
    background-position: center;
  }

  .login-form-panel {
    width: 48%;
    min-width: 440px;
    padding-right: 34px;
    padding-left: 34px;
  }
}

@media (max-width: 820px) {
  .login-shell {
    align-items: center;
    min-height: 100vh;
    padding: 34px 20px;
    background-position: 67% center;
  }

  .login-shell::before {
    position: fixed;
    inset: 0;
    content: "";
    background: rgba(255, 255, 255, 0.72);
  }

  .login-form-panel {
    position: relative;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
  }

  #acceso {
    width: min(100%, 430px);
    margin: 0 auto;
  }

  .login-card {
    background: rgba(255, 255, 255, 0.97);
  }
}

@media (max-width: 480px) {
  .login-shell {
    padding: 20px 14px;
  }

  .login-card {
    padding: 26px 22px 22px;
    border-radius: 14px;
  }

  .login-brand-crop {
    width: 154px;
    height: 58px;
  }

  .login-brand-crop img {
    width: 192px;
  }

  .login-heading {
    margin-bottom: 22px;
  }

  .cuadro_texto,
  #btn_ingreso {
    height: 48px;
  }
}
