.auth-screen {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.auth-page {
  display: grid;
  gap: 24px;
  width: min(100%, 36rem);
  margin: auto;
  padding: 48px var(--gutter);
}

.auth-intro, .auth-help {
  display: grid;
  gap: 8px;
}

.auth-intro .auth-brand {
  justify-self: start;
  margin-bottom: 8px;
}

.auth-page h1 {
  font: 600 2rem/1.2 var(--body);
  letter-spacing: -.025em;
  text-wrap: wrap;
}

.auth-intro p, .auth-help p, .auth-hint, .auth-status p {
  color: var(--text-2);
  line-height: 1.5;
}

.auth-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.auth-card[hidden] { display: none; }

.auth-card .field label { color: var(--text); }
.auth-card .field input { box-shadow: inset 0 0 0 1px var(--text-3); }
.auth-card .field input:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.auth-card .check { gap: 12px; }
.auth-card .check input { accent-color: var(--accent); }

.auth-hint, .auth-help, .auth-status { font-size: .92rem; }
.auth-help a { color: var(--accent-text); }
.auth-help .form-note { margin: 0; }
.auth-help { padding-block-start: 12px; border-block-start: 1px solid var(--line-2); }
.auth-help a, .auth-hint a { text-underline-offset: .2em; }

.auth-status {
  padding: 12px 16px;
  border-inline-start: 2px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--accent-wash);
}

.auth-secret { display: flex; gap: 8px; }
.auth-secret input { flex: 1; min-width: 0; }
.auth-reveal {
  padding: 0 12px;
  border: 0;
  background: var(--bg);
  cursor: pointer;
}
.auth-reveal:hover { background: var(--accent-wash); }
.auth-reveal[hidden] { display: none; }

.auth-primary {
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
}

.auth-primary:hover { background: var(--accent-hover); }
.auth-secondary { justify-self: start; }

.auth-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.auth-screen .foot {
  width: 100%;
  justify-content: center;
  padding-block: 16px 24px;
}

@media (max-width: 480px) {
  .auth-page { margin-block: 0 auto; padding-block: 40px 24px; }
  .auth-card { padding: 16px; }
  .auth-secondary { justify-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-screen *, .auth-screen *::before, .auth-screen *::after { transition: none; }
}
