.auth-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg, #0f1117);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.auth-card {
  background: var(--panel, #1a1b26);
  border: 1px solid var(--border, #2a2b3a);
  border-radius: var(--radius, 12px);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.auth-title {
  color: var(--ink, #e2e8f0);
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-form input {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border, #2a2b3a);
  border-radius: calc(var(--radius, 12px) / 2);
  background: var(--surface-deep, #13141f);
  color: var(--ink, #e2e8f0);
  font-size: 0.95rem;
}

.auth-form input::placeholder {
  color: var(--muted, #8892b0);
}

.auth-form input.hidden {
  display: none;
}

.auth-submit {
  padding: 0.7rem;
  border: none;
  border-radius: calc(var(--radius, 12px) / 2);
  background: var(--accent, #6c63ff);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.25rem;
}

.auth-submit:hover {
  opacity: 0.9;
}

.auth-error {
  color: var(--error-text, #ef4444);
  font-size: 0.85rem;
  margin: 0;
}

.auth-error.hidden {
  display: none;
}

.auth-toggle {
  color: var(--muted, #8892b0);
  font-size: 0.85rem;
  margin-top: 1rem;
}

.auth-toggle a {
  color: var(--accent, #6c63ff);
  text-decoration: none;
}

.auth-toggle a:hover {
  text-decoration: underline;
}
