/* Login overlay */
#auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(26, 20, 16, 0.94);
  backdrop-filter: blur(6px);
}
#auth-overlay.visible {
  display: flex;
}
body.auth-locked > *:not(#auth-overlay) {
  pointer-events: none;
  filter: blur(1px);
}

.auth-card {
  width: min(360px, 92vw);
  padding: 28px 28px 24px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  color: var(--text-hi);
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-mid);
  margin-bottom: 18px;
}
.auth-brand .brand-mark {
  font-size: 18px;
  color: var(--accent-hi);
}
.auth-card h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 600;
}
.auth-hint {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--text-lo);
}
.auth-card label {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mid);
}
.auth-card input {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 9px 11px;
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text-hi);
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}
.auth-card input:focus {
  outline: none;
  border-color: var(--accent-hi);
}
.auth-error {
  margin: 0 0 12px;
  padding: 8px 10px;
  background: rgba(184, 92, 74, 0.14);
  border: 1px solid rgba(184, 92, 74, 0.45);
  border-radius: 6px;
  color: #e08a7a;
  font-size: 13px;
}
.auth-submit {
  width: 100%;
  margin-top: 4px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: #1a120a;
}
.auth-submit:hover {
  background: var(--accent-hi);
}
