.auth-shell {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 360px));
  justify-content: center;
  align-items: center;
  gap: 24px;
  min-height: calc(100vh - 140px);
  padding: 24px 0;
}
.auth-illustration {
  max-width: 360px;
  width: 100%;
}
.auth-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-card {
  max-width: 420px;
  width: 100%;
  padding: 24px;
}
.auth-heading {
  margin: 0 0 8px 0;
}
.auth-subheading {
  margin: 0 0 4px 0;
  font-size: 18px;
}
.auth-subcopy {
  margin: 0 0 12px 0;
  font-size: 13px;
  color: var(--muted);
}
.auth-button {
  width: 100%;
  margin-top: 12px;
}
.auth-secondary-button {
  width: 100%;
  margin-top: 12px;
  background: var(--panel);
  border-color: var(--border);
}
.auth-note {
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}
.auth-note .auth-link-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0 0 8px 0;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.auth-note .auth-link-button:hover,
.auth-note .auth-link-button:focus-visible {
  color: #e5e7eb;
  text-decoration: underline;
}
.auth-note .auth-primary-link {
  color: #3b82f6;
  font-weight: 600;
}
.auth-note .auth-primary-link:hover,
.auth-note .auth-primary-link:focus-visible {
  color: #60a5fa;
}
.password-hint {
  margin: 4px 0 6px;
  font-size: 12px;
  color: var(--muted);
}
.password-rules {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  font-size: 12px;
  color: var(--muted);
}
.password-rule {
  display: flex;
  align-items: center;
  gap: 6px;
}
.password-rule::before {
  content: '•';
  font-size: 10px;
  color: var(--muted);
}
.password-rule.valid {
  color: #bbf7d0;
}
.password-rule.valid::before {
  content: '✓';
  color: #22c55e;
}
.password-rule.invalid {
  color: #fecaca;
}
.password-rule.invalid::before {
  content: '•';
  color: #fecaca;
}
.error-message {
  display: none;
  color: var(--danger);
  margin-top: 10px;
}
.success-message {
  display: none;
  color: var(--success, #22c55e);
  margin-top: 10px;
}
@media (max-width: 640px) {
  .auth-shell {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px 0 32px 0;
  }
  .auth-column {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
  }
  .auth-illustration .cartoon-panel {
    min-height: auto;
  }
}
