/* Sign-in (auth.js) in Mochi's ink. Mochi up top, a two-line hello in the middle, one ink button at the
   bottom. Everything else on the page waits behind it. */
body[data-stage="signin"] #panel,
body[data-stage="signin"] #edge,
body[data-stage="signin"] #surface > :not(#presence):not(#signin):not(.presence-canvas) { display: none !important; }
body[data-stage="signin"] #presence { --py: calc(30dvh - 120px); --ps: 1.18; }

#signin {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 20px calc(32px + var(--safe-b));
  pointer-events: none;
}
#signin > * { pointer-events: auto; }
.signin-words { margin: 0 0 auto; padding-top: calc(30dvh + 150px); text-align: center; }
.signin-words h1 { margin: 0 0 8px; font-size: 34px; font-weight: 650; letter-spacing: -0.8px; line-height: 1.1; color: var(--ink); }
.signin-words p { margin: 0; font-size: 18px; color: var(--ink-soft); }
.signin-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.signin-apple {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 62px;
  border: 0;
  border-radius: 31px;
  background: var(--cta);
  color: var(--cta-ink);
  font: inherit;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.3px;
  box-shadow: 0 10px 26px var(--cta-glow);
  transition: transform 0.18s var(--ease), opacity 0.2s;
}
.signin-apple svg { width: 21px; height: 21px; fill: currentColor; margin-top: -3px; }
.signin-apple:active { transform: scale(0.97); }
.signin-apple:disabled { opacity: 0.6; }
.signin-note { margin: 0; text-align: center; font-size: 16px; color: var(--ink-soft); }
.signin-error { margin: 0; min-height: 1.3em; text-align: center; font-size: 15px; color: var(--danger); }
.signin-error:empty { display: none; }
.signin-tests { display: flex; justify-content: center; gap: 18px; }
.field.account { margin-top: 24px; }
.field .signout { margin-top: 2px; }
