.site-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(8, 12, 18, 0.92);
  backdrop-filter: blur(6px);
}

.site-auth-overlay[hidden] {
  display: none;
}

.site-auth-card {
  width: min(100%, 360px);
  border: 1px solid #2d3a4d;
  border-radius: 12px;
  background: linear-gradient(180deg, #1a2332 0%, #121a24 100%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  padding: 1.5rem 1.4rem 1.25rem;
  color: #e7edf4;
  font-family: "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

.site-auth-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.site-auth-card p {
  margin: 0 0 1rem;
  color: #8b9cb3;
  font-size: 0.88rem;
}

.site-auth-card label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  color: #8b9cb3;
}

.site-auth-card input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #2d3a4d;
  border-radius: 8px;
  background: #0f1419;
  color: #e7edf4;
  padding: 0.65rem 0.75rem;
  font-size: 0.95rem;
}

.site-auth-card input:focus {
  outline: none;
  border-color: #3d8bfd;
  box-shadow: 0 0 0 2px rgba(61, 139, 253, 0.25);
}

.site-auth-card button {
  width: 100%;
  margin-top: 0.85rem;
  border: none;
  border-radius: 8px;
  background: #2563c4;
  color: #fff;
  padding: 0.7rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.site-auth-card button:hover {
  background: #3d8bfd;
}

.site-auth-card button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.site-auth-error {
  min-height: 1.2rem;
  margin-top: 0.65rem;
  color: #f87171;
  font-size: 0.82rem;
}

.site-auth-expiry {
  margin-top: 0.75rem;
  color: #8b9cb3;
  font-size: 0.72rem;
  text-align: center;
}

body.site-auth-locked {
  overflow: hidden;
}
