/* EL CLAN · Acceso. Cargar después de shared.css. */
.login-page {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.login-main {
  width: min(100% - 40px, 484px);
  align-self: center;
  margin: 48px auto;
}

.login-card {
  padding: 34px 38px 30px;
  box-shadow: 0 3px 8px #1e293b04, 0 22px 65px -24px #1e293b36;
}

.login-card::before {
  left: 38px;
  right: 38px;
  height: 4px;
}

.login-heading {
  text-align: center;
  margin-bottom: 25px;
}

.login-emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 24px;
  background: linear-gradient(140deg, #303843, #1e2329);
  color: #fff;
  border: 1px solid #454e5a;
  border-radius: 22px;
  box-shadow: 0 10px 24px -8px #1e232944;
}

.login-emblem::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 4px;
  left: 22px;
  bottom: -2px;
  border-radius: 4px;
  background: var(--clan-red);
}

.login-emblem .icon {
  width: 32px;
  height: 32px;
}

.login-heading h1 {
  font-size: clamp(2rem, 5vw, 2.4rem);
  margin-bottom: 10px;
}

.login-heading p:last-child {
  margin: 0;
  font-size: 1rem;
}

.login-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding: 6px;
  gap: 6px;
  margin: 0 0 27px;
  border: 1px solid #e6ebf1;
  border-radius: 13px;
  background: #f4f6f9;
  list-style: none;
}

.login-steps li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 9px;
  padding: 9px 8px;
  color: var(--muted);
  font-size: .8125rem;
  border-radius: 9px;
  overflow-wrap: anywhere;
  text-align: center;
}

.login-steps li[aria-current="step"] {
  color: var(--clan-red-hover);
  background: white;
  box-shadow: 0 2px 7px #0f172a09;
  font-weight: 650;
}

.login-steps .step-number {
  display: grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  border-radius: 7px;
  background: #e8edf3;
  color: #596779;
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
}

.login-steps [aria-current="step"] .step-number {
  background: var(--clan-red-soft);
  color: var(--clan-red-hover);
}

.login-card label {
  margin-top: 0;
}

#dni {
  letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
  min-height: 56px;
}

#dni::placeholder {
  letter-spacing: normal;
}

.login-card .input-wrap>.icon {
  top: 28px;
}

.login-card #continuar {
  min-height: 52px;
  margin-top: 26px;
}

.login-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 25px 0 0;
  padding-top: 21px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .8125rem;
}

.login-note .icon {
  width: 16px;
  height: 16px;
}

.redirect-card {
  text-align: center;
}

.redirect-card .brand {
  margin: 0 auto 26px;
  box-shadow: none;
}

.redirect-card .button-link {
  width: 100%;
}

@media (max-width: 480px) {
  .login-main {
    width: calc(100% - 28px);
    margin: 30px auto;
  }

  .login-card {
    padding: 29px 23px 25px;
  }

  .login-card::before {
    left: 23px;
    right: 23px;
  }

  .login-emblem {
    width: 62px;
    height: 62px;
    margin-bottom: 20px;
    border-radius: 19px;
  }

  .login-emblem::after {
    left: 18px;
  }

  .login-heading {
    margin-bottom: 22px;
  }

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