html.wx-auth-pending,
html.wx-auth-pending body {
  min-height: 100%;
  overflow: hidden;
}

html.wx-auth-pending body {
  background: #090805;
}

html.wx-auth-pending .layout {
  display: none !important;
}

/* Every application page stays invisible until the shared guard validates an
   active staff account. The gate is the only body child allowed while locked. */
html:not(.wx-authenticated) body > *:not(.treatment-auth-gate) {
  display: none !important;
}

html.wx-authenticated #login,
html.wx-authenticated #loginModal {
  display: none !important;
}

.treatment-auth-gate {
  position: fixed;
  z-index: 2147483647;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #f8f2df;
  background:
    radial-gradient(circle at 18% 14%, rgba(194, 151, 63, .18), transparent 34%),
    radial-gradient(circle at 82% 82%, rgba(118, 32, 29, .24), transparent 36%),
    linear-gradient(145deg, #070604, #171109 54%, #090705);
  font-family: inherit;
}

.treatment-auth-gate[hidden] {
  display: none !important;
}

.treatment-auth-card {
  width: min(440px, 100%);
  overflow: hidden;
  border: 1px solid rgba(218, 180, 91, .32);
  border-radius: 26px;
  background: rgba(20, 16, 10, .94);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .55), inset 0 1px rgba(255, 255, 255, .05);
  backdrop-filter: blur(22px);
}

.treatment-auth-accent {
  height: 4px;
  background: linear-gradient(90deg, #6d1716, #d6aa52, #f5dd9d, #d6aa52, #6d1716);
}

.treatment-auth-body {
  padding: 32px;
}

.treatment-auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.treatment-auth-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(218, 180, 91, .18));
}

.treatment-auth-brand strong,
.treatment-auth-brand span {
  display: block;
}

.treatment-auth-brand strong {
  color: #f6dfaa;
  font-size: 18px;
}

.treatment-auth-brand span {
  margin-top: 2px;
  color: #95896e;
  font-size: 11px;
  letter-spacing: .14em;
}

.treatment-auth-body h1 {
  margin: 0 0 8px;
  color: #fff8e9;
  font-size: clamp(24px, 6vw, 31px);
}

.treatment-auth-lead {
  margin: 0 0 24px;
  color: #b9ad94;
  line-height: 1.65;
}

.treatment-auth-form label {
  display: block;
  margin: 0 0 15px;
  color: #d9c9a7;
  font-size: 13px;
}

.treatment-auth-form input {
  box-sizing: border-box;
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  border: 1px solid rgba(218, 180, 91, .22);
  border-radius: 12px;
  outline: 0;
  color: #fff9e9;
  background: rgba(255, 255, 255, .045);
  font: inherit;
}

.treatment-auth-form input:focus {
  border-color: #d8ae5a;
  box-shadow: 0 0 0 3px rgba(216, 174, 90, .12);
}

.treatment-auth-submit {
  width: 100%;
  margin-top: 4px;
  padding: 13px 18px;
  border: 0;
  border-radius: 12px;
  color: #241505;
  background: linear-gradient(135deg, #f2d488, #bd8731);
  box-shadow: 0 12px 28px rgba(189, 135, 49, .2);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.treatment-auth-submit:disabled {
  cursor: wait;
  opacity: .65;
}

.treatment-auth-message {
  min-height: 21px;
  margin: 17px 0 0;
  color: #c7bca4;
  font-size: 13px;
  line-height: 1.55;
}

.treatment-auth-message.error {
  color: #ffaaa0;
}

.treatment-auth-security {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .075);
  color: #807660;
  font-size: 11px;
  line-height: 1.55;
}

@media (max-width: 520px) {
  .treatment-auth-gate {
    padding: 14px;
  }

  .treatment-auth-body {
    padding: 25px 21px;
  }
}
