/* ============================================================
   letest-administration.css — NEW file (prototype_letest only).
   Section 1 is a verbatim copy of the inline <style> block in index.html
   (the .lx-* split-screen sign-in design) so otp.html and the other auth
   pages can share it; index.html keeps its own inline copy untouched.
   Section 2 adds the classes the app's globals.css defines for the same
   flow (.lx-alert, .lx-otp-*, .lx-step-chip, .lx-sent-to, .lx-linkbtn,
   .lx-panel-eyebrow) plus the GuestCard layout used by the standalone
   auth pages and a few Administration page helpers.
   No existing css/*.css rule is changed.
   ============================================================ */

/* ============================================================
       CONNEXA — Sign-in (full-bleed split)

       Edge-to-edge: the viewport IS the layout. Left is a live
       "network" stage rendered on canvas; right is the credential
       column. Nothing is centred inside a card — the two halves each
       own their full column height and scroll independently.
       ============================================================ */

.lx-auth {
  --stage-ink: #05080f;
  --stage-ink-2: #0a1024;
  --hair: rgba(255, 255, 255, 0.09);
  --hair-strong: rgba(255, 255, 255, 0.16);
  --on-stage: rgba(255, 255, 255, 0.62);

  --panel: #ffffff;
  --panel-sunk: #f5f7fc;
  --panel-line: #e4e8f1;
  --ink: #0e1430;
  --ink-soft: #5b6483;
  --ink-faint: #8e97b2;
  --accent: #4f46e5;
  --accent-soft: #eef2ff;
}

[data-theme='dark'] .lx-auth {
  --panel: #0d1326;
  --panel-sunk: #101833;
  --panel-line: rgba(255, 255, 255, 0.1);
  --ink: #eef1fa;
  --ink-soft: #9aa4c4;
  --ink-faint: #6d769a;
  --accent: #7c7bff;
  --accent-soft: rgba(124, 123, 255, 0.14);
}

html,
body {
  height: 100%;
}

body.lx-auth {
  margin: 0;
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  background: var(--stage-ink);
  color: var(--ink);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.lx-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(430px, 0.85fr);
  height: 100vh;
  height: 100dvh;
  width: 100vw;
}

/* ── Stage (left) ───────────────────────────────────────── */

.lx-stage {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      120% 90% at 8% 0%,
      rgba(79, 70, 229, 0.42),
      transparent 55%
    ),
    radial-gradient(
      90% 80% at 100% 12%,
      rgba(8, 145, 178, 0.34),
      transparent 52%
    ),
    radial-gradient(
      90% 90% at 80% 100%,
      rgba(249, 115, 98, 0.24),
      transparent 55%
    ),
    linear-gradient(160deg, var(--stage-ink-2) 0%, var(--stage-ink) 68%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 3.4vw, 52px);
  color: #fff;
  isolation: isolate;
}

/* Drifting aurora — two counter-rotating blobs behind the canvas. */
.lx-aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  z-index: -2;
  pointer-events: none;
  will-change: transform;
}
.lx-aurora.one {
  width: 46vw;
  height: 46vw;
  top: -14vw;
  left: -10vw;
  background: radial-gradient(circle, #6366f1, transparent 66%);
  animation: lx-drift-a 26s ease-in-out infinite;
}
.lx-aurora.two {
  width: 38vw;
  height: 38vw;
  bottom: -12vw;
  right: -8vw;
  background: radial-gradient(circle, #06b6d4, transparent 66%);
  animation: lx-drift-b 32s ease-in-out infinite;
}

@keyframes lx-drift-a {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(6vw, 5vw, 0) scale(1.14);
  }
}
@keyframes lx-drift-b {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1.08);
  }
  50% {
    transform: translate3d(-7vw, -4vw, 0) scale(0.92);
  }
}

#lxNetwork {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.85;
}

/* Fine grid overlay for the "console" read. */
.lx-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 100% at 30% 20%, #000 40%, transparent 78%);
  -webkit-mask-image: radial-gradient(
    120% 100% at 30% 20%,
    #000 40%,
    transparent 78%
  );
}

.lx-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.lx-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-decoration: none;
  color: #fff;
}
.lx-brand:hover {
  text-decoration: none;
  color: #fff;
}

.lx-brand-logo {
  height: 30px;
  width: auto;
  display: block;
}

.lx-brand-sub {
  font-size: 11px;
  color: var(--on-stage);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lx-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--hair);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
}
.lx-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.65);
  animation: lx-pulse 2.2s infinite;
}
@keyframes lx-pulse {
  70% {
    box-shadow: 0 0 0 9px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

/* Rotating message deck. */
.lx-stage-body {
  max-width: 640px;
}

.lx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
}
.lx-eyebrow i {
  color: #22d3ee;
}

.lx-deck {
  position: relative;
  min-height: 232px;
}

.lx-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.55s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.lx-slide.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.lx-slide h1 {
  font-size: clamp(30px, 3.3vw, 50px);
  line-height: 1.03;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin: 0 0 16px;
}
.lx-slide h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #a5b4fc, #67e8f9 55%, #fda4af);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lx-slide p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--on-stage);
  max-width: 500px;
}

.lx-deck-nav {
  display: flex;
  gap: 9px;
  margin-top: 26px;
}
.lx-deck-nav button {
  width: 46px;
  height: 3px;
  border: 0;
  padding: 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.lx-deck-nav button span {
  position: absolute;
  inset: 0;
  width: 0;
  background: #fff;
  border-radius: 3px;
}
.lx-deck-nav button.is-on span {
  animation: lx-fill 7s linear forwards;
}
@keyframes lx-fill {
  to {
    width: 100%;
  }
}

/* Metric strip. */
.lx-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(14px);
}
.lx-metric {
  padding: 18px 18px 16px;
  background: rgba(9, 13, 28, 0.55);
  transition: background 0.25s ease;
}
.lx-metric:hover {
  background: rgba(99, 102, 241, 0.16);
}

.lx-metric-v {
  font-size: clamp(19px, 1.7vw, 25px);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.lx-metric-l {
  margin-top: 7px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lx-stage-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
  margin-top: 22px;
}
.lx-clock {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* ── Panel (right) ──────────────────────────────────────── */

.lx-panel {
  background: var(--panel);
  border-left: 1px solid var(--panel-line);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  position: relative;
}

.lx-panel-head {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px clamp(26px, 3vw, 48px);
  background: var(--panel);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.lx-panel.is-scrolled .lx-panel-head {
  border-bottom-color: var(--panel-line);
}

.lx-ghost {
  border: 1px solid var(--panel-line);
  background: transparent;
  color: var(--ink-soft);
  height: 34px;
  padding: 0 13px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.lx-ghost:hover {
  color: var(--ink);
  border-color: var(--ink-faint);
  background: var(--panel-sunk);
}
.lx-ghost.icon {
  width: 34px;
  padding: 0;
  justify-content: center;
}

.lx-form-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px clamp(26px, 3vw, 48px) 24px;
}
.lx-form-inner {
  width: 100%;
  max-width: 396px;
  margin: 0 auto;
}

.lx-h {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 7px;
}
.lx-sub {
  margin: 0 0 26px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Role selector — three columns, keyboard-navigable. */
.lx-roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}
.lx-role {
  border: 1px solid var(--panel-line);
  background: var(--panel-sunk);
  border-radius: 12px;
  padding: 13px 9px 11px;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s ease;
  position: relative;
}
.lx-role i {
  font-size: 15px;
  color: var(--ink-faint);
  transition: color 0.18s ease;
}
.lx-role b {
  display: block;
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: color 0.18s ease;
}
.lx-role:hover {
  border-color: var(--ink-faint);
}
.lx-role.is-on {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}
.lx-role.is-on i,
.lx-role.is-on b {
  color: var(--accent);
}

/* Floating-label fields. */
.lx-field {
  position: relative;
  margin-bottom: 15px;
}

.lx-field input {
  width: 100%;
  height: 56px;
  padding: 22px 44px 7px 14px;
  border: 1px solid var(--panel-line);
  border-radius: 12px;
  background: var(--panel-sunk);
  color: var(--ink);
  font-size: 14.5px;
  font-family: inherit;
  font-weight: 500;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}
.lx-field input::placeholder {
  color: transparent;
}
.lx-field input:focus {
  border-color: var(--accent);
  background: var(--panel);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 13%, transparent);
}

.lx-field label {
  position: absolute;
  left: 15px;
  top: 18px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-faint);
  pointer-events: none;
  transform-origin: left top;
  transition:
    transform 0.16s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.16s ease;
}
.lx-field input:focus + label,
.lx-field input:not(:placeholder-shown) + label {
  transform: translateY(-10px) scale(0.76);
  color: var(--ink-soft);
}
.lx-field input:focus + label {
  color: var(--accent);
}

.lx-field-btn {
  position: absolute;
  right: 8px;
  top: 11px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-faint);
  cursor: pointer;
  transition: all 0.16s ease;
}
.lx-field-btn:hover {
  background: var(--panel-line);
  color: var(--ink);
}
.lx-field input::-ms-reveal,
.lx-field input::-ms-clear {
  display: none;
}

.lx-field.is-bad input {
  border-color: var(--danger, #dc2626);
  background: rgba(220, 38, 38, 0.05);
}
.lx-field.is-bad input:focus {
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.13);
}
.lx-field.is-bad {
  animation: lx-shake 0.32s ease;
}
@keyframes lx-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}

.lx-msg {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--danger, #dc2626);
}
.lx-msg.is-on {
  display: flex;
}

.lx-caps {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--warning, #d97706);
}
.lx-caps.is-on {
  display: flex;
}

/* Strength meter. */
.lx-strength {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.2s ease;
}
.lx-strength.is-on {
  opacity: 1;
  height: auto;
}
.lx-strength-bars {
  display: flex;
  gap: 4px;
  flex: 1;
}
.lx-strength-bars i {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: var(--panel-line);
  transition: background 0.25s ease;
}
.lx-strength-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  min-width: 52px;
  text-align: right;
}

/* Row: switch + link. */
.lx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 20px;
}
.lx-switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}
.lx-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.lx-switch-track {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: var(--panel-line);
  position: relative;
  transition: background 0.2s ease;
  flex-shrink: 0;
}
.lx-switch-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.lx-switch input:checked + .lx-switch-track {
  background: var(--accent);
}
.lx-switch input:checked + .lx-switch-track::after {
  transform: translateX(16px);
}
.lx-switch input:focus-visible + .lx-switch-track {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}

.lx-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.lx-link:hover {
  text-decoration: underline;
  color: var(--accent);
}

/* Submit. */
.lx-submit {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #4f46e5, #6366f1 55%, #0891b2);
  background-size: 180% 180%;
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-shadow: 0 12px 28px -10px rgba(79, 70, 229, 0.7);
  transition:
    transform 0.16s ease,
    box-shadow 0.2s ease,
    background-position 0.5s ease;
}
.lx-submit:hover {
  background-position: 100% 0;
  box-shadow: 0 16px 34px -10px rgba(79, 70, 229, 0.8);
}
.lx-submit:active {
  transform: translateY(1px);
}
.lx-submit[disabled] {
  cursor: progress;
  opacity: 0.96;
}
.lx-submit .lx-spin {
  display: none;
}
.lx-submit.is-busy .lx-txt,
.lx-submit.is-busy .fa-arrow-right-to-bracket {
  display: none;
}
.lx-submit.is-busy .lx-spin {
  display: inline-block;
}
.lx-submit.is-done {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

/* Ripple. */
.lx-ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.42);
  animation: lx-ripple 0.6s linear;
  pointer-events: none;
}
@keyframes lx-ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.lx-hint {
  margin-top: 14px;
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-faint);
}
.lx-kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--panel-line);
  border-bottom-width: 2px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--panel-sunk);
}

/* Device disclosure. */
.lx-device {
  margin-top: 26px;
  border: 1px solid var(--panel-line);
  border-radius: 12px;
  background: var(--panel-sunk);
  overflow: hidden;
}
.lx-device-btn {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
}
.lx-device-btn .lx-chev {
  margin-left: auto;
  transition: transform 0.22s ease;
  font-size: 11px;
}
.lx-device.is-open .lx-chev {
  transform: rotate(180deg);
}
.lx-device-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.lx-device.is-open .lx-device-body {
  grid-template-rows: 1fr;
}
.lx-device-body > div {
  overflow: hidden;
}
.lx-device dl {
  margin: 0;
  padding: 2px 14px 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 14px;
  font-size: 12px;
}
.lx-device dt {
  color: var(--ink-faint);
  white-space: nowrap;
}
.lx-device dd {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lx-panel-foot {
  padding: 16px clamp(26px, 3vw, 48px) 20px;
  border-top: 1px solid var(--panel-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11.5px;
  color: var(--ink-faint);
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 1080px) {
  body.lx-auth {
    overflow: auto;
  }
  .lx-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100dvh;
  }
  .lx-stage {
    min-height: 62vh;
    padding: 26px;
  }
  .lx-deck {
    min-height: 200px;
  }
  .lx-panel {
    border-left: 0;
    border-top: 1px solid var(--panel-line);
  }
  .lx-form-wrap {
    padding-top: 26px;
    padding-bottom: 32px;
  }
}

@media (max-width: 620px) {
  .lx-stage {
    min-height: auto;
    padding: 22px 18px 26px;
  }
  .lx-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .lx-slide h1 {
    font-size: 28px;
  }
  .lx-deck {
    min-height: 230px;
  }
  .lx-stage-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .lx-roles {
    grid-template-columns: 1fr;
  }
  .lx-role {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    padding: 11px 13px;
  }
  .lx-role b {
    margin-top: 0;
  }
  .lx-panel-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lx-aurora,
  .lx-dot,
  .lx-deck-nav button.is-on span {
    animation: none !important;
  }
  .lx-slide {
    transition: opacity 0.2s linear;
    transform: none;
  }
  .lx-field.is-bad {
    animation: none;
  }
}

/* ============================================================
   Section 2 — additions (app parity)
   ============================================================ */

/* Panel eyebrow (app: .lx-panel-eyebrow) */
.lx-panel-eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-faint);
}

/* Alerts inside the sign-in panel (status / error banners) */
.lx-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 13px;
  border-radius: 11px;
  font-size: 12.8px;
  line-height: 1.5;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.lx-alert-danger {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.24);
  color: #dc2626;
}
.lx-alert-success {
  background: rgba(22, 163, 74, 0.1);
  border-color: rgba(22, 163, 74, 0.24);
  color: #16a34a;
}
.lx-alert-close {
  margin-left: auto;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
  opacity: 0.65;
  font-size: 15px;
  line-height: 1;
}
.lx-alert-close:hover {
  opacity: 1;
}

/* OTP: six boxes driven by one hidden input */
.lx-otp-wrap {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 6px;
  cursor: text;
}
.lx-otp-hidden {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: text;
}
.lx-otp-box {
  height: 58px;
  border: 1px solid var(--panel-line);
  border-radius: 12px;
  background: var(--panel-sunk);
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}
.lx-otp-box.is-filled {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.lx-otp-box.is-active {
  border-color: var(--accent);
  background: var(--panel);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.13);
}
.lx-sent-to {
  border: 1px solid var(--panel-line);
  background: var(--panel-sunk);
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.lx-sent-to strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
  margin-bottom: 3px;
}
.lx-step-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}
.lx-inline-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.lx-linkbtn {
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
}
.lx-linkbtn:hover {
  text-decoration: underline;
}
.lx-linkbtn[disabled] {
  opacity: 0.6;
  cursor: default;
  text-decoration: none;
}
@media (max-width: 620px) {
  .lx-otp-wrap {
    gap: 6px;
  }
  .lx-otp-box {
    height: 50px;
    font-size: 18px;
  }
}

/* Sign-in "Press Enter" hint kept from the prototype; stage metric value
   copy is text (not a count-up number) — keep it from wrapping oddly. */
.lx-metric-v.is-text {
  font-size: 15px;
  letter-spacing: -0.01em;
}

/* ------------------------------------------------------------
   GuestCard — standalone auth pages (forgot / reset / invitation /
   two-factor). Centred 440px card on the dark aurora background.
   ------------------------------------------------------------ */
body.gc-body {
  height: auto;
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #111827;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(
      120% 90% at 8% 0%,
      rgba(79, 70, 229, 0.28),
      transparent 55%
    ),
    radial-gradient(
      90% 80% at 100% 12%,
      rgba(8, 145, 178, 0.22),
      transparent 52%
    ),
    radial-gradient(
      90% 90% at 80% 100%,
      rgba(249, 115, 98, 0.16),
      transparent 55%
    ),
    #09111f;
}
.gc-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.38);
}
.gc-brand {
  margin-bottom: 20px;
}
.gc-brand img {
  height: 28px;
  width: auto;
  display: block;
}
.gc-brand-sub {
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
}
.gc-h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}
.gc-sub {
  margin: 0 0 14px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}
.gc-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 13px;
  line-height: 1.5;
}
.gc-alert i {
  margin-top: 2px;
  flex-shrink: 0;
}
.gc-alert-danger {
  background: #fef2f2;
  border-color: #fee2e2;
  color: #b91c1c;
}
.gc-alert-success {
  background: #dcfce7;
  border-color: rgba(22, 163, 74, 0.25);
  color: #166534;
}
.gc-alert-warn {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
  color: #92400e;
}
.gc-alert-ok {
  background: rgba(22, 163, 74, 0.1);
  border-color: rgba(22, 163, 74, 0.2);
  color: #166534;
}
.gc-field {
  margin-bottom: 16px;
}
.gc-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}
.gc-req {
  color: #dc2626;
}
.gc-input {
  width: 100%;
  height: 36px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.gc-input:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.gc-input.is-invalid {
  border-color: #ef4444;
}
.gc-input.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
.gc-pw {
  position: relative;
  display: flex;
  align-items: center;
}
.gc-pw .gc-input {
  padding-right: 40px;
}
.gc-eye {
  position: absolute;
  right: 10px;
  width: 26px;
  height: 26px;
  border: 0;
  background: none;
  border-radius: 8px;
  color: #9ca3af;
  cursor: pointer;
}
.gc-eye:hover {
  background: #f3f4f6;
  color: #374151;
}
.gc-err {
  margin-top: 4px;
  font-size: 12px;
  color: #dc2626;
}
.gc-hint {
  font-size: 12px;
  color: #6b7280;
  margin: -4px 0 16px;
}
.gc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.15s,
    opacity 0.15s;
  box-sizing: border-box;
}
.gc-btn-primary {
  background: #4f46e5;
  color: #fff;
  border: 1px solid #4f46e5;
}
.gc-btn-primary:hover {
  background: #4338ca;
}
.gc-btn-secondary {
  background: #fff;
  color: #374151;
  border: 1px solid #d1d5db;
}
.gc-btn-secondary:hover {
  background: #f9fafb;
}
.gc-btn[disabled],
.gc-btn.is-off {
  opacity: 0.6;
  cursor: not-allowed;
}
.gc-foot {
  margin-top: 14px;
  text-align: center;
}
.gc-link {
  font-size: 13px;
  font-weight: 700;
  color: #4f46e5;
  text-decoration: none;
}
.gc-link:hover {
  text-decoration: underline;
}
.gc-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 11px;
  font-weight: 600;
}
.gc-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gc-note {
  margin: 16px 0 0;
  font-size: 11.5px;
  color: #6b7280;
  line-height: 1.6;
}
