.auth-wrap {
  display: flex;
  justify-content: center;
  padding: 48px 20px 60px;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.auth-brand h1 {
  font-size: 20px;
}

.auth-sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

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

.auth-form label {
  color: var(--muted);
  font-size: 13px;
}

.auth-form input {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  width: 100%;
}

.auth-form input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.auth-form button {
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 11px 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.auth-form button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.auth-msg {
  min-height: 20px;
  font-size: 14px;
  color: var(--accent);
}

.auth-msg[data-kind="error"] {
  color: var(--danger);
}

.auth-switch {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.auth-switch button {
  background: none;
  border: 0;
  color: var(--accent);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
