/* Decorative Signature Login motion. Logged-out only. Never covers the real form. */
@media (prefers-reduced-motion: no-preference) {
  html:has(body.jobshub-pilot:not([data-approved-member="true"])) {
    background: #06101f;
  }
  body.jobshub-pilot:not([data-approved-member="true"]) {
    background:
      radial-gradient(ellipse at 16% 42%, #14386a 0, transparent 46%),
      radial-gradient(ellipse at 84% 72%, #3a2a12 0, transparent 34%),
      #06101f !important;
  }
}

body.jobshub-pilot:not([data-approved-member="true"]) .jobshub-main {
  position: relative;
  z-index: 1;
}

.jh-login-motion {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  direction: ltr;
  contain: strict;
}

.jh-login-motion svg,
.jh-login-motion span {
  pointer-events: none;
}

.jh-motion-map {
  position: absolute;
  left: 10px;
  top: 96px;
  width: min(240px, max(120px, calc((100vw - 1048px) / 2)));
  height: auto;
  opacity: .95;
}

.jh-map-land {
  fill: #8ec4ff;
  opacity: .72;
}

.jh-map-link {
  fill: none;
  stroke: #8fd0ff;
  stroke-width: 1;
  opacity: .28;
  stroke-dasharray: 4 10;
  animation: jh-link-drift 10s linear infinite;
}

.jh-map-node {
  fill: #8fd4ff;
  transform-box: fill-box;
  transform-origin: center;
  animation: jh-node-pulse 10s ease-in-out infinite;
  animation-delay: calc(var(--i) * .72s);
}

.jh-map-node.jh-node-gold {
  fill: #eab957;
}

.jh-motion-trails {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.jh-trail {
  fill: none;
  stroke-linecap: round;
  stroke-width: 6;
  stroke-dasharray: 130 70;
  animation: jh-trail-flow 10s linear infinite;
  filter: drop-shadow(0 0 6px rgba(120, 200, 255, .45));
}

.jh-trail-blue { stroke: url(#jh-trail-blue); }
.jh-trail-gold { stroke: url(#jh-trail-gold); animation-duration: 12s; animation-delay: -3s; }
.jh-trail-cyan { stroke: url(#jh-trail-cyan); animation-duration: 11s; animation-delay: -6s; stroke-width: 1.6; opacity: .8; }

.jh-stairs {
  position: absolute;
  right: 12px;
  bottom: 16px;
  width: min(220px, max(120px, calc((100vw - 1048px) / 2)));
  height: 210px;
  display: flex;
  align-items: flex-end;
  gap: 7px;
}

.jh-stairs i {
  display: block;
  flex: 1;
  height: calc(16% + var(--i) * 13%);
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, #f4fbff, #7ec8ff 18%, #1a4d8c 70%, #0c2748);
  box-shadow: 0 0 14px rgba(126, 200, 255, .35), inset 0 1px 0 #fff;
  opacity: .78;
  animation: jh-stair-rise 10s ease-in-out infinite;
  animation-delay: calc(var(--i) * .62s);
}

.jh-motion-arrow {
  position: absolute;
  right: 8px;
  bottom: 28px;
  width: min(200px, max(110px, calc((100vw - 1048px) / 2)));
  height: auto;
  overflow: visible;
}

.jh-arrow-base {
  fill: none;
  stroke: #eab957;
  stroke-width: 8;
  stroke-linecap: round;
  opacity: .28;
}

.jh-arrow-glint {
  fill: none;
  stroke: #fff4d2;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 18 82;
  animation: jh-arrow-rise 10s linear infinite;
}

.jh-arrow-head {
  fill: #eab957;
  opacity: .85;
  animation: jh-arrow-head 10s ease-in-out infinite;
}

.jh-float-icons {
  position: absolute;
  right: 10px;
  top: 108px;
  width: min(190px, max(110px, calc((100vw - 1048px) / 2)));
  height: 250px;
}

.jh-float-icons svg {
  position: absolute;
  width: 42px;
  height: 42px;
  opacity: .85;
  animation: jh-icon-glow 10s ease-in-out infinite;
  animation-delay: calc(var(--i) * .85s);
}

.jh-float-icons svg:nth-child(1) { right: 8%; top: 0; }
.jh-float-icons svg:nth-child(2) { right: 46%; top: 18%; }
.jh-float-icons svg:nth-child(3) { right: 4%; top: 34%; }
.jh-float-icons svg:nth-child(4) { right: 40%; top: 54%; }
.jh-float-icons svg:nth-child(5) { right: 12%; top: 72%; }

.jh-particle {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8fd4ff;
  opacity: .2;
  left: var(--x);
  top: var(--y);
  animation: jh-particle 11s ease-in-out infinite;
  animation-delay: var(--d);
}

.jh-particle:nth-child(odd) { background: #eab957; width: 4px; height: 4px; }

@media (prefers-reduced-motion: no-preference) {
  body.jobshub-pilot:not([data-approved-member="true"]):not(.jh-motion-paused) .jh-door-gold {
    animation: jh-poster-glow 10s ease-in-out infinite;
  }
  body.jobshub-pilot:not([data-approved-member="true"]):not(.jh-motion-paused) .jh-signature-benefits svg {
    animation: jh-benefit-glow 10s ease-in-out infinite;
  }
  body.jobshub-pilot:not([data-approved-member="true"]):not(.jh-motion-paused) .jh-signature-benefits > span:nth-child(2) svg { animation-delay: -3.2s; }
  body.jobshub-pilot:not([data-approved-member="true"]):not(.jh-motion-paused) .jh-signature-benefits > span:nth-child(3) svg { animation-delay: -6.4s; }
}

body.jh-motion-paused .jh-login-motion *,
body.jh-motion-hidden .jh-login-motion *,
body.jh-motion-paused .jh-door-gold,
body.jh-motion-paused .jh-signature-benefits svg,
body.jh-motion-hidden .jh-door-gold,
body.jh-motion-hidden .jh-signature-benefits svg {
  animation-play-state: paused !important;
}

.jh-product-header .jh-motion-toggle {
  position: static;
  margin-inline-start: auto;
  margin-inline-end: 8px;
}
.jh-motion-toggle :is(.sf-semantic-icon, [data-auto-icon], svg) { display: none !important; }
.jh-motion-toggle {
  position: fixed;
  z-index: 30;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  inset-inline-end: calc(14px + env(safe-area-inset-inline-end, 0px));
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #d5e2f2;
  background: #ffffffd9;
  color: #0d397d;
  font: 600 12.5px/1.2 "IBM Plex Sans Arabic", sans-serif;
  cursor: pointer;
  box-shadow: 0 6px 16px #06101f33;
}

.jh-motion-toggle:focus-visible {
  outline: 3px solid #eab957;
  outline-offset: 2px;
}

@keyframes jh-trail-flow { to { stroke-dashoffset: -400; } }
@keyframes jh-link-drift { to { stroke-dashoffset: -80; } }
@keyframes jh-node-pulse {
  0%, 100% { opacity: .28; }
  42% { opacity: 1; }
}
@keyframes jh-stair-rise {
  0%, 12% { opacity: .32; }
  34%, 52% { opacity: 1; }
  78%, 100% { opacity: .4; }
}
@keyframes jh-arrow-rise { to { stroke-dashoffset: -100; } }
@keyframes jh-arrow-head {
  0%, 100% { opacity: .45; }
  45% { opacity: 1; }
}
@keyframes jh-icon-glow {
  0%, 100% { opacity: .38; transform: translate3d(0, 0, 0); }
  50% { opacity: .95; transform: translate3d(0, -6px, 0); }
}
@keyframes jh-particle {
  0%, 100% { opacity: .12; transform: translate3d(0, 0, 0); }
  50% { opacity: .75; transform: translate3d(0, -16px, 0); }
}
@keyframes jh-poster-glow {
  0%, 100% { opacity: .18; }
  50% { opacity: .38; }
}
@keyframes jh-benefit-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(234, 185, 87, 0); }
  46% { box-shadow: 0 0 10px 1px rgba(234, 185, 87, .55); }
}

@media (max-width: 1100px) {
  .jh-motion-map { width: 46vw; left: -6vw; top: auto; bottom: -4vh; opacity: .4; }
  .jh-stairs, .jh-motion-arrow, .jh-float-icons { width: 34vw; opacity: .55; }
  .jh-stairs { height: 120px; }
  .jh-float-icons { height: 150px; top: auto; bottom: 108px; }
  .jh-float-icons svg { width: 30px; height: 30px; }
  .jh-particle:nth-child(n + 9) { display: none; }
}

@media (max-width: 760px) {
  .jh-motion-map { width: 78vw; opacity: .32; }
  .jh-stairs { height: 84px; bottom: 8px; }
  .jh-motion-toggle { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .jh-login-motion { display: none !important; }
  body.jobshub-pilot:not([data-approved-member="true"]) .jh-door-gold,
  body.jobshub-pilot:not([data-approved-member="true"]) .jh-signature-benefits svg {
    animation: none !important;
  }
}
