body.puerta-fondo {
  min-height: 100vh;
  margin: 0;
  padding: 40px 6%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background:
    linear-gradient(to right, rgba(4, 12, 28, .18) 0%, rgba(4, 12, 28, .55) 55%, rgba(4, 12, 28, .85) 100%),
    url("../img/BANNER_PRINCIPAL-JM.webp") left center / auto 100% no-repeat,
    #0B2038;
}

.puerta-panel {
  width: 100%;
  max-width: 470px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  padding: 34px 32px 28px;
  color: #E8F0FB;
  background: rgba(6, 18, 42, .82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(30, 128, 200, .32);
  border-radius: 18px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .55);
  opacity: 0;
  transform: translateY(8px);
  animation: puerta-entrada 200ms var(--ease-out) both;
}

.puerta-encabezado {
  margin-bottom: 20px;
  text-align: center;
}

.puerta-marca {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(30, 128, 200, .35));
}

.puerta-encabezado h1 {
  margin: 0 0 4px;
  color: #E8F0FB;
  font-size: var(--t-titulo);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.25;
}

.puerta-encabezado p {
  margin: 0;
  color: #A9C1DF;
  font-size: var(--t-base);
}

.puerta-instruccion {
  margin: 0 0 20px;
  color: #CFE0F2;
  font-size: var(--t-base);
  line-height: 1.55;
  text-align: center;
}

.puerta-aviso {
  margin-bottom: 18px;
}

.puerta-aviso-info {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(169, 193, 223, .22);
}

.puerta-panel .alerta-banner.alerta {
  --alerta-tono: #FFC4BE;
  --alerta-fondo: rgba(185, 28, 28, .2);
  --alerta-borde: rgba(252, 165, 165, .5);
  --alerta-circulo: rgba(185, 28, 28, .3);
  color: #FFECE9;
}

.puerta-panel .alerta-banner.alerta .alerta-banner-texto {
  color: #FFECE9;
}

.puerta-panel .alerta-banner.info {
  --alerta-tono: #B8D9F2;
  --alerta-fondo: rgba(38, 102, 151, .24);
  --alerta-borde: rgba(121, 189, 232, .48);
  --alerta-circulo: rgba(121, 189, 232, .22);
}

.puerta-panel .alerta-banner.info .alerta-banner-texto {
  color: #E8F0FB;
  font-size: var(--t-base);
  line-height: 1.5;
}

.puerta-formulario {
  display: grid;
  gap: 16px;
}

.puerta-usuario {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.puerta-etiqueta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  color: #CFE0F2;
  font-size: var(--t-base);
  font-weight: 600;
}

.puerta-etiqueta .icono {
  width: 16px;
  height: 16px;
  color: #A9C1DF;
}

.puerta-control {
  display: flex;
  min-height: 48px;
  overflow: hidden;
  border: 1px solid rgba(169, 193, 223, .48);
  border-radius: 10px;
  background: rgba(4, 12, 28, .56);
}

.puerta-control:focus-within {
  outline: 2px solid #79BDE8;
  outline-offset: 2px;
  border-color: #79BDE8;
}

.puerta-control input {
  width: 100%;
  min-width: 0;
  padding: 11px 13px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #F4F8FC;
  font-size: var(--t-base);
  caret-color: #79BDE8;
}

.puerta-control input:focus-visible,
.puerta-mostrar:focus-visible {
  outline: 0;
}

.puerta-entrar:focus-visible {
  outline: 2px solid #79BDE8;
  outline-offset: 2px;
}

.puerta-mostrar {
  display: grid;
  flex: 0 0 48px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #CFE0F2;
  cursor: pointer;
}

.puerta-mostrar .icono {
  width: 18px;
  height: 18px;
}

.puerta-entrar {
  width: 100%;
  min-height: 48px;
  justify-content: center;
}

.puerta-entrar:disabled {
  cursor: wait;
  opacity: .78;
}

@keyframes puerta-entrada {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 660px) {
  body.puerta-fondo {
    justify-content: center;
    padding: 24px 16px;
    background:
      linear-gradient(rgba(4, 12, 28, .58), rgba(4, 12, 28, .78)),
      url("../img/BANNER_PRINCIPAL-JM.webp") center / cover no-repeat,
      #0B2038;
  }

  .puerta-panel {
    max-height: none;
    padding: 28px 20px 22px;
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .puerta-panel {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
