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

html.sabai-auth-pending #root {
  visibility: hidden;
}

#sabai-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: auto;
  background:
    radial-gradient(circle at 15% 15%, rgba(236, 195, 69, 0.18), transparent 34%),
    linear-gradient(145deg, #041d2c 0%, #062b3d 48%, #031722 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sabai-auth-card {
  width: min(100%, 460px);
  padding: 34px;
  border: 1px solid rgba(236, 195, 69, 0.38);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  color: #09283a;
}

.sabai-auth-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.sabai-auth-brand img {
  width: 124px;
  height: 124px;
  object-fit: contain;
}

.sabai-auth-eyebrow {
  margin: 0 0 7px;
  color: #a97900;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-align: center;
}

.sabai-auth-card h1 {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2.3rem);
  line-height: 1.1;
  text-align: center;
}

.sabai-auth-intro {
  margin: 13px auto 26px;
  max-width: 350px;
  color: #526573;
  line-height: 1.55;
  text-align: center;
}

#sabai-auth-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 800;
}

.sabai-auth-password-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px;
  overflow: hidden;
  border: 1px solid #b8c9d1;
  border-radius: 13px;
  background: #fff;
}

.sabai-auth-password-row:focus-within {
  border-color: #b78708;
  box-shadow: 0 0 0 4px rgba(183, 135, 8, 0.14);
}

#sabai-auth-password {
  min-width: 0;
  height: 52px;
  padding: 0 15px;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 1rem;
  background: transparent;
}

#sabai-auth-toggle {
  border: 0;
  border-left: 1px solid #d8e2e7;
  background: #f5f8fa;
  cursor: pointer;
  font-size: 1rem;
}

.sabai-auth-error {
  min-height: 22px;
  margin: 10px 0 5px;
  color: #b42318;
  font-size: 0.9rem;
  font-weight: 700;
}

.sabai-auth-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 5px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #d8ad32, #efcb5c);
  color: #062335;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(167, 119, 0, 0.22);
}

.sabai-auth-submit:hover:not(:disabled) {
  transform: translateY(-1px);
}

.sabai-auth-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.sabai-auth-help {
  margin: 20px 0 0;
  color: #6b7d87;
  font-size: 0.78rem;
  text-align: center;
}

#sabai-pms-logout {
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(236, 195, 69, 0.42);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
}

#sabai-pms-logout:hover {
  background: rgba(236, 195, 69, 0.14);
}

@media (max-width: 560px) {
  #sabai-auth-overlay {
    padding: 14px;
  }

  .sabai-auth-card {
    padding: 26px 20px;
    border-radius: 20px;
  }

  .sabai-auth-brand img {
    width: 104px;
    height: 104px;
  }
}