/* 内容保护 — 访问密码 */
.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 90% 50% at 100% 0%, rgba(0, 120, 212, 0.08), transparent 50%),
    var(--bg, #f3f2f1);
  animation: auth-fade-in .35s ease both;
}

@keyframes auth-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes auth-card-in {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-card {
  width: 100%;
  max-width: 380px;
  padding: 36px 32px 28px;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e1dfdd);
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 12px 28px rgba(15, 60, 120, 0.08);
  text-align: center;
  animation: auth-card-in .45s cubic-bezier(.22, 1, .36, 1) .05s both;
}

.auth-logo {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 8px;
  background: var(--logo-frame-bg, #fff);
  border: 1px solid var(--logo-frame-border, #e1dfdd);
  padding: 6px;
  overflow: hidden;
}

.auth-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.auth-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text, #242424);
  margin-bottom: 6px;
}

.auth-desc {
  font-size: 13px;
  color: var(--text-muted, #605e5c);
  margin-bottom: 24px;
  line-height: 1.55;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-input {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line, #e1dfdd);
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text, #242424);
  background: var(--surface, #fff);
  transition: border-color .15s ease;
}

.auth-input:focus {
  outline: none;
  border-color: var(--blue, #0078d4);
  box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.15);
}

.auth-submit {
  height: 40px;
  border: none;
  border-radius: 4px;
  background: var(--blue, #0078d4);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, transform .2s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s ease;
}

.auth-submit:hover {
  background: var(--blue-hot, #106ebe);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 120, 212, 0.25);
}

.auth-submit:active {
  transform: translateY(0) scale(.98);
}

.auth-error {
  min-height: 18px;
  font-size: 12px;
  color: #a4262c;
  margin: 0;
}

html.is-locked .auth-gate ~ *,
html.is-locked body > :not(.auth-gate):not(script) {
  display: none !important;
}

html.is-locked body {
  overflow: hidden;
}
