/* 全站登录 / 注册弹层 */

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

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

.site-auth {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
  position: fixed;
  z-index: 12050;
}

.site-auth__backdrop {
  backdrop-filter: blur(10px);
  background: rgba(10, 9, 11, 0.62);
  inset: 0;
  position: absolute;
}

.site-auth__panel {
  background: linear-gradient(155deg, #161518 0%, #0e0d0f 100%);
  border: 1px solid rgba(198, 167, 106, 0.22);
  border-radius: 1rem;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  color: #f1eade;
  max-width: 26rem;
  padding: 1.65rem 1.5rem 1.35rem;
  position: relative;
  width: 100%;
  z-index: 1;
}

.site-auth__close {
  background: transparent;
  border: none;
  color: rgba(241, 234, 222, 0.55);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  position: absolute;
  right: 0.85rem;
  top: 0.65rem;
}

.site-auth__eyebrow {
  color: #c8f542;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  margin: 0 0 0.45rem;
  text-transform: uppercase;
}

.site-auth__title {
  font-family: var(--dream-serif, "Noto Serif SC", serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.site-auth__tabs {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.site-auth__tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(198, 167, 106, 0.18);
  border-radius: 999px;
  color: rgba(241, 234, 222, 0.62);
  cursor: pointer;
  flex: 1;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 0.55em 0.75em;
}

.site-auth__tab.is-active {
  background: rgba(200, 245, 66, 0.1);
  border-color: rgba(200, 245, 66, 0.35);
  color: #f1eade;
}

.site-auth__form {
  display: grid;
  gap: 0.75rem;
}

.site-auth__field {
  display: grid;
  gap: 0.3rem;
}

.site-auth__field span {
  color: rgba(241, 234, 222, 0.55);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.site-auth__field input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(198, 167, 106, 0.2);
  border-radius: 0.55rem;
  color: #f1eade;
  font-size: 0.92rem;
  padding: 0.7em 0.85em;
}

.site-auth__field input:focus {
  border-color: rgba(200, 245, 66, 0.45);
  outline: none;
}

.site-auth__error {
  color: #ff8f8f;
  font-size: 0.78rem;
  line-height: 1.5;
  margin: 0;
}

.site-auth__submit {
  background: linear-gradient(135deg, #d4f55a 0%, #a8e020 100%);
  border: none;
  border-radius: 999px;
  color: #0a090b;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
  padding: 0.85em 1.25em;
}

.site-auth__submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.site-auth__foot {
  color: rgba(241, 234, 222, 0.42);
  font-size: 0.68rem;
  line-height: 1.6;
  margin: 0.85rem 0 0;
  text-align: center;
}

.site-auth__foot a {
  color: #e8d4a8;
}

header .site-nav__login.is-authed {
  border-color: rgba(200, 245, 66, 0.35);
}
