body.auth-page {
  margin: 0;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  background: transparent;
  color: var(--text-main);
  font-family: "Inter", sans-serif;
}

.auth-shell {
  height: 100dvh;
  overflow: hidden;
}

.auth-main {
  height: 100dvh;
  padding: 16px;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* ════════════════════════════════════════════════════════════
   LUMINOUS ICE-SLATE — Login page (home.html) only
   All classes prefixed so they cannot clash with other auth pages.
   ════════════════════════════════════════════════════════════ */

/* ── Full-page wrapper ── */
.auth-page-wrapper {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 10% 20%, rgba(78, 102, 215, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(245, 158, 11, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(234, 88, 12, 0.04) 0%, transparent 60%),
    #f8fafc;
}

/* ── Ambient mesh glows ── */
.mesh-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.mesh-blue {
  top: -10%;
  left: 5%;
  width: 650px;
  height: 550px;
  background: radial-gradient(circle,
    rgba(78, 102, 215, 0.18) 0%,
    rgba(59, 130, 246, 0.08) 50%,
    transparent 75%);
}

.mesh-amber {
  bottom: -15%;
  right: 15%;
  width: 600px;
  height: 500px;
  background: radial-gradient(circle,
    rgba(245, 158, 11, 0.12) 0%,
    rgba(234, 88, 12, 0.05) 50%,
    transparent 75%);
}

/* ── Centered two-column grid — max 1260px, no dead-space gap ── */
.auth-grid-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1260px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

/* Constrain left content to balanced 620px */
.showcase-hero-text,
.dashboard-metric-strip,
.live-inquiry-preview-card {
  max-width: 620px;
  width: 100%;
}

/* ══════════════════════════
   LEFT SHOWCASE PANEL
   ══════════════════════════ */
.auth-left-showcase {
  padding: 0 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  border-right: 1px solid rgba(226, 232, 240, 0.8);
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(241, 245, 249, 0.30) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}

/* Brand header */
.showcase-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.brand-logo-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(78, 102, 215, 0.12), 0 1px 3px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
  overflow: hidden;
}

.brand-headings {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #0f172a;
  line-height: 1;
}

.brand-sub {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  margin-top: 2px;
  letter-spacing: 0.01em;
}

/* Hero text */
.showcase-hero-text {
  flex-shrink: 0;
}

.status-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 9px;
  border-radius: 999px;
  background: rgba(78, 102, 215, 0.08);
  border: 1px solid rgba(78, 102, 215, 0.18);
  color: #4e66d7;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.pulse-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  animation: pulseGreen 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.20); }
  50%       { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.06); }
}

.hero-headline {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 2.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.gradient-text {
  background: linear-gradient(135deg, #4e66d7 0%, #6384ff 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  margin: 0;
  max-width: 480px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #475569;
}

/* Dashboard metric strip */
.dashboard-metric-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  flex-shrink: 0;
}

.metric-mini-card {
  padding: 12px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.metric-icon-bubble {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-icon-bubble.blue      { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.metric-icon-bubble.slate-blue { background: rgba(78, 102, 215, 0.10); color: #4e66d7; }
.metric-icon-bubble.amber     { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.metric-icon-bubble.purple    { background: rgba(139, 92, 246, 0.12); color: #7c3aed; }
.metric-icon-bubble.green     { background: rgba(34, 197, 94, 0.12);  color: #16a34a; }

/* Legacy tinted pills — kept for reference, replaced by solid below */
.metric-count-pill {
  font-size: 13px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  line-height: 1.2;
}

/* Solid colored capsule badges — matches dashboard design */
.metric-pill {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  line-height: 1.2;
  white-space: nowrap;
}

.pill-solid-blue   { background: #4e66d7; }
.pill-solid-slate  { background: #5d70c2; }
.pill-solid-amber  { background: #f59e0b; }
.pill-solid-purple { background: #8b5cf6; }
.pill-solid-green  { background: #10b981; }

/* Keep old tinted variants in case used elsewhere */
.pill-blue   { background: rgba(59, 130, 246, 0.10); color: #1d4ed8; }
.pill-slate  { background: rgba(78, 102, 215, 0.10); color: #4338ca; }
.pill-amber  { background: rgba(245, 158, 11, 0.12); color: #b45309; }
.pill-purple { background: rgba(139, 92, 246, 0.10); color: #6d28d9; }
.pill-green  { background: rgba(34, 197, 94, 0.10);  color: #15803d; }

.metric-name {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Live inquiry preview card */
.live-inquiry-preview-card {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  flex-shrink: 0;
}

.preview-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  gap: 10px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.ins-code-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(78, 102, 215, 0.1);
  color: #4e66d7;
  border: 1px solid rgba(78, 102, 215, 0.18);
  flex-shrink: 0;
}

.company-name {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage-tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

.stage-tag.rfq {
  background: rgba(245, 158, 11, 0.10);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.preview-card-body {
  padding: 12px 16px;
}

.subject-line {
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  line-height: 1.45;
  margin-bottom: 12px;
}

.preview-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.meta-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cell-label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.cell-value {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
}

.cell-value.success {
  color: #16a34a;
}

/* Showcase footer */
.showcase-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #94a3b8;
  flex-shrink: 0;
}

.footer-separator {
  opacity: 0.5;
}

.soc-compliance {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ══════════════════════════
   RIGHT FROSTED-GLASS PANEL
   ══════════════════════════ */
.auth-right-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-glass-card {
  width: 100%;
  max-width: 380px;
  padding: 36px 32px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 30px 70px -12px rgba(15, 23, 42, 0.12),
    0 4px 16px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(226, 232, 240, 0.4);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-card-top {
  text-align: center;
}

.auth-heading {
  margin: 0 0 6px;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.auth-subheading {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
}

/* Microsoft SSO button */
.btn-microsoft-sso {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
  cursor: pointer;
}

.btn-microsoft-sso:hover {
  border-color: rgba(78, 102, 215, 0.4);
  box-shadow: 0 4px 16px rgba(78, 102, 215, 0.12);
  transform: translateY(-1px);
}

.sso-text-block {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
}

.sso-primary {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
}

.sso-secondary {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.sso-chevron {
  color: #94a3b8;
  flex-shrink: 0;
}

/* OR divider */
.auth-or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.auth-or-divider::before,
.auth-or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(226, 232, 240, 0.8);
}

/* Form */
.auth-input-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Inline error */
.auth-inline-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.07);
  border: 1px solid rgba(239, 68, 68, 0.18);
  color: #dc2626;
  font-size: 13px;
  font-weight: 600;
}

/* Field groups */
.auth-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field-group label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.02em;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.link-forgot-pw {
  font-size: 11.5px;
  font-weight: 600;
  color: #4e66d7;
  text-decoration: none;
}

.link-forgot-pw:hover {
  text-decoration: underline;
}

/* Input wrapper */
.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-wrapper .field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
  flex-shrink: 0;
}

.auth-input-wrapper input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 42px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 14px;
  font-weight: 500;
  box-sizing: border-box;
  outline: none;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input-wrapper input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.auth-input-wrapper input:hover {
  background: #ffffff;
  border-color: #94a3b8;
}

.auth-input-wrapper input:focus {
  background: #ffffff;
  border-color: #4e66d7;
  box-shadow: 0 0 0 3px rgba(78, 102, 215, 0.16);
}

.auth-input-wrapper input[aria-invalid="true"] {
  border-color: #f87171;
  background-color: #ffffff;
}

/* Kill Chrome/browser autofill dark-background bug */
.auth-input-wrapper input:-webkit-autofill,
.auth-input-wrapper input:-webkit-autofill:hover,
.auth-input-wrapper input:-webkit-autofill:focus,
.auth-glass-card input[type="text"]:-webkit-autofill,
.auth-glass-card input[type="password"]:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
  -webkit-text-fill-color: #0f172a !important;
  box-shadow: 0 0 0px 1000px #ffffff inset !important;
}

/* Belt-and-suspenders: force white on all inputs inside glass card */
.auth-glass-card input[type="text"],
.auth-glass-card input[type="password"] {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  border-radius: 10px !important;
  height: 46px !important;
  padding-left: 42px !important;
  font-size: 14px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.auth-glass-card input[type="text"]:focus,
.auth-glass-card input[type="password"]:focus {
  border-color: #4e66d7 !important;
  box-shadow: 0 0 0 3px rgba(78, 102, 215, 0.16) !important;
  background-color: #ffffff !important;
}

/* Metric card hover on count pill */
.dashboard-metric-strip .metric-mini-card {
  position: relative;
}

.dashboard-metric-strip .metric-mini-card:hover .metric-count-pill {
  transform: scale(1.08);
  transition: transform 0.2s ease;
}

/* Privacy lock pill */
.privacy-lock-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Submit button — cobalt-slate gradient */
.btn-auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  padding: 0 20px;
  border: none;
  border-radius: 13px;
  background: linear-gradient(135deg, #4e66d7 0%, #5d70c2 50%, #4354a8 100%);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow:
    0 4px 16px rgba(78, 102, 215, 0.36),
    0 1px 4px rgba(78, 102, 215, 0.2);
  transition:
    opacity 150ms ease,
    transform 150ms ease,
    box-shadow 150ms ease;
  margin-top: 4px;
}

.btn-auth-submit:hover {
  opacity: 0.93;
  transform: translateY(-1px);
  box-shadow:
    0 8px 24px rgba(78, 102, 215, 0.40),
    0 2px 8px rgba(78, 102, 215, 0.24);
}

.btn-auth-submit:active {
  transform: translateY(0);
}

/* Card footer row */
.auth-card-footer-row {
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

.auth-card-footer-row .link-contact {
  color: #4e66d7;
  font-weight: 700;
  text-decoration: none;
  margin-left: 4px;
}

.auth-card-footer-row .link-contact:hover {
  text-decoration: underline;
}

/* ── Keyframe animations ── */
@keyframes pulseGreenDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.20); }
  50%       { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.06); }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-indicator {
    animation: none;
  }
}

/* Final cascade: viewport geometry must win over legacy auth rules. */
@media (min-width: 1081px) {
  .auth-page-wrapper {
    width: 100vw;
    height: 100dvh;
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
  }

  .auth-grid-container {
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 55fr) minmax(420px, 45fr);
    align-items: stretch;
    gap: 0;
  }

  .auth-left-showcase {
    height: 100%;
    padding: clamp(34px, 4.5vh, 56px) clamp(38px, 5vw, 72px);
    justify-content: space-between;
    background: rgba(241,245,249,.38);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .auth-left-showcase > * {
    width: min(100%, 740px);
    max-width: 740px;
    margin-inline: auto;
  }

  .showcase-hero-text { max-width: 620px; }
  .pipeline-flow-wrapper,
  .live-inquiry-preview-card { max-width: 740px; }

  .auth-right-container {
    height: 100%;
    padding: clamp(32px, 5vw, 72px);
  }

  .auth-glass-card {
    width: min(100%, 420px);
    max-width: 420px;
  }
}

/* Full-height split stage and continuous sourcing flow ------------------- */
body.auth-page,
.auth-shell,
.auth-main,
.auth-page-wrapper {
  width: 100%;
  min-height: 100dvh;
  height: 100dvh;
}

.auth-main { padding: 0; }

.auth-page-wrapper {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
  background: #f8fafc;
}

.auth-grid-container {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(420px, 45fr);
  align-items: stretch;
  gap: 0;
}

.auth-left-showcase {
  height: 100%;
  min-width: 0;
  padding: clamp(34px, 4.5vh, 56px) clamp(38px, 5vw, 72px);
  box-sizing: border-box;
  justify-content: space-between;
  gap: clamp(14px, 2vh, 24px);
  border-right: 1px solid #e2e8f0;
  background:
    radial-gradient(circle at 14% 18%, rgba(78, 102, 215, .15), transparent 46%),
    radial-gradient(circle at 86% 82%, rgba(245, 158, 11, .09), transparent 42%),
    #f1f5f9;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.auth-left-showcase > * {
  width: min(100%, 680px);
  max-width: 680px;
  margin-inline: auto;
}

.showcase-hero-text,
.pipeline-flow-wrapper,
.live-inquiry-preview-card { max-width: 680px; }

.hero-headline {
  font-size: clamp(2.25rem, 3vw, 3.35rem);
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: -.04em;
}

.hero-description {
  max-width: 580px;
  font-size: clamp(.9rem, 1vw, 1rem);
}

.auth-right-container {
  height: 100%;
  padding: clamp(32px, 5vw, 72px);
  box-sizing: border-box;
  background: rgba(255,255,255,.96);
}

.auth-glass-card {
  width: min(100%, 420px);
  max-width: 420px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.pipeline-flow-wrapper {
  position: relative;
  width: 100%;
  isolation: isolate;
}

.pipeline-flow-svg {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 0;
  width: 100%;
  height: 12px;
  overflow: visible;
  pointer-events: none;
  transform: translateY(-50%);
}

.pipeline-flow-track {
  stroke: #cbd5e1;
  stroke-width: 2;
  stroke-dasharray: 5 6;
  vector-effect: non-scaling-stroke;
}

.traveling-orb {
  fill: #4e66d7;
  filter: drop-shadow(0 0 5px rgba(78,102,215,.85));
  transform-box: fill-box;
  transform-origin: center;
  animation: auth-pipeline-travel 4.8s cubic-bezier(.4, 0, .2, 1) infinite;
}

@keyframes auth-pipeline-travel {
  0% { transform: translateX(0) scale(.65); opacity: 0; }
  8% { opacity: 1; }
  48% { transform: translateX(288px) scale(1.12); opacity: 1; }
  92% { opacity: 1; }
  100% { transform: translateX(576px) scale(.65); opacity: 0; }
}

.pipeline-flow-wrapper .dashboard-metric-strip {
  position: relative;
  z-index: 1;
  max-width: none;
}

.radar-status-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.radar-ping {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ea580c;
  box-shadow: 0 0 8px rgba(234,88,12,.4);
}

.radar-ping::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1.5px solid #ea580c;
  border-radius: 50%;
  animation: auth-radar-ping 2s cubic-bezier(0, 0, .2, 1) infinite;
}

@keyframes auth-radar-ping {
  0% { transform: scale(.55); opacity: .95; }
  100% { transform: scale(1.8); opacity: 0; }
}

@media (max-height: 780px) and (min-width: 1081px) {
  .auth-left-showcase { padding-block: 24px; gap: 12px; }
  .hero-headline { font-size: clamp(2rem, 2.7vw, 2.75rem); margin-bottom: 8px; }
  .status-pill-badge { margin-bottom: 10px; }
  .metric-mini-card { padding-block: 9px; }
  .preview-card-header, .preview-card-body { padding-block: 9px; }
  .auth-glass-card { gap: 15px; }
}

@media (max-width: 1080px) {
  .auth-grid-container {
    width: 100%;
    max-width: none;
    grid-template-columns: 1fr;
  }
  .auth-right-container { padding: 32px 20px; }
  .auth-glass-card {
    padding: 30px 26px;
    border: 1px solid rgba(226,232,240,.85);
    border-radius: 22px;
    background: rgba(255,255,255,.9);
    box-shadow: 0 20px 55px rgba(15,23,42,.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .traveling-orb,
  .radar-ping::after { animation: none !important; }
  .traveling-orb { transform: translateX(288px); opacity: .7; }
}

/* Enterprise liquid-glass refinement ------------------------------------- */
.auth-page-wrapper {
  background:
    radial-gradient(circle at 12% 18%, rgba(59,130,246,.12), transparent 34%),
    radial-gradient(circle at 48% 84%, rgba(224,231,255,.7), transparent 42%),
    conic-gradient(from 205deg at 35% 45%, #f8fafc, #eef2ff, #f8fafc 38%, #e0e7ff 58%, #f8fafc 78%);
}

.mesh-blue,
.mesh-amber {
  filter: blur(80px);
  opacity: .8;
  animation-duration: 14s;
}

.auth-left-showcase {
  background: rgba(241,245,249,.38);
}

.auth-left-showcase > * {
  width: min(100%, 740px);
  max-width: 740px;
}

.showcase-hero-text { max-width: 620px; }
.pipeline-flow-wrapper,
.live-inquiry-preview-card { max-width: 740px; }

.dashboard-metric-strip {
  grid-template-columns: repeat(5, minmax(124px, 1fr));
  gap: 12px;
}

.dashboard-metric-strip .metric-mini-card,
.live-inquiry-preview-card {
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow:
    0 20px 40px -15px rgba(15, 23, 42, .07),
    0 0 0 1px rgba(226, 232, 240, .6),
    inset 0 1px 1px rgba(255, 255, 255, .9);
}

.dashboard-metric-strip .metric-mini-card {
  min-width: 0;
  padding: 13px 12px 12px;
  border-radius: 16px;
}

.metric-icon-bubble {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.metric-pill {
  min-width: auto;
  padding: 0;
  color: #172033;
  background: transparent;
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.035em;
}

.metric-name--full {
  display: block;
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.25;
  color: #667085;
}

.pipeline-flow-svg { height: 16px; }
.pipeline-flow-track {
  stroke: rgba(148,163,184,.38);
  stroke-width: 2;
  stroke-dasharray: 3 7;
}

.pipeline-flow-beam {
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 82 494;
  filter: drop-shadow(0 0 5px rgba(78,102,215,.58));
  animation: auth-flow-beam 4.2s cubic-bezier(.4, 0, .2, 1) infinite;
}

@keyframes auth-flow-beam {
  from { stroke-dashoffset: 82; opacity: .25; }
  16%, 84% { opacity: 1; }
  to { stroke-dashoffset: -494; opacity: .25; }
}

.live-inquiry-preview-card {
  position: relative;
  overflow: visible;
  border-radius: 22px;
  margin-top: 4px;
}

.preview-card-header {
  border-radius: 22px 22px 0 0;
  background: rgba(255,255,255,.32);
}

.preview-card-body { border-radius: 0 0 22px 22px; }

.sourcing-progress {
  margin-top: 14px;
  display: grid;
  gap: 6px;
}

.sourcing-progress__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 700;
}

.sourcing-progress__meta strong { color: #4e66d7; }
.sourcing-progress__track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148,163,184,.18);
}

.sourcing-progress__track span {
  display: block;
  width: 78%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4e66d7, #7c6ee6 58%, #f97316);
  background-size: 180% 100%;
  box-shadow: 0 0 10px rgba(78,102,215,.28);
  animation: auth-progress-glow 3.2s ease-in-out infinite alternate;
}

@keyframes auth-progress-glow {
  from { background-position: 0 50%; filter: saturate(.9); }
  to { background-position: 100% 50%; filter: saturate(1.2); }
}

.supplier-scan-chip {
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  margin-top: 11px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(78,102,215,.18);
  border-radius: 999px;
  background: rgba(238,242,255,.72);
  color: #4657b3;
  font-size: 10.5px;
  font-weight: 700;
}

.supplier-scan-chip__text {
  transition: opacity .22s ease, transform .22s ease;
}
.supplier-scan-chip.is-switching .supplier-scan-chip__text {
  opacity: 0;
  transform: translateY(3px);
}
.supplier-scan-chip__radar {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,.12);
  animation: auth-scan-pulse 1.8s ease-in-out infinite;
}
@keyframes auth-scan-pulse {
  50% { box-shadow: 0 0 0 7px rgba(34,197,94,.03); }
}

.telemetry-float-badge {
  position: absolute;
  z-index: 4;
  min-height: 30px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  box-shadow: 0 12px 26px -10px rgba(15,23,42,.22), inset 0 1px 0 #fff;
  color: #566176;
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
  animation: auth-float-chip 4s ease-in-out infinite alternate;
}
.telemetry-float-badge i { color: #4e66d7; }
.telemetry-float-badge--security { top: -18px; right: 18px; }
.telemetry-float-badge--accuracy {
  bottom: -17px;
  left: 22px;
  animation-delay: -2s;
}
.telemetry-float-badge--accuracy i { color: #f59e0b; }
@keyframes auth-float-chip {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}

.auth-right-container {
  background:
    radial-gradient(circle at 50% 45%, rgba(238,242,255,.7), transparent 52%),
    rgba(248,250,252,.76);
}

.auth-glass-card {
  width: min(100%, 420px);
  max-width: 420px;
  padding: 40px 36px;
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 24px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  box-shadow:
    0 25px 50px -12px rgba(15,23,42,.12),
    0 0 0 1px rgba(226,232,240,.8),
    inset 0 1px 1px rgba(255,255,255,.95);
}

.auth-input-wrapper input:focus,
.auth-glass-card input[type="text"]:focus,
.auth-glass-card input[type="password"]:focus {
  border-color: #4e66d7 !important;
  box-shadow: 0 0 0 4px rgba(78,102,215,.12) !important;
}

.btn-auth-submit {
  height: 44px;
  font-weight: 600;
  background: linear-gradient(115deg, #4e66d7, #3f51b5);
}
.btn-auth-submit:hover {
  box-shadow: 0 8px 20px -4px rgba(78,102,215,.35);
  transform: translateY(-1px);
}

@media (max-width: 1320px) and (min-width: 1081px) {
  .auth-left-showcase { padding-inline: 34px; }
  .dashboard-metric-strip { gap: 8px; }
  .dashboard-metric-strip .metric-mini-card { padding-inline: 9px; }
  .metric-name--full { font-size: 10px; }
}

@media (max-height: 800px) and (min-width: 1081px) {
  .auth-glass-card { padding: 30px 32px; }
  .live-inquiry-preview-card { margin-top: 0; }
  .sourcing-progress { margin-top: 9px; }
  .supplier-scan-chip { margin-top: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .pipeline-flow-beam,
  .sourcing-progress__track span,
  .supplier-scan-chip__radar,
  .telemetry-float-badge {
    animation: none !important;
  }
  .supplier-scan-chip__text { transition: none !important; }
}

/* ── Responsive: narrow left panel ── */
@media (max-width: 1200px) {
  .auth-left-showcase {
    padding: 36px 40px;
  }

  .dashboard-metric-strip {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }

  .metric-mini-card {
    padding: 10px 8px;
  }
}

@media (max-height: 700px) {
  .hero-description {
    display: none;
  }

  .auth-left-showcase {
    padding: 28px 40px;
    gap: 14px;
  }
}

.auth-card {
  display: grid;
  gap: 18px;
}

.auth-card__section {
  display: grid;
  gap: 16px;
}

.auth-password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    color var(--dur-fast) var(--ease-standard),
    background-color var(--dur-fast) var(--ease-standard);
}

.auth-password-toggle:hover {
  color: var(--brand);
  background: var(--brand-soft);
}

.auth-password-toggle:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus-ring);
}

.auth-banner,
.auth-error,
.auth-success,
.auth-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: 18px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.6;
}

.auth-error {
  border: 1px solid var(--danger-border);
  background: var(--danger-soft);
  color: var(--danger-dark);
  font-weight: 700;
}

.auth-success {
  border: 1px solid var(--success-border);
  background: var(--success-soft);
  color: var(--success-dark);
  font-weight: 700;
}

.auth-note {
  border: 1px solid var(--border-soft);
  background: color-mix(in srgb, var(--surface-card) 78%, var(--surface-2));
  color: var(--text-muted);
}

.auth-note i,
.auth-error i,
.auth-success i {
  margin-top: 2px;
}

.auth-oauth {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface-card) 94%, var(--surface-2));
  box-shadow: var(--shadow-xs);
  color: var(--text-main);
  text-decoration: none;
  transition:
    transform var(--dur-fast) var(--ease-standard),
    border-color var(--dur-fast) var(--ease-standard),
    box-shadow var(--dur-fast) var(--ease-standard);
}

.auth-oauth:hover {
  transform: translateY(-1px);
  border-color: var(--border-default);
  box-shadow: var(--shadow-sm);
}

.auth-oauth__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--brand-soft) 80%, var(--surface-card));
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.auth-oauth__copy {
  display: grid;
  gap: 2px;
  flex: 1;
}

.auth-oauth__title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}

.auth-oauth__subtitle {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.auth-oauth__arrow {
  color: var(--text-dim);
  font-size: 14px;
}

.auth-separator {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-separator::before,
.auth-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-soft), transparent);
}

.auth-security-chip {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-card) 88%, var(--surface-2));
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
}

.auth-security-chip i {
  color: var(--success);
}

.auth-links {
  display: grid;
  gap: 10px;
  justify-items: center;
  margin-top: 10px;
}

.auth-links--stack {
  justify-items: stretch;
}

.auth-links--stack .auth-link,
.auth-links--stack .auth-links__muted {
  text-align: center;
}

.auth-link,
.auth-links a {
  color: var(--text-link);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}

.auth-link:hover,
.auth-links a:hover {
  text-decoration: underline;
}

.auth-links__muted {
  color: var(--text-muted);
  font-size: 15px;
}

.auth-footnote {
  color: var(--text-muted);
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

.auth-helptext {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.auth-helptext ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.auth-field__error {
  color: var(--danger-dark);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 1080px) {
  /* Luminous ice-slate: hide left showcase on narrow screens */
  .auth-left-showcase {
    display: none;
  }

  .auth-right-container {
    flex: 1;
  }
}

@media (max-width: 720px) {
  body.auth-page {
    height: auto;
    max-height: none;
    overflow: auto;
  }

  .auth-shell {
    height: auto;
    overflow: visible;
  }

  .auth-main {
    height: auto;
    padding: 0;
    overflow: visible;
  }

  .auth-grid-2 {
    grid-template-columns: 1fr;
  }

  /* Luminous: full-screen glass card on mobile */
  .auth-page-wrapper {
    height: auto;
    min-height: 100vh;
    overflow: auto;
  }

  .auth-grid-container {
    height: auto;
    min-height: 100vh;
  }

  .auth-right-container {
    flex: 1;
    padding: 24px 16px;
  }

  .auth-glass-card {
    max-width: 100%;
  }
}

/* Living Enterprise Telemetry -------------------------------------------- */
:root {
  --auth-cobalt: #4e66d7;
  --auth-slate: #5d70c2;
  --auth-steel: #767c9c;
  --auth-motion-ease: cubic-bezier(.22, 1, .36, 1);
}

.auth-grid-container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  column-gap: clamp(56px, 7vw, 104px);
}

/* Each orb gets its own organic drift path — distinct, non-repeating feel */
.mesh-glow {
  will-change: transform;
}

.mesh-blue {
  animation: auth-drift-primary 18s ease-in-out infinite alternate;
}

.mesh-amber {
  animation: auth-drift-accent 22s ease-in-out infinite alternate;
  animation-delay: -9s;
}

/* Third sky/ice specular orb */
.mesh-sky {
  top: 10%;
  right: 8%;
  width: 540px;
  height: 480px;
  background: radial-gradient(circle,
    rgba(56, 189, 248, 0.22) 0%,
    rgba(147, 197, 253, 0.09) 55%,
    transparent 78%);
  animation: auth-drift-glow 26s ease-in-out infinite alternate;
  animation-delay: -13s;
}

/* Subtle architectural grid — masked to center so edges fade */
.ambient-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 72% 58% at 50% 50%, black 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 72% 58% at 50% 50%, black 35%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

@keyframes auth-drift-primary {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  33%  { transform: translate3d(80px, -55px, 0) scale(1.10); }
  66%  { transform: translate3d(-40px, 40px, 0) scale(1.04); }
  100% { transform: translate3d(-55px, 70px, 0) scale(0.96); }
}

@keyframes auth-drift-accent {
  0%   { transform: translate3d(0, 0, 0) scale(0.96); }
  33%  { transform: translate3d(-90px, 50px, 0) scale(1.12); }
  66%  { transform: translate3d(50px, -30px, 0) scale(1.05); }
  100% { transform: translate3d(65px, -75px, 0) scale(1); }
}

@keyframes auth-drift-glow {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  40%  { transform: translate3d(-65px, -38px, 0) scale(1.08); }
  100% { transform: translate3d(45px, 58px, 0) scale(0.93); }
}

@media (prefers-reduced-motion: reduce) {
  .mesh-blue, .mesh-amber, .mesh-sky { animation: none; }
}

.dashboard-metric-strip .metric-mini-card {
  --telemetry-rgb: 78, 102, 215;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(var(--telemetry-rgb), .14);
  transition:
    opacity .55s var(--auth-motion-ease),
    transform .55s var(--auth-motion-ease),
    border-color .28s ease,
    box-shadow .28s ease;
}

.dashboard-metric-strip .metric-mini-card:nth-child(2) { --telemetry-rgb: 93, 112, 194; }
.dashboard-metric-strip .metric-mini-card:nth-child(3) { --telemetry-rgb: 245, 158, 11; }
.dashboard-metric-strip .metric-mini-card:nth-child(4) { --telemetry-rgb: 139, 92, 246; }
.dashboard-metric-strip .metric-mini-card:nth-child(5) { --telemetry-rgb: 16, 185, 129; }

.dashboard-metric-strip .metric-mini-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -35% auto -35% -60%;
  width: 42%;
  opacity: 0;
  pointer-events: none;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(var(--telemetry-rgb), .13), transparent);
}

.dashboard-metric-strip .metric-mini-card.is-telemetry-active {
  border-color: rgba(var(--telemetry-rgb), .35);
  box-shadow: 0 12px 28px rgba(var(--telemetry-rgb), .12), inset 0 1px 0 rgba(255,255,255,.9);
}

.dashboard-metric-strip .metric-mini-card.is-telemetry-active::after {
  opacity: 1;
  animation: auth-telemetry-sweep .65s ease-out both;
}

@keyframes auth-telemetry-sweep {
  from { left: -60%; }
  to { left: 125%; }
}

.auth-motion-enabled .dashboard-metric-strip .metric-mini-card {
  opacity: 0;
  transform: translateY(12px);
}

.auth-motion-entered .dashboard-metric-strip .metric-mini-card {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--auth-card-index) * 80ms);
}

.auth-motion-enabled .auth-glass-card {
  opacity: 0;
  transform: translateY(14px) scale(.992);
}

.auth-motion-entered .auth-glass-card {
  opacity: 1;
  transform: none;
  transition: opacity .7s .14s var(--auth-motion-ease), transform .7s .14s var(--auth-motion-ease);
}

.metric-mini-card:nth-child(4) .metric-icon-bubble svg {
  animation: auth-truck-idle 2.8s ease-in-out infinite;
}

.metric-mini-card:nth-child(5) .metric-icon-bubble svg {
  transform-origin: center;
  animation: auth-delivered-pulse 3.2s ease-in-out infinite;
}

@keyframes auth-truck-idle {
  0%, 58%, 100% { transform: translateX(0); }
  70% { transform: translateX(2px); }
  82% { transform: translateX(-1px); }
}

@keyframes auth-delivered-pulse {
  0%, 64%, 100% { transform: scale(1); }
  76% { transform: scale(1.12); }
  86% { transform: scale(1); }
}

/* ── Kinetic Lifecycle: Sequential stage-active state ─────────────────────── */
.dashboard-metric-strip .metric-mini-card.stage-active {
  transform: translateY(-3px) scale(1.03);
  border-color: rgba(var(--telemetry-rgb), .45);
  box-shadow: 0 10px 22px -4px rgba(var(--telemetry-rgb), .18), inset 0 1px 0 rgba(255,255,255,.9);
  z-index: 1;
}

/* Override idle icon animations when stage is active */
.metric-mini-card[data-stage].stage-active .metric-icon-bubble svg {
  animation: none;
}

/* Card 1 — briefcase pop */
.metric-mini-card[data-stage="1"].stage-active .metric-icon-bubble svg {
  animation: kpi-briefcase-pop .6s ease both !important;
}
@keyframes kpi-briefcase-pop {
  0%,100% { transform: scale(1) rotate(0deg); }
  40%      { transform: scale(1.28) rotate(-10deg); }
  70%      { transform: scale(1.1) rotate(5deg); }
}

/* Card 2 — doc stamp */
.metric-mini-card[data-stage="2"].stage-active .metric-icon-bubble svg {
  animation: kpi-doc-stamp .5s ease both !important;
}
@keyframes kpi-doc-stamp {
  0%   { transform: scale(1); }
  50%  { transform: scale(.76); filter: drop-shadow(0 0 5px currentColor); }
  100% { transform: scale(1); }
}

/* Card 3 — plane launch */
.metric-mini-card[data-stage="3"].stage-active .metric-icon-bubble svg {
  animation: kpi-plane-flight .8s ease both !important;
}
@keyframes kpi-plane-flight {
  0%   { transform: translate(0,0) rotate(0deg); }
  45%  { transform: translate(4px,-5px) rotate(10deg); }
  100% { transform: translate(0,0) rotate(0deg); }
}

/* Card 3 — radar sonar ring */
.radar-ping {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid rgba(245,158,11,.7);
  opacity: 0;
  pointer-events: none;
}
.metric-mini-card[data-stage="3"].stage-active .radar-ping {
  animation: kpi-radar-wave 1s cubic-bezier(0,.25,.2,1) both;
}
@keyframes kpi-radar-wave {
  0%   { transform: scale(.5); opacity: .9; }
  100% { transform: scale(2.1); opacity: 0; }
}

/* Card 4 — truck suspension drive (overrides idle animation) */
.metric-mini-card[data-stage="4"].stage-active .metric-icon-bubble svg {
  animation: kpi-truck-drive .85s ease both !important;
}
@keyframes kpi-truck-drive {
  0%,100% { transform: translateX(0); }
  25%     { transform: translateX(3px) translateY(-1px); }
  50%     { transform: translateX(1px) translateY(1px); }
  75%     { transform: translateX(4px) translateY(-.5px); }
}

/* Card 5 — check pop (overrides idle pulse) */
.metric-mini-card[data-stage="5"].stage-active .metric-icon-bubble svg {
  animation: kpi-check-pop .5s ease both !important;
}
@keyframes kpi-check-pop {
  0%   { transform: scale(.7); }
  65%  { transform: scale(1.38); }
  100% { transform: scale(1); }
}

/* Card 5 — green burst ripple */
.completion-ripple {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: rgba(16,185,129,.16);
  opacity: 0;
  pointer-events: none;
}
.metric-mini-card[data-stage="5"].stage-active .completion-ripple {
  animation: kpi-green-burst .85s ease-out both;
}
@keyframes kpi-green-burst {
  0%   { transform: scale(.3); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* Laser beam: JS-controlled mode (removes continuous CSS animation) */
.pipeline-flow-beam.laser-js-controlled {
  animation: none;
  transition: stroke-dashoffset .72s cubic-bezier(.16,1,.3,1), opacity .38s ease;
}

.auth-input-wrapper input {
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease, transform .2s ease;
}

.auth-input-wrapper input:focus {
  transform: translateY(-1px);
}

.auth-password-toggle {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 10px;
  width: 36px;
  height: 36px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #7b879b;
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
  color: var(--auth-cobalt);
  background: rgba(78, 102, 215, .08);
  outline: none;
}

.auth-input-wrapper:has(.auth-password-toggle) input { padding-right: 50px; }

.auth-password-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-auth-submit {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, var(--auth-cobalt) 0%, var(--auth-slate) 45%, var(--auth-steel) 100%);
}

.btn-auth-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-115%);
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.22) 48%, transparent 72%);
  transition: transform .55s ease;
}

.btn-auth-submit:hover::before { transform: translateX(115%); }
.btn-auth-submit > * { position: relative; z-index: 1; }
.btn-auth-submit svg,
.btn-microsoft-sso .sso-chevron { transition: transform .2s var(--auth-motion-ease); }
.btn-auth-submit:hover svg,
.btn-microsoft-sso:hover .sso-chevron { transform: translateX(3px); }

.btn-auth-submit.is-loading {
  pointer-events: none;
  opacity: .82;
}

.btn-auth-submit.is-loading::after {
  content: "";
  position: relative;
  z-index: 2;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ins-spin .65s linear infinite;
}

.auth-glass-card--centered { text-align: center; }
.auth-state-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #eef3ff, #fff);
  color: var(--auth-cobalt);
  box-shadow: 0 12px 25px rgba(78,102,215,.14), inset 0 0 0 1px rgba(78,102,215,.12);
}
.auth-submit-link { display: flex; margin-top: 24px; text-decoration: none; }

@media (max-width: 1080px) {
  .auth-grid-container { width: min(100% - 32px, 520px); column-gap: 0; }
}

@media (max-width: 720px) {
  .auth-grid-container { width: 100%; }
  .auth-password-grid { grid-template-columns: 1fr; }
  .btn-auth-submit, .btn-microsoft-sso { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .mesh-glow,
  .metric-icon-bubble svg,
  .dashboard-metric-strip .metric-mini-card::after,
  .btn-auth-submit.is-loading::after {
    animation: none !important;
  }
  .dashboard-metric-strip .metric-mini-card,
  .auth-glass-card,
  .btn-auth-submit,
  .btn-auth-submit::before,
  .btn-auth-submit svg,
  .btn-microsoft-sso .sso-chevron,
  .auth-input-wrapper input {
    transition: none !important;
    transform: none !important;
  }
}

/* Viewport geometry: intentionally last in the cascade. */
@media (min-width: 1081px) {
  .auth-page-wrapper { width: 100vw; height: 100dvh; padding: 0; align-items: stretch; justify-content: stretch; }
  .auth-grid-container {
    width: 100%; max-width: none; height: 100%; margin: 0;
    display: grid; grid-template-columns: minmax(0, 55fr) minmax(420px, 45fr);
    align-items: stretch; gap: 0;
  }
  .auth-left-showcase {
    height: 100%;
    padding: clamp(34px, 4.5vh, 56px) clamp(38px, 5vw, 72px);
    justify-content: space-between;
    background: rgba(241,245,249,.38);
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .auth-left-showcase > * { width: min(100%, 740px); max-width: 740px; margin-inline: auto; }
  .showcase-hero-text { max-width: 620px; }
  .pipeline-flow-wrapper, .live-inquiry-preview-card { max-width: 740px; }
  .auth-right-container { height: 100%; padding: clamp(32px, 5vw, 72px); }
  .auth-glass-card { width: min(100%, 420px); max-width: 420px; }
}

/* Keep the sourcing flow legible: it runs in its own rail below the KPI cards
   instead of being obscured behind their glass surfaces. */
@media (min-width: 1081px) {
  .pipeline-flow-wrapper {
    padding-bottom: 18px;
  }

  .pipeline-flow-svg {
    top: auto;
    bottom: 3px;
    height: 14px;
    transform: none;
  }

  .pipeline-flow-track {
    stroke: rgba(100, 116, 139, .42);
  }

  .pipeline-flow-beam {
    stroke-width: 3.5;
    filter: drop-shadow(0 0 6px rgba(78, 102, 215, .7));
  }

  /* Every left-side block follows the same 740px alignment guide. */
  .showcase-brand,
  .showcase-hero-text {
    width: min(100%, 740px);
    max-width: 740px;
    margin-inline: auto;
  }
}

/* Structured telemetry keeps contextual details inside the RFQ card, rather
   than letting decorative badges collide with its borders. */
.brand-suite-badge {
  width: fit-content;
  margin-top: 6px;
  padding: 3px 10px;
  border: 1px solid rgba(78, 102, 215, 0.2);
  border-radius: 999px;
  background: rgba(78, 102, 215, 0.06);
  color: #4e66d7;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.4;
}

.brand-logo-icon {
  width: 48px;
  height: 48px;
}

.brand-title {
  font-size: 22px;
}

.preview-header-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.compliance-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 999px;
  background: rgba(248, 250, 252, .86);
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
}

.compliance-badge i { color: #4e66d7; }

.live-inquiry-preview-card {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 18px;
  box-shadow:
    0 25px 50px -12px rgba(15, 23, 42, .08),
    0 0 0 1px rgba(226, 232, 240, .6),
    inset 0 1px 2px rgba(255, 255, 255, .95);
}

.sourcing-progress__track span {
  background: linear-gradient(90deg, #4e66d7 0%, #818cf8 50%, #4e66d7 100%);
  background-size: 200% 100%;
  animation: auth-shimmer-beam 2.5s linear infinite;
}

@keyframes auth-shimmer-beam {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.live-activity-ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin-top: 10px;
  padding: 7px 10px;
  overflow: hidden;
  border: 1px solid rgba(78, 102, 215, .12);
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(78,102,215,.07), rgba(255,255,255,.54));
  color: #475569;
  font-size: 11px;
  line-height: 1.25;
}

.live-activity-ticker__beacon {
  position: relative;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .13);
}

.live-activity-ticker__beacon::after {
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(34, 197, 94, .75);
  border-radius: inherit;
  content: "";
  animation: auth-live-ping 2s cubic-bezier(0, 0, .2, 1) infinite;
}

@keyframes auth-live-ping {
  0% { transform: scale(.55); opacity: .9; }
  75%, 100% { transform: scale(2.2); opacity: 0; }
}

.live-activity-ticker__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity .22s ease, transform .22s ease;
}

.live-activity-ticker.is-switching .live-activity-ticker__label {
  opacity: 0;
  transform: translateY(6px);
}

/* Legacy detached badge markup on the secondary auth screens stays hidden
   where it cannot overlap a preview card. */
.live-inquiry-preview-card .telemetry-float-badge {
  display: none;
}

@media (max-width: 1080px) {
  .preview-header-status { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sourcing-progress__track span,
  .live-activity-ticker__beacon::after { animation: none !important; }
  .live-activity-ticker__label { transition: none !important; }
}
