/* Infinium Robotics · customer portal sign-in
   Brand: teal #16BDCF (the infinity mark), graphite #404042 (the wordmark). */

@font-face {
  font-family: "Space Grotesk";
  src: url("/login-assets/fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/login-assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --teal: #16bdcf;
  --teal-hi: #5fe3f0;
  --teal-lo: #0e97a8;
  --ink: #060b16;
  --ink-2: #0b1424;
  --line: rgba(255, 255, 255, .1);
  --text: #eaf1f8;
  --muted: #9aa9bd;
  --faint: #6b7a8f;
  --ok: #3ddc97;
  --err: #ff8e8e;
  --radius: 20px;
  --display: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
a { color: inherit; }
svg { display: block; }

/* ── Stage: photo, shade, grid, scan, reads, drone ───────────────────────── */
.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  container-type: size;
}
/* The photo's box, fitted like object-fit: cover with the object-position given by
   left/top (the translate by the same percentages of its own size completes it). */
.plate {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100vw, calc(100vh * 1616 / 903));          /* fallback without container units */
  width: max(100cqw, calc(100cqh * 1616 / 903));
  aspect-ratio: 1616 / 903;
  transform: translate(-50%, -50%);
}
.plate-drift {
  position: absolute;
  inset: 0;
  animation: drift 38s ease-in-out infinite alternate;
  transform-origin: 50% 44%;
}
.plate-photo {
  display: block;
  width: 100%;
  height: 100%;
  filter: saturate(.85) contrast(1.05) brightness(.9);
}
.fleet { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
@keyframes drift {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}
.stage-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 12% 85%, rgba(22, 189, 207, .16), transparent 60%),
    linear-gradient(90deg, rgba(6, 11, 22, .97) 0%, rgba(6, 11, 22, .9) 30%, rgba(6, 11, 22, .55) 58%, rgba(6, 11, 22, .38) 78%, rgba(6, 11, 22, .6) 100%),
    linear-gradient(180deg, rgba(6, 11, 22, .55) 0%, transparent 22%, transparent 70%, rgba(6, 11, 22, .85) 100%);
}
.stage-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(22, 189, 207, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 189, 207, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 80% at 72% 50%, #000 0%, transparent 75%);
          mask-image: radial-gradient(70% 80% at 72% 50%, #000 0%, transparent 75%);
}

/* Scan beam sweeping the racking */
.scan {
  position: absolute;
  left: 46%;
  right: 3%;
  top: 12%;
  height: 76%;
}
.scan-line, .scan-trail {
  position: absolute;
  left: 0;
  right: 0;
  animation: sweep 7s cubic-bezier(.45, .05, .55, .95) infinite alternate;
}
.scan-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal-hi) 18%, var(--teal) 50%, var(--teal-hi) 82%, transparent);
  box-shadow: 0 0 18px 2px rgba(22, 189, 207, .65), 0 0 60px 8px rgba(22, 189, 207, .25);
}
.scan-trail {
  height: 90px;
  margin-top: -90px;
  background: linear-gradient(180deg, transparent, rgba(22, 189, 207, .12));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}
@keyframes sweep {
  from { top: 0%; }
  to   { top: 100%; }
}

/* Label reads: corner brackets that lock on, then fade. Positioned in the photo's own
   coordinates (percent of the 1616×903 plate), so each stays on its pallet. */
.read {
  position: absolute;
  opacity: 0;
  animation: lock 7.5s ease-out infinite;
  --c: var(--ok);
  --k: 14px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--k) 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 2px var(--k) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--k) 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 2px var(--k) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--k) 2px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 2px var(--k) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--k) 2px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 2px var(--k) no-repeat,
    rgba(61, 220, 151, .08);
  filter: drop-shadow(0 0 6px rgba(61, 220, 151, .55));
}
.read-tag {
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 6px;
  border-radius: 6px;
  background: rgba(6, 11, 22, .8);
  border: 1px solid rgba(61, 220, 151, .45);
  color: #c9f7e2;
  font: 600 11px/1.2 var(--body);
  letter-spacing: .02em;
  white-space: nowrap;
}
.read-tag i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ok);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.2-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.2-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* Starting spots, in photo pixels: read-1 the right-hand rack face by the aisle
   (858–930, 470–534), read-2 the rack behind the free-standing pallet stack (642–700,
   118–184), read-4 the far-right rack (1440–1514, 380–444). login.js then moves each
   read to its next pallet every time it locks on, skipping spots the text or the
   sign-in card would cover. The three are staggered by a third of the cycle, so one
   is always locking on. */
.read--1 { left: 53.09%; top: 52.05%; width: 4.46%; height: 7.09%; animation-delay: .4s; }
.read--1 .read-tag { left: auto; right: 0; }
.read--2 { left: 39.73%; top: 13.07%; width: 3.59%; height: 7.31%; animation-delay: 2.9s; }
.read--4 { left: 89.11%; top: 42.08%; width: 4.58%; height: 7.09%; animation-delay: 5.4s; }
/* nothing fits for this cycle at this window size */
.read--off { visibility: hidden; }
@keyframes lock {
  0%   { opacity: 0; transform: scale(1.35); }
  6%   { opacity: 1; transform: scale(1); }
  30%  { opacity: 1; transform: scale(1); }
  40%  { opacity: 0; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(16px, 4vw, 56px) 0;
}
.brand { display: inline-flex; border-radius: 8px; }
.brand img { width: clamp(132px, 12vw, 176px); height: auto; }
.brand:focus-visible { outline: 2px solid var(--teal); outline-offset: 6px; }
.top-tag {
  font: 600 12px/1 var(--body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 11, 22, .45);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}

/* ── Layout ─────────────────────────────────────────────────────────────── */
.layout {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(24px, 5vh, 64px) clamp(16px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 440px);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}

/* Pitch */
.pitch { max-width: 600px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(22, 189, 207, .35);
  background: rgba(22, 189, 207, .08);
  color: #bdf1f7;
  font: 600 13px/1 var(--body);
  letter-spacing: .02em;
}
.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
}
.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  animation: ping 2.4s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes ping {
  0% { transform: scale(.6); opacity: .9; }
  80%, 100% { transform: scale(2.2); opacity: 0; }
}
h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 4.8vw, 68px);
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.accent {
  background: linear-gradient(92deg, var(--teal-hi) 0%, var(--teal) 45%, #e9fbff 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.lede {
  margin: 24px 0 0;
  max-width: 46ch;
  font-size: clamp(16px, 1.25vw, 18.5px);
  line-height: 1.6;
  color: #b9c6d6;
}
.features {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.features li { flex-direction: row; align-items: flex-start; gap: 14px; }
.features svg { flex: none; margin-top: 2px; }
.features li {
  display: flex;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}
.features svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.features span { font-size: 13px; line-height: 1.45; color: var(--muted); }
.features strong { display: block; margin-bottom: 2px; font-size: 14px; font-weight: 600; color: var(--text); }

/* ── Card ───────────────────────────────────────────────────────────────── */
.card {
  position: relative;
  padding: clamp(24px, 3vw, 38px);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14, 24, 42, .78), rgba(8, 14, 27, .82));
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .06) inset,
    0 30px 80px -20px rgba(0, 0, 0, .75),
    0 0 0 1px rgba(22, 189, 207, .05);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
          backdrop-filter: blur(18px) saturate(140%);
  animation: rise .7s cubic-bezier(.2, .8, .2, 1) both .1s;
}
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(95, 227, 240, .55), rgba(22, 189, 207, 0) 35%, rgba(22, 189, 207, 0) 70%, rgba(95, 227, 240, .25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.pitch { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 600 12px/1 var(--body);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
}
.card-badge svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.card-head h2 {
  margin: 14px 0 6px;
  font-family: var(--display);
  font-size: clamp(24px, 2.1vw, 30px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.card-head p { margin: 0; color: var(--muted); font-size: 14.5px; }

.notice {
  margin: 20px 0 0;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
  border: 1px solid;
}
.notice--err { color: #ffd0d0; background: rgba(255, 110, 110, .1); border-color: rgba(255, 142, 142, .35); }
.notice--ok  { color: #c9f7e2; background: rgba(61, 220, 151, .1); border-color: rgba(61, 220, 151, .35); }
.notice--info { color: #cdeff4; background: rgba(22, 189, 207, .1); border-color: rgba(22, 189, 207, .35); }

.form { margin-top: 24px; display: flex; flex-direction: column; gap: 18px; }
.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #c9d4e2;
}
.control { position: relative; }
.control > svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--faint);
  stroke-width: 1.8;
  stroke-linecap: round;
  pointer-events: none;
  transition: stroke .2s;
}
.control input {
  width: 100%;
  height: 50px;
  padding: 0 48px 0 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .045);
  color: var(--text);
  font: 500 16px/1 var(--body);
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.control input:hover { border-color: rgba(255, 255, 255, .2); }
.control input:focus {
  border-color: var(--teal);
  background: rgba(22, 189, 207, .06);
  box-shadow: 0 0 0 4px rgba(22, 189, 207, .18);
}
.control:focus-within > svg { stroke: var(--teal); }
.control input[aria-invalid="true"] { border-color: rgba(255, 142, 142, .6); }
.control input:-webkit-autofill,
.control input:-webkit-autofill:hover,
.control input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px #0f1c2e inset;
  caret-color: var(--text);
  transition: background-color 9999s;
}

.reveal {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
}
.reveal:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.reveal:focus-visible { outline: 2px solid var(--teal); outline-offset: 0; color: var(--text); }
.reveal svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.reveal .eye-shut { display: none; }
.reveal[aria-pressed="true"] .eye-open { display: none; }
.reveal[aria-pressed="true"] .eye-shut { display: block; }

.submit {
  position: relative;
  margin-top: 6px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal-hi) 0%, var(--teal) 45%, var(--teal-lo) 100%);
  color: #032a31;
  font: 700 16px/1 var(--body);
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 10px 30px -8px rgba(22, 189, 207, .65), 0 1px 0 rgba(255, 255, 255, .35) inset;
  transition: transform .15s, box-shadow .2s, filter .2s;
  overflow: hidden;
}
.submit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s;
}
.submit:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -8px rgba(22, 189, 207, .8), 0 1px 0 rgba(255, 255, 255, .35) inset; }
.submit:hover::after { transform: translateX(120%); }
.submit:active { transform: translateY(0); filter: brightness(.95); }
.submit:focus-visible { outline: 3px solid #e9fbff; outline-offset: 3px; }
.submit-arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.submit:hover .submit-arrow { transform: translateX(3px); }
.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(3, 42, 49, .3);
  border-top-color: #032a31;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.submit[aria-busy="true"] { cursor: progress; }
.submit[aria-busy="true"] .submit-arrow { display: none; }
.submit[aria-busy="true"] .spinner { display: block; }

.card-foot {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13px;
  line-height: 1.5;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 0 clamp(16px, 4vw, 56px) 24px;
  font-size: 12.5px;
  color: var(--faint);
}
.foot a { text-decoration: none; color: var(--muted); }
.foot a:hover { color: var(--text); }
.foot a:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* ── Short laptop screens: tighten the pitch ────────────────────────────── */
@media (min-width: 881px) and (max-height: 820px) {
  .features { display: none; }
  .layout { padding-top: 16px; padding-bottom: 16px; }
}

/* ── Tablet and phone ───────────────────────────────────────────────────── */
@media (max-width: 880px) {
  /* The photo becomes a band at the top with the headline below it, so the drones in
     the aisle never cross text. */
  .stage {
    position: absolute;
    height: 360px;
    bottom: auto;
  }
  .plate { top: 40%; transform: translate(-50%, -40%); }
  .plate-drift { animation-duration: 30s; }
  .stage-shade {
    background:
      linear-gradient(180deg, rgba(6, 11, 22, .55) 0%, rgba(6, 11, 22, .2) 28%, rgba(6, 11, 22, .35) 62%, var(--ink) 100%);
  }
  .stage-grid { -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent 75%); mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent 75%); }
  .scan { left: 6%; right: 6%; top: 18%; height: 30%; }
  .read { --k: 9px; }
  .read-tag { font-size: 10px; padding: 2px 6px 2px 5px; gap: 4px; }
  .read-tag i { width: 10px; height: 10px; }

  .top { padding-top: 18px; }
  .top-tag { font-size: 11px; padding: 7px 10px; }

  /* One column: headline over the photo, then the sign-in card, then the features.
     .pitch dissolves (display: contents) so its children can be ordered around the card. */
  .layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding-top: 300px;
    padding-bottom: 28px;
  }
  .pitch { display: contents; }
  .eyebrow { order: 1; align-self: flex-start; margin: 0 0 4px; font-size: 12px; }
  h1 { order: 2; }
  .lede { order: 3; margin: 2px 0 0; font-size: 15.5px; }
  .card { order: 4; margin-top: 14px; }
  .features { order: 5; grid-template-columns: 1fr; gap: 8px; margin: 12px 0 0; }
  .features li { flex-direction: row; align-items: center; gap: 14px; padding: 12px 14px; }
  .features svg { flex: none; }
}
/* Phones: a gentler zoom keeps the reads near the band's edges on screen. */
@media (max-width: 480px) {
  .plate-drift { animation-name: drift-sm; }
}
@keyframes drift-sm {
  from { transform: scale(1); }
  to   { transform: scale(1.03); }
}
@media (max-width: 420px) {
  .layout { padding-top: 284px; }
}

/* ── Motion preferences ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .read { opacity: 1; }
  .read--4 { opacity: 0; }
  .scan-line, .scan-trail { top: 45%; }
}

/* ── Browsers without backdrop blur: solid cards ────────────────────────── */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .card { background: #0c1628; }
  .features li { background: rgba(12, 22, 40, .9); }
}
