body.auth {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: var(--ink);
}

.auth__frame {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.auth__head {
  display: grid;
  gap: var(--space-3);
  padding: calc(var(--safe-top) + var(--space-5)) var(--gutter) var(--space-6);
  color: var(--paper);
}

.auth__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  width: fit-content;
  min-height: 44px;
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
}

.auth__brand img { width: 32px; height: 32px; border-radius: 8px; }

.auth__head h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.auth__head h1 em { color: var(--brand); font-style: normal; }

.auth__head p { color: rgba(255, 255, 255, 0.8); }

.auth__sheet {
  display: grid;
  flex: 1;
  align-content: start;
  gap: var(--space-5);
  padding: var(--space-5) var(--gutter) calc(var(--space-6) + var(--safe-bottom));
  border-radius: 24px 24px 0 0;
  background: var(--paper);
}

.auth__form { display: grid; gap: var(--space-4); }

.auth__intro { color: var(--ink-2); }

.auth__control { position: relative; display: grid; }

.auth__control .field__input { padding-right: 72px; }

.auth__reveal {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 64px;
  height: var(--tap-target);
  border: 0;
  background: transparent;
  color: var(--action);
  font-size: var(--text-small);
  font-weight: 600;
}



.auth__consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  min-height: var(--tap-target);
  font-size: var(--text-small);
  color: var(--ink-2);
}

.auth__consent input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--action);
}

.auth__turnstile:empty { display: none; }

.auth__submit { width: 100%; min-height: 52px; font-size: var(--text-body); }

.auth__submit[disabled] { opacity: 0.6; }

.auth__message {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-control);
  font-size: var(--text-small);
}

.auth__message--error { background: var(--danger-soft); color: var(--danger); }

.auth__message--notice { background: var(--success-soft); color: var(--success); }

.auth__links { display: grid; gap: var(--space-1); justify-items: start; font-size: var(--text-small); }

.auth__links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

.auth__links span { color: var(--ink-3); }

.auth__done { display: grid; gap: var(--space-3); }

.auth__done h2 { font-size: var(--text-heading); }

.auth__done p { color: var(--ink-2); }

@media (min-width: 760px) {
  body.auth { justify-content: center; background: var(--wash); }
  .auth__frame { flex: none; margin: var(--space-6) auto; border-radius: 24px; background: var(--ink); overflow: hidden; box-shadow: var(--lift); }
  .auth__sheet { flex: none; }
}

[hidden] { display: none !important; }
