:root {
  --auth-bg: #1a2b24;
  --auth-panel: #243830;
  --auth-border: #355649;
  --auth-text: #eef7f2;
  --auth-muted: #9bb8a9;
  --auth-accent: #42b983;
  --auth-accent-hover: #53c794;
  --auth-danger: #f66;
  --auth-radius: 10px;
  --auth-font: Source Sans Pro, Helvetica Neue, Arial, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

#auth-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 20% 15%, rgba(66, 185, 131, 0.22), transparent 50%),
    var(--auth-bg);
  font-family: var(--auth-font);
  color: var(--auth-text);
}

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

.auth-card {
  width: min(400px, 100%);
  padding: 32px 28px 28px;
  background: var(--auth-panel);
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.auth-card h1 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  font-weight: 300;
}

.auth-card p {
  margin: 0 0 22px;
  color: var(--auth-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.auth-card label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: var(--auth-muted);
}

.auth-card input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid var(--auth-border);
  border-radius: 8px;
  background: #1a2b24;
  color: var(--auth-text);
  font-size: 1rem;
  outline: none;
}

.auth-card input[type="password"]:focus {
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 3px rgba(66, 185, 131, 0.22);
}

.auth-card button {
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 999px;
  background: var(--auth-accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.auth-card button:hover {
  background: var(--auth-accent-hover);
}

.auth-error {
  min-height: 1.25rem;
  margin: 10px 0 0;
  color: var(--auth-danger);
  font-size: 0.85rem;
}

.auth-hint {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--auth-border);
  color: var(--auth-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.auth-hint code {
  color: #b7ebc9;
}
