/* ---- NURONZE Platform Administration sign-in ----
   A software surface, not the hospitality one: white and ice, deep navy type,
   the electric blue to indigo gradient as the one accent. Loaded only by the
   signed-out /platform page, after platform.css, so it overrides the shared
   login-wrap / login-panel only here (the MFA and dashboard pages still use
   the shared rules). The page's CSP allows only same-origin styles and
   scripts, so there are no inline styles and no web fonts: a system stack. */
.nz-signin {
  --nz-ink: #0b1220;
  --nz-muted: #5b6678;
  --nz-blue: #136ffb;
  --nz-violet: #625bf6;
  --nz-sky: #19a7f5;
  --nz-ice: #eef4ff;
  --nz-cool: #f8fafc;
  --nz-line: #dde5f1;
  --nz-grad: linear-gradient(100deg, var(--nz-blue) 0%, var(--nz-violet) 100%);
  --nz-font: Inter, "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  position: relative; isolation: isolate; min-height: 100vh; min-height: 100dvh; overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, var(--nz-cool) 55%, var(--nz-ice) 100%);
  color: var(--nz-ink); font-family: var(--nz-font); -webkit-font-smoothing: antialiased;
}
.nz-signin *, .nz-signin *::before, .nz-signin *::after { box-sizing: border-box; }

/* ---------- background: four quiet layers ---------- */
.nz-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
/* 1. ambient gradient: two oversized soft fields that drift very slowly */
.nz-mesh { position: absolute; inset: 0; }
.nz-mesh::before, .nz-mesh::after {
  content: ""; position: absolute; width: 130vmax; height: 130vmax; left: 50%; top: 50%; border-radius: 50%;
  will-change: transform;
}
.nz-mesh::before {
  margin: -75vmax 0 0 -95vmax;
  background: radial-gradient(closest-side, rgba(120, 160, 255, .26), rgba(120, 160, 255, 0) 70%);
  animation: nz-breathe-a 58s ease-in-out infinite alternate;
}
.nz-mesh::after {
  margin: -30vmax 0 0 -10vmax;
  background: radial-gradient(closest-side, rgba(140, 120, 250, .2), rgba(140, 120, 250, 0) 70%);
  animation: nz-breathe-b 74s ease-in-out infinite alternate;
}
/* 2. flowing surfaces, after the reference: large, dimensional, slow */
.nz-par { position: absolute; inset: 0; transform: translate3d(calc(var(--nz-px, 0) * var(--nz-depth, 6) * 1px), calc(var(--nz-py, 0) * var(--nz-depth, 6) * 1px), 0); }
.nz-par-a { --nz-depth: 10; } .nz-par-b { --nz-depth: 6; } .nz-par-c { --nz-depth: 4; } .nz-par-d { --nz-depth: 8; }
.nz-surface { position: absolute; border-radius: 50%; will-change: transform; }
.nz-s-sphere {
  width: 58vmin; height: 58vmin; left: -31vmin; bottom: -37vmin;
  background: radial-gradient(circle at 72% 22%, #a9c3ff 0%, #5b86ee 32%, #2748ad 66%, #14275f 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
  animation: nz-float-a 52s ease-in-out infinite alternate;
}
.nz-s-arc {
  width: 96vmin; height: 96vmin; right: -34vmin; top: -56vmin;
  background: radial-gradient(circle at 30% 80%, #e8efff 0%, #c7d6ff 45%, #98aef0 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .85);
  opacity: .8; animation: nz-float-b 64s ease-in-out infinite alternate;
}
.nz-s-ring {
  width: 92vmin; height: 92vmin; right: -48vmin; bottom: -52vmin; background: none;
  border: 1px solid rgba(98, 91, 246, .28); animation: nz-float-c 70s ease-in-out infinite alternate;
}
.nz-s-sweep {
  width: 120vmax; height: 46vmax; left: -34vmax; bottom: -26vmax; border-radius: 50%;
  background: linear-gradient(100deg, rgba(255, 255, 255, .9), rgba(214, 226, 255, .65) 55%, rgba(190, 205, 255, .0));
  transform: rotate(-11deg); opacity: .8; animation: nz-float-d 60s ease-in-out infinite alternate;
}
/* 3-5. the information network and its pulse are drawn on this canvas */
.nz-net { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

@keyframes nz-breathe-a { from { transform: translate3d(-4vmax, -2vmax, 0) scale(1); } to { transform: translate3d(7vmax, 5vmax, 0) scale(1.1); } }
@keyframes nz-breathe-b { from { transform: translate3d(5vmax, 3vmax, 0) scale(1.08); } to { transform: translate3d(-6vmax, -4vmax, 0) scale(.96); } }
@keyframes nz-float-a { from { transform: translate3d(0, 0, 0) scale(1) rotate(0); } to { transform: translate3d(3vmin, -4vmin, 0) scale(1.05) rotate(6deg); } }
@keyframes nz-float-b { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-4vmin, 3vmin, 0) scale(1.06); } }
@keyframes nz-float-c { from { transform: translate3d(0, 0, 0) rotate(0); } to { transform: translate3d(-3vmin, -3vmin, 0) rotate(8deg); } }
@keyframes nz-float-d { from { transform: rotate(-11deg) translate3d(0, 0, 0); } to { transform: rotate(-8deg) translate3d(4vmax, -2vmax, 0); } }

/* ---------- layout ---------- */
.nz-signin .login-wrap {
  min-height: inherit; display: grid; align-items: center; padding: clamp(1.25rem, 4.5vw, 4.5rem);
  background: transparent; color: inherit;
}
.nz-grid {
  width: min(100%, 78rem); margin: 0 auto; display: grid; align-items: center;
  grid-template-columns: minmax(0, 1.18fr) minmax(22rem, 27.5rem); gap: clamp(2rem, 7vw, 8rem);
}

/* ---------- left: product statement ---------- */
.nz-hero { display: grid; gap: 0; align-content: center; max-width: 40rem; }
.nz-signin { --nz-pad: clamp(1.25rem, 4.5vw, 4.5rem); }
/* On a wide screen the mark sits at the top of the page, on the left edge of the content column, as a header would;
   the statement and the card are then centred in the room that is left. */
.nz-signin .nz-hero .platform-logo {
  display: inline-flex; align-items: center; gap: .85rem; color: var(--nz-ink);
  position: absolute; z-index: 1; top: clamp(1.6rem, 4.5vh, 3rem); left: calc(var(--nz-pad) + max(0px, (100% - 2 * var(--nz-pad) - 78rem) / 2));
}
.nz-signin .nz-hero .platform-logo-mark { width: 2.5rem; height: 2.5rem; background: none; border-radius: 0; box-shadow: none; display: block; }
.nz-signin .nz-hero .platform-logo-mark svg { width: 100%; height: 100%; fill: url(#nz-mark-grad); filter: none; display: block; }
.nz-signin .nz-hero .platform-logo-word { gap: .5rem; }
.nz-signin .nz-hero .platform-logo-word strong { font: 700 1.2rem/1 var(--nz-font); letter-spacing: .34em; color: var(--nz-ink); }
.nz-signin .nz-hero .platform-logo-word small { font: 500 .66rem/1 var(--nz-font); letter-spacing: .38em; color: #5b6678; }
.nz-headline {
  margin: 0; font: 650 clamp(2.5rem, 5vw, 4.5rem)/1.04 var(--nz-font); letter-spacing: -.035em; color: var(--nz-ink); text-wrap: balance;
}
.nz-headline span { display: block; }
.nz-headline .nz-accent {
  display: inline-block; background: var(--nz-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  padding-bottom: .08em;
}
.nz-sub { margin: 1.6rem 0 0; font: 400 clamp(1.02rem, 1.5vw, 1.28rem)/1.5 var(--nz-font); color: var(--nz-muted); }
.nz-sub span { display: block; }
.nz-benefits { list-style: none; margin: clamp(2rem, 6vh, 3.4rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 33rem; }
.nz-benefits li {
  display: grid; justify-items: center; gap: .7rem; padding: .2rem .5rem; text-align: center;
  font: 500 .92rem/1.3 var(--nz-font); color: #2a3447;
}
.nz-benefits li + li { border-left: 1px solid rgba(98, 115, 160, .22); }
.nz-benefits svg { width: 2rem; height: 2rem; fill: none; stroke: url(#nz-icon-grad); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.nz-benefits li span { display: block; }

/* ---------- right: the sign-in card ---------- */
.nz-signin .login-panel {
  width: 100%; margin: 0; padding: clamp(1.7rem, 3.2vw, 2.7rem); border: 1px solid rgba(255, 255, 255, .85); border-top: 1px solid rgba(255, 255, 255, .85); border-radius: 22px;
  background: rgba(255, 255, 255, .86); color: var(--nz-ink);
  -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 24px 60px -24px rgba(32, 62, 140, .28), 0 2px 8px rgba(30, 50, 100, .05);
}
.nz-signin .login-panel .eyebrow { margin: 0 0 .75rem; font: 600 .74rem/1 var(--nz-font); letter-spacing: .24em; text-transform: uppercase; color: var(--nz-blue); }
.nz-signin .login-panel h1 { margin: 0; font: 650 2.15rem/1.1 var(--nz-font); letter-spacing: -.025em; color: var(--nz-ink); }
.nz-signin .login-intro { margin: .7rem 0 0; font: 400 1.02rem/1.45 var(--nz-font); color: var(--nz-muted); }
.nz-signin .login-panel form { display: grid; gap: 1.15rem; margin-top: 1.9rem; }
.nz-signin .login-panel label { display: grid; gap: .55rem; font: 650 .95rem/1 var(--nz-font); color: var(--nz-ink); }
.nz-field { position: relative; display: block; }
.nz-field > svg:first-child {
  position: absolute; left: 1.05rem; top: 50%; width: 1.2rem; height: 1.2rem; margin-top: -.6rem; fill: none; stroke: #3a4560; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  pointer-events: none; transition: stroke .2s ease;
}
.nz-signin .login-panel input {
  width: 100%; min-height: 3.35rem; margin: 0; padding: .75rem 1rem .75rem 3.2rem; border: 1px solid var(--nz-line); border-radius: 12px; background: var(--nz-cool);
  font: 450 1rem/1.2 var(--nz-font); color: var(--nz-ink); outline: none; appearance: none; -webkit-appearance: none;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.nz-signin .login-panel input::placeholder { color: #8a94a6; }
.nz-signin .login-panel input:hover { border-color: #c6d2e6; }
.nz-signin .login-panel input:focus { border-color: var(--nz-blue); background: #fff; box-shadow: 0 0 0 4px rgba(19, 111, 251, .14); outline: none; }
.nz-field:focus-within > svg:first-child { stroke: var(--nz-blue); }
.nz-signin .login-panel input[type="password"], .nz-signin .login-panel input[data-reveal] { padding-right: 3.2rem; }
.nz-signin .login-panel .nz-reveal {
  position: absolute; right: .35rem; top: 50%; width: 2.6rem; height: 2.6rem; margin-top: -1.3rem; display: grid; place-items: center; padding: 0; min-height: 0;
  border: 0; border-radius: 10px; background: transparent; color: #3a4560; font-weight: 400; cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.nz-reveal svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nz-reveal .nz-eye-off { display: none; }
.nz-reveal[aria-pressed="true"] .nz-eye { display: none; }
.nz-reveal[aria-pressed="true"] .nz-eye-off { display: block; }
.nz-signin .login-panel .nz-reveal:hover { background: rgba(19, 111, 251, .08); color: var(--nz-blue); }
.nz-reveal:focus-visible { outline: 2px solid var(--nz-blue); outline-offset: 1px; }
.nz-signin .login-panel button[type="submit"] {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; min-height: 3.5rem; margin-top: .35rem; padding: .8rem 1.2rem;
  border: 0; border-radius: 12px; background: linear-gradient(100deg, var(--nz-sky) 0%, var(--nz-blue) 48%, var(--nz-violet) 100%); background-size: 140% 100%; background-position: 0 0;
  color: #fff; font: 650 1.08rem/1 var(--nz-font); letter-spacing: .005em; cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(19, 111, 251, .6);
  transition: transform .18s ease, box-shadow .18s ease, background-position .35s ease, opacity .2s ease;
}
.nz-signin .login-panel button[type="submit"]:hover:not(:disabled) { transform: translateY(-1px); background-position: 100% 0; box-shadow: 0 14px 28px -12px rgba(75, 80, 240, .6); }
.nz-signin .login-panel button[type="submit"]:active:not(:disabled) { transform: translateY(0); box-shadow: 0 6px 16px -8px rgba(19, 111, 251, .6); }
.nz-signin .login-panel button[type="submit"]:focus-visible { outline: 3px solid rgba(19, 111, 251, .4); outline-offset: 3px; }
.nz-signin .login-panel button[type="submit"]:disabled { cursor: progress; opacity: .88; }
.nz-arrow { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.nz-signin button[type="submit"]:hover:not(:disabled) .nz-arrow { transform: translateX(3px); }
.nz-spin { display: none; width: 1.15rem; height: 1.15rem; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: nz-spin .8s linear infinite; }
.nz-signin button[type="submit"][aria-busy="true"] .nz-arrow { display: none; }
.nz-signin button[type="submit"][aria-busy="true"] .nz-spin { display: inline-block; }
@keyframes nz-spin { to { transform: rotate(360deg); } }

/* status: neutral while it works, plain and readable when it fails */
.nz-signin .login-panel :is(#platform-message, #login-message) { margin: 0; font: 500 .95rem/1.4 var(--nz-font); color: var(--nz-muted); }
.nz-signin .login-panel :is(#platform-message, #login-message):not(:empty) { margin-top: 1rem; color: var(--nz-muted); font-weight: 500; }
.nz-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.nz-signin .login-panel :is(#platform-message, #login-message).is-error {
  padding: .7rem .9rem; border: 1px solid #f1c4c4; border-radius: 10px; background: #fff4f4; color: #9c2b2b; font-weight: 550;
  animation: nz-enter .22s ease-out both;
}
@keyframes nz-enter { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- tablet ---------- */
@media (max-width: 1060px) {
  .nz-grid { grid-template-columns: minmax(0, 1fr) minmax(20rem, 25rem); gap: 2.5rem; }
  .nz-headline { font-size: clamp(2.2rem, 4.8vw, 3.2rem); }
  .nz-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 0; max-width: 20rem; }
  .nz-benefits li:nth-child(odd) { border-left: 0; }
}
/* ---------- mobile: one column, the form first in reach ---------- */
@media (max-width: 820px) {
  .nz-signin .login-wrap { align-items: start; padding: 1.4rem 1.15rem 2.5rem; }
  .nz-grid { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
  .nz-hero { max-width: none; }
  /* in the flow on a phone, with room before the headline */
  .nz-signin .nz-hero .platform-logo { position: static; margin-bottom: 2.3rem; }
  .nz-headline { font-size: clamp(2rem, 9vw, 2.7rem); line-height: 1.06; }
  .nz-sub { margin-top: 1rem; font-size: 1rem; }
  .nz-benefits { display: none; }
  .nz-signin .login-panel { padding: 1.5rem 1.25rem; border-radius: 18px; }
  .nz-signin .login-panel h1 { font-size: 1.8rem; }
  /* the background simplifies: no drifting field, one calm surface */
  .nz-mesh::before, .nz-mesh::after, .nz-s-sphere, .nz-s-arc, .nz-s-ring, .nz-s-sweep { animation: none; }
  .nz-s-ring, .nz-s-sweep { display: none; }
  .nz-par { transform: none; }
  .nz-s-sphere { width: 90vmin; height: 90vmin; left: -50vmin; bottom: -48vmin; opacity: .75; }
  .nz-s-arc { width: 120vmin; height: 120vmin; right: -66vmin; top: -80vmin; }
}
@media (max-width: 820px) and (min-width: 521px) {
  .nz-benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: none; gap: 0; }
  .nz-benefits li:nth-child(odd) { border-left: 1px solid rgba(98, 115, 160, .22); }
  .nz-benefits li:first-child { border-left: 0; }
}
@media (max-height: 640px) and (min-width: 821px) {
  .nz-benefits { margin-top: 1.4rem; }
}

/* ---------- reduced motion: a still, elegant page ---------- */
@media (prefers-reduced-motion: reduce) {
  .nz-mesh::before, .nz-mesh::after, .nz-s-sphere, .nz-s-arc, .nz-s-ring, .nz-s-sweep { animation: none; }
  .nz-par { transform: none; }
  .nz-signin .login-panel input, .nz-signin .login-panel button[type="submit"], .nz-arrow, .nz-reveal { transition: none; }
  .nz-signin .login-panel button[type="submit"]:hover:not(:disabled), .nz-signin button[type="submit"]:hover:not(:disabled) .nz-arrow { transform: none; }
  .nz-signin .login-panel :is(#platform-message, #login-message).is-error { animation: none; }
  .nz-spin { animation-duration: 1.6s; }
}
@media (forced-colors: active) {
  .nz-signin .login-panel input { border: 1px solid CanvasText; }
  .nz-signin .login-panel button[type="submit"] { border: 1px solid ButtonText; }
  .nz-headline .nz-accent { color: CanvasText; -webkit-text-fill-color: CanvasText; background: none; }
}

/* The business dashboard's "Which business?" list takes the same software look (these are submit buttons, so they
   have to unset the sign-in button's gradient explicitly). */
.nz-signin .organization-choices { display: grid; gap: .7rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.nz-signin .organization-choices form { margin: 0; }
.nz-signin .login-panel .organization-choices button[type="submit"] {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .25rem; width: 100%; min-height: 3.6rem; margin: 0; padding: .85rem 1.1rem;
  border: 1px solid var(--nz-line); border-radius: 12px; background: var(--nz-cool); background-image: none; color: var(--nz-ink); box-shadow: none; opacity: 1;
  font: 500 .95rem/1.2 var(--nz-font); text-align: left; cursor: pointer; transform: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background-color .18s ease;
}
.nz-signin .login-panel .organization-choices button[type="submit"] strong { font-weight: 650; font-size: 1.02rem; color: var(--nz-ink); }
.nz-signin .login-panel .organization-choices button[type="submit"] small { color: var(--nz-muted); font-size: .85rem; }
.nz-signin .login-panel .organization-choices button[type="submit"]:hover:not(:disabled) { border-color: var(--nz-blue); background: #fff; background-position: 0 0; box-shadow: 0 0 0 4px rgba(19, 111, 251, .1); transform: translateY(-1px); }
.nz-signin .login-panel .organization-choices button[type="submit"]:active:not(:disabled) { transform: none; }
.nz-signin .login-panel .organization-choices button[type="submit"]:focus-visible { outline: none; border-color: var(--nz-blue); box-shadow: 0 0 0 4px rgba(19, 111, 251, .18); }
@media (prefers-reduced-motion: reduce) { .nz-signin .login-panel .organization-choices button[type="submit"] { transition: none; } .nz-signin .login-panel .organization-choices button[type="submit"]:hover:not(:disabled) { transform: none; } }

/* ---- the business dashboard: the same page with its own words ----
   The mark top-left, the card centred, the same background and animation; no statement or benefits. */
.nz-solo .nz-grid { grid-template-columns: minmax(0, 27.5rem); justify-content: center; gap: 0; }
.nz-solo .nz-hero-solo { display: contents; }
@media (max-width: 820px) {
  .nz-solo .login-wrap { align-items: start; }
  .nz-solo .nz-hero-solo { display: block; }
  .nz-solo .nz-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .nz-solo .nz-hero-solo .platform-logo { margin-bottom: 2.3rem; }
}
