.auth-body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.auth-shell {
  width: min(420px, 100%);
}

.auth-logo {
  display: inline-flex;
  margin-bottom: 20px;
}

.auth-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px 24px;
  box-shadow: var(--shadow);
}

.auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg);
  border-radius: 12px;
  margin-bottom: 22px;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 650;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
}

.auth-tab.is-active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.auth-title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.auth-sub {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.auth-error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid rgba(196, 75, 42, 0.35);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

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

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--ink-soft);
}

.auth-field input {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--bg);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.auth-submit {
  margin-top: 6px;
  padding: 13px 18px;
}

.auth-forgot {
  margin-top: 2px;
  padding: 0;
  border: none;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-forgot:hover {
  opacity: 0.85;
}

.auth-forgot-hint {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
}

.auth-forgot-hint a {
  color: var(--accent);
  font-weight: 650;
  text-decoration: none;
}

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

.auth-foot {
  margin: 18px 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.auth-foot a {
  color: var(--accent);
  font-weight: 650;
  text-decoration: none;
}

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