/* =========================================================
   ORDIX CORE — app_auth.css
   Login / acceso público
   ========================================================= */

.auth-shell {
  min-height: calc(100vh - var(--public-header-height, 78px) - var(--public-footer-height, 56px));
  display: grid;
  place-items: center;
  padding: 64px 24px 80px;
}

.auth-card {
  width: 100%;
  max-width: 560px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
  padding: 52px 44px 38px;
}

.auth-card__brand {
  text-align: center;
  margin-bottom: 30px;
}

.auth-card__mark-img {
  display: block;
  width: 96px;
  height: auto;
  margin: 0 auto 22px;
}

.auth-card__logo-img {
  display: block;
  max-width: 260px;
  width: 100%;
  height: auto;
  margin: 0 auto 22px;
}

.auth-card__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(185, 78, 46, 0.10);
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-card__title {
  margin: 0;
  font-size: clamp(36px, 4vw, 44px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  text-align: center;
}

.auth-card__subtitle {
  margin: 14px 0 0;
  text-align: center;
  color: rgba(15, 23, 42, 0.66);
  font-size: 17px;
  line-height: 1.65;
}

.auth-card__alert {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(185, 28, 28, 0.16);
  background: rgba(185, 28, 28, 0.06);
  color: #991b1b;
  font-size: 14px;
}

.auth-form {
  display: grid;
  gap: 20px;
}

.auth-form__group {
  display: grid;
  gap: 9px;
}

.auth-form__group label {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.auth-form__group input,
.auth-input {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #0f172a;
  font-size: 16px;
  outline: none;
  box-sizing: border-box;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.auth-form__group input:focus,
.auth-input:focus {
  border-color: rgba(185, 78, 46, 0.42);
  box-shadow: 0 0 0 4px rgba(185, 78, 46, 0.10);
  background: #fffefd;
}

.auth-form__submit,
.auth-submit {
  width: 100%;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  border: 0;
  border-radius: 16px;
  background: #b94e2e;
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: background-color .2s ease, transform .12s ease;
}

.auth-form__submit:hover,
.auth-submit:hover {
  background: #a54528;
}

.auth-form__submit:active,
.auth-submit:active {
  transform: translateY(1px);
}

.auth-card__hint {
  margin: 22px 0 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.62);
}

.auth-card__hint a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 640px) {
  .auth-shell {
    min-height: auto;
    place-items: start center;
    padding: 32px 14px 44px;
  }

  .auth-card {
    max-width: none;
    border-radius: 22px;
    padding: 32px 22px 26px;
  }

  .auth-card__mark-img {
    width: 78px;
    margin-bottom: 18px;
  }

  .auth-card__logo-img {
    max-width: 210px;
    margin-bottom: 18px;
  }

  .auth-card__title {
    font-size: 32px;
  }

  .auth-card__subtitle {
    font-size: 15px;
  }

  .auth-form__group input,
  .auth-input,
  .auth-form__submit,
  .auth-submit {
    min-height: 52px;
  }
}