.auth-layout {
  max-width: 48rem;
  margin: auto;
  padding: 3rem 1.25rem;
}
.auth-intro {
  margin-bottom: 2rem;
}
.auth-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}
.auth-layout h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.25;
}
.auth-layout h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.auth-heading-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.auth-heading-row h2 {
  margin-bottom: 0;
}
.auth-layout p {
  line-height: 1.8;
  margin-block: 1rem;
}
.auth-muted,
.auth-demo {
  color: var(--muted-foreground);
}
.auth-demo {
  font-size: 0.875rem;
}
.auth-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: clamp(1rem, 4vw, 2rem);
}
.auth-layout input,
.auth-layout select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem;
  background: var(--background);
  color: var(--foreground);
  font: inherit;
  margin-top: 0.5rem;
}
.auth-layout input[aria-invalid="true"] {
  border-color: var(--primary);
  border-width: 2px;
}
.auth-code-input {
  font-size: clamp(1.35rem, 7vw, 2rem) !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.28em;
  text-align: center;
}
.auth-layout label {
  display: block;
  font-weight: 600;
  margin-top: 1rem;
}
.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block: 1.5rem;
}
.auth-primary,
.auth-secondary,
.auth-link,
.auth-bottom a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  cursor: pointer;
  text-align: center;
}
.auth-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border: 1px solid var(--primary);
}
.auth-secondary {
  background: var(--background);
  color: var(--foreground);
  border: 1px solid var(--border);
}
.auth-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.auth-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.auth-link,
.auth-bottom a {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.auth-note,
.auth-handoff {
  background: var(--muted);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-top: 1.5rem;
}
.auth-note ul {
  padding-left: 1.25rem;
  list-style: disc;
  line-height: 1.8;
  color: var(--muted-foreground);
}
.auth-note ol {
  padding-left: 1.25rem;
  list-style: decimal;
  line-height: 1.8;
  color: var(--muted-foreground);
}
.auth-note li + li {
  margin-top: 0.5rem;
}
.auth-feedback {
  border-left: 3px solid var(--primary);
  padding-left: 1rem;
}
.auth-preview {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}
.auth-preview summary {
  min-height: 44px;
  cursor: pointer;
  padding-block: 0.75rem;
  font-size: 0.875rem;
}
.auth-facts > div {
  padding-block: 1rem;
  border-bottom: 1px solid var(--border);
}
.auth-facts dt {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}
.auth-facts dd {
  overflow-wrap: anywhere;
}
.auth-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.auth-footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.auth-header {
  border-bottom: 1px solid var(--border);
}
.auth-header-inner {
  max-width: 72rem;
  min-height: 64px;
  margin: auto;
  padding: 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.auth-brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 650;
}
.auth-theme {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.5rem;
  background: var(--background);
  color: var(--foreground);
}
.auth-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}
.auth-danger {
  color: var(--primary);
  font-weight: 650;
}
@media (max-width: 30rem) {
  .auth-actions > *,
  .auth-link {
    width: 100%;
  }
}
