/*
  KScore login, variant A: "Arco di luce" (cinematic split screen)
  A night stage with an electric-blue fibre-optic arc (left, ~55%) and a calm, precise form surface (right).
  Built on the --ks-* tokens from assets/css/kscore.css; page tokens below are prefixed --lg-.

  Index
  --tokens (light / dark)
  --base
  --layout
  --stage: night, light arc, brand, claim, risk scale, pause
  --panel: bar, theme switch, heading
  --form: fields, password, switch, submit, social, footer
  --entrance timeline
  --responsive
  --motion: paused / reduced
*/

/* tokens */

:root {
  /* geometry */
  --lg-gutter: 14px;
  --lg-stage-r: 28px;
  --lg-r: 12px;
  --lg-field-h: 50px;
  --lg-cta-h: 52px;
  --lg-social-h: 46px;

  /* entrance timeline: light, gauge, K, letters, ring, dot, claim, chrome */
  --t-arc: .1s;
  --t-bars: .55s;
  --t-k: 1.2s;
  --t-letters: 1.42s;
  --t-ring: 1.62s;
  --t-dot: 2.3s;
  --t-claim: 2.5s;
  --t-ui: 3.15s;

  /* stage (always night, in both themes) */
  --lg-claim: #e8f0ff;
  --lg-stage-muted: #9fb0cf;

  /* surfaces (light) */
  --lg-page: #f5f7fb;
  --lg-panel-light: radial-gradient(70% 50% at 0% 100%, rgba(0, 96, 250, .06), transparent 70%);
  --lg-title: var(--ks-ink);
  --lg-label: #16223e;
  --lg-text: #4a5672;
  --lg-muted: #5b6781;
  --lg-link: #0060fa;
  --lg-link-hover: #0047c2;
  --lg-hairline: #e2e7f0;
  --lg-rule: #cdd5e2;
  --lg-chip-bg: #e8f0ff;
  --lg-chip-text: #0050d6;
  --lg-chip-ring: #ffffff;

  --lg-field-bg: #ffffff;
  --lg-field-bg-focus: #ffffff;
  --lg-field-border: #cfd7e4;
  --lg-field-border-hover: #aab6ca;
  --lg-field-shadow: 0 1px 2px rgba(10, 22, 51, .05);
  --lg-field-text: var(--ks-ink);
  --lg-placeholder: #687390;
  --lg-icon: #7a869f;
  --lg-reveal-hover: #eef2f8;
  --lg-autofill: #eef5ff;

  --lg-focus: #0060fa;
  --lg-ring: 0 0 0 4px rgba(0, 96, 250, .16);
  --lg-danger: #c2281c;
  --lg-danger-ring: rgba(194, 40, 28, .14);
  --lg-warn: var(--ks-yellow-text);

  --lg-switch-bg: #eef2f8;
  --lg-switch-border: #b4bfd2;
  --lg-switch-knob: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23717e99'/%3e%3c/svg%3e");
  --lg-switch-knob-on: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3c/svg%3e");

  --lg-social-bg: #ffffff;
  --lg-social-border: #dbe2ec;
  --lg-social-tint: rgba(0, 96, 250, .07);

  --lg-stage-shadow: 0 30px 70px -36px rgba(0, 22, 82, .55), 0 2px 8px -2px rgba(10, 22, 51, .12);
  --lg-stage-edge: transparent;
}

[data-bs-theme=dark] {
  --lg-page: #030817;
  --lg-panel-light: radial-gradient(65% 55% at 0% 78%, rgba(0, 80, 241, .13), transparent 72%);
  --lg-title: #f2f6fd;
  --lg-label: #e3eaf7;
  --lg-text: #b3bfd6;
  --lg-muted: #8a98b7;
  --lg-link: #6eb3ff;
  --lg-link-hover: #b2ddff;
  --lg-hairline: rgba(110, 179, 255, .1);
  --lg-rule: rgba(110, 179, 255, .22);
  --lg-chip-bg: rgba(47, 123, 255, .13);
  --lg-chip-text: #8ec2ff;
  --lg-chip-ring: #000000;

  --lg-field-bg: #0a1430;
  --lg-field-bg-focus: #0c1838;
  --lg-field-border: rgba(110, 179, 255, .18);
  --lg-field-border-hover: rgba(110, 179, 255, .34);
  --lg-field-shadow: 0 1px 0 rgba(255, 255, 255, .02) inset;
  --lg-field-text: #f2f6fd;
  --lg-placeholder: #7d8bab;
  --lg-icon: #7d8bab;
  --lg-reveal-hover: rgba(110, 179, 255, .1);
  --lg-autofill: #0e1d45;

  --lg-focus: #4d94ff;
  --lg-ring: 0 0 0 4px rgba(77, 148, 255, .24);
  --lg-danger: #ff8f80;
  --lg-danger-ring: rgba(255, 143, 128, .2);
  --lg-warn: var(--ks-yellow);

  --lg-switch-bg: #0f1b40;
  --lg-switch-border: rgba(110, 179, 255, .32);
  --lg-switch-knob: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%238f9dbb'/%3e%3c/svg%3e");

  --lg-social-bg: #0a1430;
  --lg-social-border: rgba(110, 179, 255, .15);
  --lg-social-tint: rgba(110, 179, 255, .1);

  --lg-stage-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9);
  --lg-stage-edge: rgba(110, 179, 255, .1);
}


/* base */

html body.ks-auth {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--lg-page);
  color: var(--lg-text);
  font-family: var(--ks-font-body);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.lg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.lg-i {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lg-skip {
  position: absolute;
  z-index: 100;
  left: 16px;
  top: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ks-blue-500);
  color: #fff;
  font-weight: 600;
  transform: translateY(-180%);
  transition: transform .2s var(--ks-ease);
}

.lg-skip:focus {
  color: #fff;
  transform: none;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}


/* layout */

.lg {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  grid-template-areas: "stage panel";
  min-height: 100vh;
  min-height: 100dvh;
}


/* stage */

.lg-stage {
  /* light-arc placement, in % of the stage: the crest sits at (--arc-x, --arc-y) */
  --arc-kw: 122;
  --arc-kh: 104;
  --arc-x: 52;
  --arc-y: 41;
  --crest-x: .527;
  --crest-y: .385;
  --lg-sw: 1;
  --logo-w: clamp(240px, 62cqw, 560px);

  grid-area: stage;
  position: sticky;
  top: var(--lg-gutter);
  align-self: start;
  height: max(560px, calc(100vh - var(--lg-gutter) * 2));
  height: max(560px, calc(100dvh - var(--lg-gutter) * 2));
  margin: var(--lg-gutter) 0 var(--lg-gutter) var(--lg-gutter);
  border-radius: var(--lg-stage-r);
  overflow: hidden;
  isolation: isolate;
  container-type: size;
  background: #000;
  color: #fff;
  box-shadow: var(--lg-stage-shadow), 0 0 0 1px var(--lg-stage-edge);
}

.lg-stage__fx {
  --W: max(calc(var(--arc-kw) * 1cqw), calc(var(--arc-kh) * 1cqh));
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* the night: navy haze pooled under the dome, as in the artwork */
.lg-stage__fx::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 46% at 44% 102%, rgba(0, 57, 212, .30), rgba(0, 22, 82, .24) 50%, transparent 80%),
    radial-gradient(55% 38% at 0% 100%, rgba(47, 123, 255, .20), transparent 72%),
    radial-gradient(85% 34% at 54% calc(var(--arc-y) * 1% + 4%), rgba(0, 57, 212, .16), rgba(0, 22, 82, .08) 55%, transparent 78%);
}

/* lens vignette */
.lg-stage__fx::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(135% 100% at 50% 42%, transparent 52%, rgba(0, 0, 0, .55) 100%);
}

.lg-stage__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: .07;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px;
}

/* light arc */

.lg-arc {
  position: absolute;
  z-index: 1;
  width: var(--W);
  height: var(--W);
  left: calc(var(--arc-x) * 1cqw - var(--W) * var(--crest-x));
  top: calc(var(--arc-y) * 1cqh - var(--W) * var(--crest-y));
}

.lg-arc__layer {
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  transform: translate3d(calc(var(--px, 0) * var(--depth) * -1px), calc(var(--py, 0) * var(--depth) * -1px), 0);
  transition: transform 1.8s cubic-bezier(.16, .84, .3, 1), opacity 1.4s ease;
}

.lg-arc__layer--glow {
  opacity: .8;
  animation: lg-fade-in 2.8s ease .1s backwards;
}

.lg-arc__layer--back {
  animation: lg-fade-in 2.4s ease .35s backwards;
}

.lg:has(.lg-form:focus-within) .lg-arc__layer--glow {
  opacity: 1;
}

.lg-arc__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform-origin: 1% 80%; /* the source: the bundle sways around where the fibres enter */
  will-change: transform;
}

.lg-arc__glow {
  animation: lg-drift-a 38s ease-in-out infinite alternate;
}

.lg-arc__back {
  animation: lg-drift-b 47s ease-in-out infinite alternate;
}

.lg-arc__front,
.lg-arc__pulses {
  animation: lg-drift-c 31s ease-in-out infinite alternate;
}

.lg-arc__back path,
.lg-arc__front path {
  stroke-width: calc(var(--w) * var(--lg-sw) * 1px);
}

.lg-arc__front path {
  animation: lg-ignite 2.6s cubic-bezier(.3, .6, .1, 1) both;
  animation-delay: calc(var(--t-arc) + var(--d) * 1ms);
}

/* light travelling along a few fibres */
.lg-pulse__core,
.lg-pulse__halo {
  stroke-dasharray: .05 1.3;
  stroke-dashoffset: .05;
  opacity: 0;
  animation: lg-pulse var(--dur) cubic-bezier(.45, .05, .3, 1) infinite;
  animation-delay: calc(var(--t-ui) + var(--delay));
}

.lg-pulse__core {
  stroke: #eef7ff;
  stroke-width: calc(1.5px * var(--lg-sw));
}

.lg-pulse__halo {
  stroke: #6eb3ff;
  stroke-width: calc(7px * var(--lg-sw));
  stroke-opacity: .26;
}

.lg-arc__pulses {
  transition: opacity .8s ease;
}

/* a spark fired along the rim when a field takes focus: the stage answers the form */
.lg-spark {
  stroke-dasharray: .07 1.3;
  stroke-dashoffset: .07;
  opacity: 0;
}

.lg-spark.is-firing {
  animation: lg-spark 2.2s cubic-bezier(.3, .1, .2, 1) both;
}

.lg-spark__core {
  stroke: #f4faff;
  stroke-width: calc(1.8px * var(--lg-sw));
}

.lg-spark__halo {
  stroke: #6eb3ff;
  stroke-width: calc(9px * var(--lg-sw));
  stroke-opacity: .3;
}

/* where the fibres are bundled: the white-hot source, pinned to the stage's left edge at the source height */
.lg-stage__core {
  position: absolute;
  z-index: 1;
  left: 0;
  top: calc(var(--arc-y) * 1cqh + var(--W) * (.665 - var(--crest-y))); /* where the fibres cross the stage edge, brightest */
  width: calc(var(--W) * .8);
  height: calc(var(--W) * .2);
  opacity: .85;
  mix-blend-mode: screen;
  transform: translate(-47%, -66%) rotate(-63deg); /* stretched along the rising fibres */
  transition: opacity 1.4s ease;
  animation: lg-fade-in 1.8s ease .2s backwards;
}

.lg-stage__core::before,
.lg-stage__core::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.lg-stage__core::before {
  background: radial-gradient(closest-side, rgba(110, 179, 255, .5), rgba(0, 80, 241, .26) 45%, rgba(0, 57, 212, .1) 70%, transparent);
}

.lg-stage__core::after {
  inset: 30% 24%;
  background: radial-gradient(closest-side, rgba(240, 248, 255, .85), rgba(178, 221, 255, .45) 34%, rgba(47, 123, 255, .14) 70%, transparent);
  animation: lg-breathe 7s ease-in-out 2.2s infinite alternate;
}

.lg:has(.lg-form:focus-within) .lg-stage__core {
  opacity: 1;
}

/* brand */

.lg-stage__content {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  top: calc(var(--arc-y) * 1cqh - var(--logo-w) * .3265 * .34);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 clamp(20px, 6cqw, 64px);
  text-align: center;
}

.lg-brand {
  position: relative;
  width: var(--logo-w);
  color: #fff;
  transform: translate3d(calc(var(--px, 0) * 7px), calc(var(--py, 0) * 5px), 0);
  transition: transform 1.8s cubic-bezier(.16, .84, .3, 1);
}

.lg-brand__logo {
  width: 100%;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .55));
}

.lg-brand__ripple {
  position: absolute;
  left: 59.93%;
  top: 58.59%;
  width: 4.7%;
  aspect-ratio: 1;
  border: 2px solid var(--ks-red);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* the gauge lights up from low to high risk, then K, letters, ring, dot */
.lg-brand .ks-logo__bars path {
  animation: lg-bar .7s var(--ks-ease) both;
  animation-delay: calc(var(--t-bars) + var(--i) * 46ms);
}

.lg-brand .ks-logo__k {
  transform-box: fill-box;
  transform-origin: 20% 50%;
  animation: lg-k 1s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: var(--t-k);
}

.lg-brand .ks-logo__letters {
  animation: lg-rise .9s var(--ks-ease) both;
  animation-delay: var(--t-letters);
}

.lg-brand .ks-logo__ring-green {
  animation: lg-draw .85s cubic-bezier(.65, 0, .35, 1) both;
  animation-delay: var(--t-ring);
}

.lg-brand .ks-logo__ring-yellow {
  animation: lg-draw .5s cubic-bezier(.65, 0, .35, 1) both;
  animation-delay: calc(var(--t-ring) + .5s);
}

.lg-brand .ks-logo__dot {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: lg-pop .7s cubic-bezier(.34, 1.56, .64, 1) both;
  animation-delay: var(--t-dot);
}

.lg-brand__ripple {
  animation: lg-ripple 1.4s cubic-bezier(.2, .7, .3, 1); /* no fill: invisible before and after */
  animation-delay: calc(var(--t-dot) + .12s);
}

/* claim: Urbanist light, uppercase, wide tracking, like the artwork */
.lg-claim {
  position: relative;
  margin: clamp(18px, 3.6cqh, 38px) 0 0;
  font-family: var(--ks-font-display);
  font-weight: 300;
  font-size: clamp(11px, 1.74cqw, 15px);
  line-height: 1.9;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lg-claim);
  text-shadow: 0 0 1px rgba(0, 0, 0, .8), 0 1px 3px rgba(0, 0, 0, .7), 0 0 16px rgba(0, 0, 0, .6);
}

/* a feathered pill of night behind the claim: AA over the brightest fibres, corners included */
.lg-claim::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 6% 4%;
  border-radius: 999px;
  background: rgba(0, 0, 0, .5);
  box-shadow: 0 0 40px 28px rgba(0, 0, 0, .5);
}

.lg-claim strong {
  font-weight: 600;
  color: #fff;
}

.lg-claim__ln {
  display: block;
  padding-left: .2em; /* tracking leaves a trailing gap: re-centre the line */
  animation: lg-focus 1.1s var(--ks-ease) both;
  animation-delay: calc(var(--t-claim) + var(--l) * 140ms);
}

.lg-claim--short {
  display: none;
}

/* risk scale: the logo's 17 gauge bars, laid flat and labelled */
.lg-scale {
  position: absolute;
  z-index: 5;
  left: clamp(22px, 4.4cqw, 40px);
  top: clamp(22px, 4.4cqw, 38px);
  margin: 0;
  color: var(--lg-stage-muted);
  font-family: var(--ks-font-display);
  text-transform: uppercase;
}

.lg-scale__title {
  margin: 0 0 11px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .22em;
  animation: lg-fade-in 1s ease var(--t-bars) backwards;
}

.lg-scale__ticks {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 14px;
}

.lg-scale__ticks i {
  width: 2px;
  height: 14px;
  border-radius: 2px;
  background: var(--c);
  transform-origin: 50% 100%;
  animation: lg-tick .7s var(--ks-ease) both;
  animation-delay: calc(var(--t-bars) + var(--i) * 46ms);
}

.lg-scale__ticks i:nth-child(even) {
  height: 7px;
}

.lg-scale__ends {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .2em;
  animation: lg-fade-in 1s ease var(--t-ui) backwards;
}

/* pause the film (WCAG 2.2.2) */
.lg-pause {
  position: absolute;
  z-index: 5;
  right: clamp(16px, 3.4cqw, 30px);
  bottom: clamp(16px, 3.4cqw, 30px);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  background: rgba(3, 8, 23, .6);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .2s var(--ks-ease);
  animation: lg-fade-in 1s ease var(--t-ui) backwards;
}

.lg-pause:hover {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .45);
}

.lg-pause:active {
  transform: scale(.94);
}

.lg-pause:focus-visible {
  outline: 2px solid var(--ks-blue-300);
  outline-offset: 3px;
}

.lg-pause__pause {
  stroke-width: 2.2;
}

.lg-pause__play {
  display: none;
  fill: currentColor;
  stroke: none;
  margin-left: 2px;
}

.ks-motion-paused .lg-pause__pause {
  display: none;
}

.ks-motion-paused .lg-pause__play {
  display: block;
}


/* panel */

.lg-panel {
  grid-area: panel;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 clamp(28px, 4.2vw, 64px);
}

.lg-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--lg-panel-light);
  pointer-events: none;
}

.lg-bar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  height: 78px;
  animation: lg-fade-in .9s ease .35s backwards;
}

.lg-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 15px;
  border: 1px solid var(--lg-rule);
  border-radius: 999px;
  color: var(--lg-label);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  transition: border-color .2s, background-color .2s, color .2s;
}

.lg-pill .lg-i {
  width: 14px;
  height: 14px;
  transition: transform .3s var(--ks-ease);
}

.lg-pill:hover {
  color: var(--lg-title);
  border-color: var(--lg-field-border-hover);
  background: var(--lg-social-tint);
}

.lg-pill:hover .lg-i {
  transform: translate(2px, -2px);
}

.lg-pill:focus-visible {
  outline: 2px solid var(--lg-focus);
  outline-offset: 3px;
}

/* theme switch */
.lg-theme {
  --tg-bg: #e9eef6;
  --tg-border: #d3dbe8;
  --tg-icon: #7a869f;
  --tg-on: var(--ks-ink);
  --tg-thumb: #ffffff;
  --tg-thumb-shadow: 0 1px 2px rgba(10, 22, 51, .14), 0 4px 10px -3px rgba(10, 22, 51, .22);

  position: relative;
  flex: none;
  width: 64px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--tg-border);
  border-radius: 999px;
  background: var(--tg-bg);
  color: var(--tg-icon);
  font-size: 15px;
  cursor: pointer;
  transition: background-color .3s, border-color .3s;
}

[data-bs-theme=dark] .lg-theme {
  --tg-bg: #0a1430;
  --tg-border: rgba(110, 179, 255, .2);
  --tg-icon: #7d8bab;
  --tg-on: #ffffff;
  --tg-thumb: linear-gradient(140deg, #2f7bff, #0039d4);
  --tg-thumb-shadow: 0 0 0 1px rgba(110, 179, 255, .3), 0 4px 14px -2px rgba(0, 96, 250, .6);
}

.lg-theme__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--tg-thumb);
  box-shadow: var(--tg-thumb-shadow);
  transition: transform .55s cubic-bezier(.5, 1.6, .45, 1);
}

[data-bs-theme=dark] .lg-theme__thumb {
  transform: translateX(28px);
}

.lg-theme .lg-i {
  position: absolute;
  top: 50%;
  margin-top: -.5em;
  transition: color .3s, transform .55s cubic-bezier(.5, 1.6, .45, 1);
}

.lg-theme__sun {
  left: 10px;
  color: var(--tg-on);
}

.lg-theme__moon {
  right: 10px;
}

[data-bs-theme=dark] .lg-theme__sun {
  color: var(--tg-icon);
  transform: rotate(-45deg);
}

[data-bs-theme=dark] .lg-theme__moon {
  color: var(--tg-on);
}

.lg-theme:hover {
  border-color: var(--lg-field-border-hover);
}

.lg-theme:focus-visible {
  outline: 2px solid var(--lg-focus);
  outline-offset: 3px;
}

/* heading */
.lg-panel__body {
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  padding: 4px 0 36px;
}

.lg-card {
  width: 100%;
  max-width: 408px;
}

.lg-card > * {
  animation: lg-enter .9s var(--ks-ease) backwards;
}

.lg-card > :nth-child(1) { animation-delay: .12s; }
.lg-card > :nth-child(2) { animation-delay: .18s; }
.lg-card > :nth-child(3) { animation-delay: .24s; }
.lg-card > :nth-child(4) { animation-delay: .3s; }
.lg-card > :nth-child(5) { animation-delay: .38s; }
.lg-card > :nth-child(6) { animation-delay: .44s; }
.lg-card > :nth-child(7) { animation-delay: .5s; }

.lg-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  padding: 4px 13px 4px 4px;
  border-radius: 999px;
  background: var(--lg-chip-bg);
  color: var(--lg-chip-text);
  font-family: var(--ks-font-display);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.lg-chip__ring {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--lg-chip-ring);
  box-shadow: 0 1px 2px rgba(10, 22, 51, .1);
}

.lg-chip__ring svg {
  width: 15px;
  height: 15px;
}

.ks-auth .lg-title {
  margin: 0 0 10px;
  font-family: var(--ks-font-display);
  font-size: clamp(34px, 3vw, 44px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.03em;
  color: var(--lg-title);
}

.lg-title__dot {
  color: var(--ks-blue-500);
}

[data-bs-theme=dark] .lg-title__dot {
  color: var(--ks-blue-400);
}

.lg-lead {
  max-width: 36ch;
  margin: 0 0 30px;
  text-wrap: balance;
  font-size: 15px;
  line-height: 1.55;
  color: var(--lg-text);
}


/* form */

.lg-form {
  margin: 0;
}

.lg-field {
  margin-bottom: 18px;
}

.ks-auth .lg-field .form-label {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .01em;
  color: var(--lg-label);
}

.lg-control {
  position: relative;
}

/* a filament of the light arc under the active field */
.lg-control::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--ks-blue-300) 20%, var(--ks-blue-500) 50%, var(--ks-blue-300) 80%, transparent);
  opacity: 0;
  transform: scaleX(.2);
  transition: transform .55s var(--ks-ease), opacity .3s ease;
  pointer-events: none;
}

.lg-control:focus-within::after {
  opacity: 1;
  transform: scaleX(1);
}

.lg-control__icon {
  position: absolute;
  z-index: 2;
  left: 15px;
  top: 50%;
  margin-top: -.5em;
  font-size: 19px;
  color: var(--lg-icon);
  pointer-events: none;
  transition: color .2s;
}

.ks-auth .lg-control .form-control {
  height: var(--lg-field-h);
  padding: 0 16px 0 46px;
  border: 1px solid var(--lg-field-border);
  border-radius: var(--lg-r);
  background-color: var(--lg-field-bg);
  color: var(--lg-field-text);
  font-size: 15px;
  letter-spacing: .005em;
  box-shadow: var(--lg-field-shadow);
  transition: border-color .2s, box-shadow .25s, background-color .2s;
}

.ks-auth .lg-control .form-control::placeholder {
  color: var(--lg-placeholder) !important;
  opacity: 1 !important;
}

.ks-auth .lg-control .form-control:hover {
  border-color: var(--lg-field-border-hover);
}

.ks-auth .lg-control .form-control:focus {
  border-color: var(--lg-focus);
  background-color: var(--lg-field-bg-focus);
  box-shadow: var(--lg-ring);
  outline: 0;
}

.ks-auth .lg-control .form-control:-webkit-autofill {
  -webkit-text-fill-color: var(--lg-field-text);
  box-shadow: inset 0 0 0 100px var(--lg-autofill);
  caret-color: var(--lg-field-text);
}

.ks-auth .lg-control .form-control:-webkit-autofill:focus {
  box-shadow: inset 0 0 0 100px var(--lg-autofill), var(--lg-ring);
}

.lg-control:focus-within .lg-control__icon {
  color: var(--lg-focus);
}

/* password */
.ks-auth .lg-control--password .form-control {
  padding-right: 54px;
}

.lg-reveal {
  position: absolute;
  z-index: 2;
  right: 6px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--lg-icon);
  font-size: 20px;
  cursor: pointer;
  transition: color .2s, background-color .2s;
}

.lg-reveal:hover {
  color: var(--lg-label);
  background: var(--lg-reveal-hover);
}

.lg-reveal:focus-visible {
  outline: 2px solid var(--lg-focus);
  outline-offset: -2px;
  color: var(--lg-label);
}

.lg-reveal__hide,
.is-visible .lg-reveal__show {
  display: none;
}

.is-visible .lg-reveal__hide {
  display: block;
}

.lg-caps,
.lg-error {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
}

.lg-caps .lg-i,
.lg-error .lg-i {
  font-size: 15px;
}

.lg-caps {
  color: var(--lg-warn);
}

.lg-caps[hidden],
.lg-error {
  display: none;
}

.lg-error {
  color: var(--lg-danger);
}

.lg-field.is-invalid .lg-error {
  display: flex;
  animation: lg-enter .35s var(--ks-ease);
}

/* link to the Cruscotto site under the form */
.lg-alt {
  margin: 22px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--ks-muted);
}

.lg-alt a {
  font-weight: 600;
  color: var(--ks-link);
}

/* spam trap: off screen for people, still there for robots */
.lg-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* reCAPTCHA v2 checkbox (fixed 304px wide by Google) */
.lg-recaptcha {
  display: flex;
  justify-content: center;
  margin: 4px 0 18px;
  min-height: 78px;
}

/* form-level message (wrong credentials, disabled account) */
.lg-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--lg-danger) 40%, transparent);
  border-radius: var(--ks-radius-sm);
  background: color-mix(in srgb, var(--lg-danger) 9%, transparent);
  color: var(--lg-danger);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  animation: lg-enter .35s var(--ks-ease);
}

.lg-alert .lg-i {
  flex: none;
  font-size: 17px;
}

.ks-auth .lg-field.is-invalid .form-control,
.ks-auth .lg-field.is-invalid .form-control:hover {
  border-color: var(--lg-danger);
}

.ks-auth .lg-field.is-invalid .form-control:focus {
  box-shadow: 0 0 0 4px var(--lg-danger-ring);
}

.lg-field.is-invalid .lg-control__icon {
  color: var(--lg-danger);
}

.lg-field.is-invalid .lg-control::after {
  background: linear-gradient(90deg, transparent, var(--lg-danger) 50%, transparent);
}

/* remember + forgot */
.lg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 24px;
}

.ks-auth .lg-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.ks-auth .lg-switch .form-check-input {
  --bs-form-switch-bg: var(--lg-switch-knob);
  float: none;
  flex: none;
  width: 40px;
  height: 24px;
  margin: 0;
  border: 1px solid var(--lg-switch-border);
  background-color: var(--lg-switch-bg);
  background-size: 18px;
  background-position: 3px center;
  box-shadow: none;
  cursor: pointer;
  transition: background-position .3s var(--ks-ease), background-color .25s, border-color .25s, box-shadow .2s;
}

.ks-auth .lg-switch .form-check-input:checked {
  --bs-form-switch-bg: var(--lg-switch-knob-on);
  background-color: var(--ks-blue-500);
  border-color: var(--ks-blue-500);
  background-position: calc(100% - 3px) center;
}

.ks-auth .lg-switch .form-check-input:focus {
  --bs-form-switch-bg: var(--lg-switch-knob);
  border-color: var(--lg-switch-border);
  box-shadow: none;
}

.ks-auth .lg-switch .form-check-input:checked:focus {
  --bs-form-switch-bg: var(--lg-switch-knob-on);
  border-color: var(--ks-blue-500);
}

.ks-auth .lg-switch .form-check-input:focus-visible {
  border-color: var(--lg-focus);
  box-shadow: var(--lg-ring);
}

.ks-auth .lg-switch .form-check-label {
  color: var(--lg-text);
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.lg-link {
  color: var(--lg-link);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  padding-bottom: 1px;
  transition: background-size .35s var(--ks-ease), color .2s;
}

.lg-link:hover {
  color: var(--lg-link-hover);
  background-size: 100% 1px;
}

.lg-link:focus-visible {
  outline: 2px solid var(--lg-focus);
  outline-offset: 3px;
  border-radius: 3px;
}

/* submit */
.ks-auth .lg-form .lg-submit {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: var(--lg-cta-h);
  padding: 0 20px;
  overflow: hidden;
  border: 0;
  border-radius: var(--lg-r);
  background: linear-gradient(180deg, #0a5ff6 0%, #0050ea 100%);
  color: #fff;
  font-family: var(--ks-font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .03em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 -1px 0 rgba(0, 22, 82, .28),
    0 1px 2px rgba(0, 22, 82, .2),
    0 12px 24px -16px rgba(0, 96, 250, .75);
  transition: transform .25s var(--ks-ease), box-shadow .3s var(--ks-ease);
}

/* pointer glint */
.lg-submit::before,
.lg-social__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(160px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .1), transparent 70%);
  opacity: 0;
  transition: opacity .3s ease;
}

/* the arc's light passing through on hover */
.lg-submit::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(178, 221, 255, .12), transparent);
  transform: translateX(-130%) skewX(-18deg);
}

.ks-auth .lg-form .lg-submit:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #044fe6 0%, #0044d6 100%); /* deeper on hover: label stays AA under the glint + sheen */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 -1px 0 rgba(0, 22, 82, .28),
    0 1px 2px rgba(0, 22, 82, .2),
    0 20px 36px -16px rgba(0, 96, 250, .9);
}

.lg-submit:hover::before,
.lg-social__btn:hover::before {
  opacity: 1;
}

.lg-submit:hover::after {
  transform: translateX(300%) skewX(-18deg);
  transition: transform 1s var(--ks-ease);
}

.lg-submit__arrow {
  font-size: 19px;
  transition: transform .35s var(--ks-ease);
}

.lg-submit:hover .lg-submit__arrow {
  transform: translateX(4px);
}

.ks-auth .lg-form .lg-submit:active {
  transform: translateY(0) scale(.99);
  background: linear-gradient(180deg, #0050ea, #0039d4);
  box-shadow: inset 0 2px 5px rgba(0, 22, 82, .35), 0 6px 14px -8px rgba(0, 96, 250, .7);
}

.ks-auth .lg-form .lg-submit:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px var(--lg-page), 0 0 0 5px var(--lg-focus), 0 14px 28px -14px rgba(0, 96, 250, .8);
}

.lg-submit__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lg-spin .75s linear infinite;
}

.lg-submit.is-loading {
  pointer-events: none;
}

.lg-submit.is-loading .lg-submit__arrow {
  display: none;
}

.lg-submit.is-loading .lg-submit__spinner {
  display: block;
  order: -1;
}

/* divider + social */
.lg-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0 16px;
  color: var(--lg-muted);
  font-family: var(--ks-font-display);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.lg-divider::before,
.lg-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lg-rule));
}

.lg-divider::after {
  background: linear-gradient(270deg, transparent, var(--lg-rule));
}

.lg-social {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.lg-social__btn {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: var(--lg-social-h);
  padding: 0 10px;
  overflow: hidden;
  border: 1px solid var(--lg-social-border);
  border-radius: var(--lg-r);
  background: var(--lg-social-bg);
  color: var(--lg-label);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: border-color .2s, transform .25s var(--ks-ease), box-shadow .25s, background-color .2s;
}

.lg-social__btn::before {
  background: radial-gradient(140px circle at var(--gx, 50%) var(--gy, 50%), var(--lg-social-tint), transparent 70%);
}

.lg-social__btn:hover {
  border-color: var(--lg-field-border-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 22px -16px rgba(10, 22, 51, .4);
}

.lg-social__btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.lg-social__btn:focus-visible {
  outline: 2px solid var(--lg-focus);
  outline-offset: 2px;
}

.lg-social__btn img {
  width: 18px;
  height: 18px;
  flex: none;
}

.lg-signup {
  margin: 26px 0 0;
  color: var(--lg-text);
  font-size: 14px;
  text-align: center;
}

/* footer */
.lg-foot {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 18px 0 22px;
  border-top: 1px solid var(--lg-hairline);
  color: var(--lg-muted);
  font-size: 12.5px;
  animation: lg-fade-in .9s ease .5s backwards;
}

.lg-foot p {
  margin: 0;
}

.lg-foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.lg-foot a {
  color: var(--lg-muted);
  transition: color .2s;
}

.lg-foot a:hover {
  color: var(--lg-title);
}

.lg-foot a:focus-visible {
  outline: 2px solid var(--lg-focus);
  outline-offset: 3px;
  border-radius: 3px;
}

.lg-foot__demo {
  display: none;
}


/* entrance timeline */

@keyframes lg-fade-in {
  from { opacity: 0; }
}

@keyframes lg-enter {
  from { opacity: 0; transform: translateY(12px); }
}

@keyframes lg-ignite {
  from { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
  to { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
}

@keyframes lg-bar {
  0% { opacity: .14; }
  30% { opacity: 1; stroke: #ffffff; }
  100% { opacity: 1; }
}

@keyframes lg-tick {
  0% { opacity: .16; transform: scaleY(.45); }
  30% { opacity: 1; background: #ffffff; }
  100% { opacity: 1; transform: none; }
}

@keyframes lg-k {
  from { opacity: 0; transform: translateX(40px) scale(.94); }
  to { opacity: 1; transform: none; }
}

@keyframes lg-rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

@keyframes lg-draw {
  from { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
  to { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
}

@keyframes lg-pop {
  0% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes lg-ripple {
  0% { opacity: .9; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(4.6); }
}

@keyframes lg-focus {
  from { opacity: 0; filter: blur(7px); transform: translateY(10px); }
  to { opacity: 1; filter: none; transform: none; }
}

/* ambient light */
@keyframes lg-drift-a {
  from { transform: rotate(-1.1deg) translate3d(-.6%, .4%, 0); }
  to { transform: rotate(.9deg) translate3d(.6%, -.5%, 0); }
}

@keyframes lg-drift-b {
  from { transform: rotate(.9deg) translate3d(.5%, 0, 0); }
  to { transform: rotate(-1deg) translate3d(-.4%, .6%, 0); }
}

@keyframes lg-drift-c {
  from { transform: rotate(-.6deg); }
  to { transform: rotate(.75deg) translate3d(0, -.4%, 0); }
}

@keyframes lg-pulse {
  0% { stroke-dashoffset: .05; opacity: 0; }
  10% { opacity: 1; }
  72% { opacity: .9; }
  100% { stroke-dashoffset: -1.15; opacity: 0; }
}

@keyframes lg-spark {
  0% { stroke-dashoffset: .07; opacity: 0; }
  8% { opacity: 1; }
  80% { opacity: 1; }
  100% { stroke-dashoffset: -1.2; opacity: 0; }
}

@keyframes lg-breathe {
  from { opacity: .78; transform: scale(.97); }
  to { opacity: 1; transform: scale(1.03); }
}

@keyframes lg-spin {
  to { transform: rotate(360deg); }
}


/* responsive */

/* short laptops: tighten the vertical rhythm so the whole form fits */
@media (min-width: 992px) and (max-height: 820px) {
  :root {
    --lg-field-h: 46px;
    --lg-cta-h: 48px;
    --lg-social-h: 44px;
  }

  .lg-bar { height: 66px; }
  .lg-chip { margin-bottom: 16px; }
  .ks-auth .lg-title { font-size: clamp(32px, 2.7vw, 38px); }
  .lg-lead { margin-bottom: 22px; }
  .lg-field { margin-bottom: 14px; }
  .lg-row { margin-bottom: 18px; }
  .lg-divider { margin: 20px 0 13px; }
  .lg-signup { margin-top: 18px; }
  .lg-panel__body { padding-bottom: 20px; }
  .lg-foot { padding: 12px 0 16px; }
}

@media (max-width: 1199.98px) {
  .lg {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .lg-stage {
    --logo-w: clamp(240px, 66cqw, 460px);
  }

  .lg-claim {
    letter-spacing: .14em;
  }

  .lg-claim__ln {
    padding-left: .14em;
  }
}

/* phone + portrait tablet: the stage becomes a compact hero band above the form */
@media (max-width: 991.98px) {
  :root {
    --lg-gutter: 10px;
  }

  .lg {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "stage" "panel";
    min-height: 0;
  }

  .lg-stage {
    --arc-kw: 128;
    --arc-kh: 0;
    --arc-x: 50;
    --arc-y: 42;
    --lg-sw: 1.6;
    --logo-w: clamp(196px, 56cqw, 300px);

    position: relative;
    top: auto;
    height: 220px;
    height: clamp(200px, 26svh, 300px);
    margin: var(--lg-gutter) var(--lg-gutter) 0;
    border-radius: 22px;
    box-shadow: 0 16px 34px -24px rgba(0, 22, 82, .55), 0 0 0 1px var(--lg-stage-edge);
  }

  .lg-claim {
    display: none;
  }

  .lg-claim--short {
    display: block;
    margin-top: clamp(10px, 4cqh, 18px);
    font-size: 10.5px;
    line-height: 1.75;
    letter-spacing: .16em;
    animation: lg-focus 1.1s var(--ks-ease) var(--t-claim) both;
  }

  .lg-claim--short > span {
    display: block;
    padding-left: .16em;
  }

  .lg-claim--short::before {
    inset: 0 2%;
    box-shadow: 0 0 26px 18px rgba(0, 0, 0, .5);
  }

  .lg-scale {
    display: none;
  }

  .lg-pause {
    width: 32px;
    height: 32px;
    font-size: 14px;
    right: 12px;
    bottom: 12px;
  }

  .lg-panel {
    position: static;
    isolation: auto;
    min-height: 0;
    padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  }

  .lg-panel::before {
    display: none;
  }

  /* the theme switch rides on the stage band */
  .lg-bar {
    position: absolute;
    z-index: 10;
    top: calc(var(--lg-gutter) + 12px);
    right: calc(var(--lg-gutter) + 12px);
    height: auto;
  }

  .lg-pill {
    display: none;
  }

  .lg-theme,
  [data-bs-theme=dark] .lg-theme {
    --tg-bg: rgba(255, 255, 255, .08);
    --tg-border: rgba(255, 255, 255, .22);
    --tg-icon: rgba(255, 255, 255, .62);
    --tg-on: var(--ks-ink);
    --tg-thumb: #ffffff;
    --tg-thumb-shadow: 0 2px 8px rgba(0, 0, 0, .4);
    width: 58px;
    height: 32px;
    font-size: 14px;
  }

  [data-bs-theme=dark] .lg-theme {
    --tg-on: #ffffff;
    --tg-thumb: linear-gradient(140deg, #2f7bff, #0039d4);
  }

  .lg-theme__thumb {
    width: 24px;
    height: 24px;
  }

  [data-bs-theme=dark] .lg-theme__thumb {
    transform: translateX(26px);
  }

  .lg-theme__sun { left: 8px; }
  .lg-theme__moon { right: 8px; }

  .lg-theme:focus-visible {
    outline-color: var(--ks-blue-300);
  }

  .lg-panel__body {
    align-items: flex-start;
    padding: 26px 0 8px;
  }

  .lg-card {
    max-width: 440px;
  }

  .lg-chip {
    margin-bottom: 14px;
  }

  .ks-auth .lg-title {
    font-size: 32px;
    margin-bottom: 6px;
  }

  .lg-lead {
    margin-bottom: 22px;
    font-size: 14.5px;
  }

  .lg-field {
    margin-bottom: 14px;
  }

  .lg-row {
    margin-bottom: 20px;
  }

  .lg-divider {
    margin: 22px 0 14px;
  }

  .lg-signup {
    margin-top: 20px;
  }

  .lg-foot {
    justify-content: center;
    margin-top: 28px;
    padding: 16px 0 calc(18px + env(safe-area-inset-bottom));
    text-align: center;
  }

  .lg-foot__nav {
    justify-content: center;
  }

  .lg-foot__demo {
    display: inline;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .lg-panel__body {
    justify-content: center;
    padding-top: 40px;
  }
}

@media (max-width: 400px) {
  .lg-social {
    gap: 8px;
  }

  .lg-social__btn {
    gap: 7px;
    padding: 0 6px;
    font-size: 13px;
  }
}


/* motion: paused (the stage's pause button) */

.ks-motion-paused .lg-arc__svg,
.ks-motion-paused .lg-stage__core::after,
.ks-motion-paused .lg-pulse__core,
.ks-motion-paused .lg-pulse__halo {
  animation-play-state: paused;
}

.ks-motion-paused .lg-arc__pulses {
  opacity: 0;
}

/* motion: reduced (system setting) — the stage is shown fully composed, nothing moves */

@media (prefers-reduced-motion: reduce) {
  html body.ks-auth *,
  html body.ks-auth *::before,
  html body.ks-auth *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }

  .lg-arc__pulses,
  .lg-brand__ripple,
  .lg-pause {
    display: none;
  }

  .lg-arc__layer,
  .lg-brand {
    transform: none;
  }

  /* a loader is feedback, not decoration: keep it, slower */
  html body.ks-auth .lg-submit.is-loading .lg-submit__spinner {
    animation: lg-spin 1.6s linear infinite !important;
  }
}


/* fine light lines in the empty parts of the form panel (markup: .lg-flow in index.php) */

:root {
  --lg-flow-a: #0060fa;
  --lg-flow-b: #5aa5ff;
  --lg-flow-o: .8;
}

[data-bs-theme=dark] {
  --lg-flow-a: #2f7bff;
  --lg-flow-b: #8cc4ff;
  --lg-flow-o: 1;
}

.lg-flow {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  opacity: var(--lg-flow-o);
  animation: lg-fade-in 1.6s ease .5s backwards;
}

.lg-flow__svg {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  animation: lg-flow-drift 16s ease-in-out infinite alternate;
}

.lg-flow__top {
  top: 8%;
  height: 14%;
}

.lg-flow__mid {
  top: 47%;
  height: 9%;
  animation-delay: -6s;
}

.lg-flow__bottom {
  bottom: 5%;
  height: 15%;
  animation-delay: -10s;
}

.lg-flow__svg path {
  fill: none;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.lg-flow__a { stop-color: var(--lg-flow-a); }
.lg-flow__b { stop-color: var(--lg-flow-b); }

@keyframes lg-flow-drift {
  from { transform: translateY(0); }
  to { transform: translateY(-9px); }
}

.ks-motion-paused .lg-flow__svg {
  animation-play-state: paused;
}

/* stacked layout (phones, small tablets): the form takes the whole width and there is no empty space left for the lines */
@media (max-width: 991.98px) {
  .lg-flow {
    display: none;
  }
}
