/* ------------------------------------------------------------------ */
/* Cold mesh-gradient background (STATIC)                              */
/* Shared by the registration-flow inner pages (login / sign-up).      */
/*                                                                     */
/* Fully static: no animation, no blur filter -> zero ongoing GPU/CPU  */
/* work, so it can't overheat the machine. Softness comes for free     */
/* from the radial gradients fading to transparent.                    */
/*                                                                     */
/* Not drawn on a page that is embedded (`nd-embedded` on <html>): the */
/* "Join as" card is an iframe over the blurred home page there, and   */
/* its own page must stay see-through. Opened as a page of its own it  */
/* has no home page behind it, and wears this like the others.         */
/* ------------------------------------------------------------------ */

html:not(.nd-embedded) {
  background-color: var(--nd-mesh-bg); /* cold near-black base */
}

body {
  /* Override each page's static purple gradient; let the mesh show. */
  background: transparent;
  position: relative;
}

/* Three soft blobs parked in fixed spots. Centred on the origin, then
   nudged into place with a static translate(). */
html:not(.nd-embedded)::before,
html:not(.nd-embedded)::after,
html:not(.nd-embedded) body::before {
  content: "";
  position: fixed;
  top: -35vmax;
  left: -35vmax;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

/* Blue — top-left */
html:not(.nd-embedded)::before {
  background: radial-gradient(circle at center, var(--nd-mesh-blue), var(--nd-mesh-blue-fade) 66%);
  transform: translate(10vw, 12vh);
}

/* Cyan — top-right */
html:not(.nd-embedded)::after {
  background: radial-gradient(circle at center, var(--nd-mesh-cyan), var(--nd-mesh-cyan-fade) 66%);
  transform: translate(88vw, 14vh);
}

/* Indigo — bottom */
html:not(.nd-embedded) body::before {
  background: radial-gradient(circle at center, var(--nd-mesh-indigo), var(--nd-mesh-indigo-fade) 66%);
  transform: translate(45vw, 88vh);
}
