/* Static maroon film grain, adapted from the owner's BrewedOps reference:
   https://brewedops.cloud/motionlibrary/?id=backgrounds-grain
   The solid card keeps text clear; no animated filter or external request. */
.auth-bare.mk-stage::before {
  background: radial-gradient(ellipse at 25% 20%, var(--mk-accent-soft), transparent 75%), var(--mk-surface);
  mask-image: none;
  -webkit-mask-image: none;
}
.auth-bare.mk-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Cpath fill='%23000' filter='url(%23grain)' d='M0 0h160v160H0z'/%3E%3C/svg%3E");
}
.signup-status { display: block; color: var(--mk-muted); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.signup-status:empty, .signup-status[hidden] { display: none; }
.signup-status[data-tone="warning"] { color: var(--mk-warn); }
.signup-status[data-tone="ok"] { color: var(--mk-ok-ink); }
#signupForm .err { overflow-wrap: anywhere; }
#signupForm [data-step="3"] .row2 { grid-template-columns: minmax(0, 1fr); }
#signupForm .su-nav #suSubmit { margin-top: 0; width: auto; min-width: 0; }
/* Keep the completed check centred independently of the hidden step numeral. */
#suSteps li.done .n::after {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -65%) rotate(-45deg);
}
/* The step indicator already names each group; keep its legend for assistive technology. */
#signupForm.is-stepped .fgroup > legend {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (forced-colors: active) { .auth-bare.mk-stage::after { display: none; } }
