body.login-preview-page,
.login-preview {
  color-scheme: light;
  font-family: Geist, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #26333a;
  --muted: #6d777b;
  --canvas: #eeeae3;
  --surface: #f8f6f2;
  --card: #fffefa;
  --line: #d7d2c8;
  --line-soft: #e5e0d7;
  --blue: #1e6da8;
  --blue-deep: #173e5b;
  --wood: #c5b29b;
  --copper: #b97c4c;
  background: var(--canvas);
  color: var(--ink);
  font-synthesis: none;
}

.login-preview, .login-preview * { box-sizing: border-box; }
body.login-preview-page { margin: 0; min-width: 320px; background: var(--canvas); }
.login-preview button, .login-preview input { font: inherit; }
.login-skip-link { position: absolute; left: 16px; top: -48px; z-index: 5; padding: 10px 14px; border-radius: 8px; background: var(--blue-deep); color: white; }
.login-skip-link:focus { top: 16px; }

.login-preview { min-height: 100vh; display: grid; grid-template-columns: minmax(330px, .82fr) minmax(580px, 1.18fr); }
.login-panel { display: flex; flex-direction: column; justify-content: center; gap: 54px; padding: clamp(32px, 6vw, 86px); background: var(--surface); }
.brand-lockup { display: flex; align-items: center; gap: 12px; position: absolute; top: 34px; left: clamp(32px, 6vw, 86px); font-weight: 650; letter-spacing: -.02em; }
.login-preview .brand-mark { display: grid; place-items: center; width: 42px; height: 32px; border-radius: 7px; background: var(--blue); color: white; font-size: 10px; font-weight: 850; letter-spacing: .13em; }
.login-preview .brand-name { font-size: 15px; }
.login-copy { max-width: 470px; }
.login-preview .eyebrow, .login-preview .card-kicker { margin: 0 0 12px; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.login-preview h1, .login-preview h2, .login-preview p { margin-top: 0; }
.login-preview h1 { max-width: 470px; margin-bottom: 18px; font-size: clamp(36px, 5vw, 64px); line-height: .98; letter-spacing: -.06em; font-weight: 650; }
.lede { max-width: 400px; margin-bottom: 0; color: var(--muted); line-height: 1.6; }
.login-card { width: min(100%, 410px); padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: 0 20px 52px rgba(38, 51, 58, .08); }
.login-card h2 { margin-bottom: 8px; font-size: 22px; letter-spacing: -.035em; }
.login-preview .card-copy { margin-bottom: 26px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.primary-action { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; border: 0; border-radius: 9px; background: var(--blue-deep); color: white; cursor: pointer; font-weight: 700; }
.primary-action:hover { background: #102f49; }
.primary-action:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 42%, transparent); outline-offset: 3px; }
.primary-action svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.security-note { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; color: var(--muted); font-size: 11px; }
.security-note svg { width: 16px; fill: none; stroke: var(--blue); stroke-width: 1.5; }
.preview-note { max-width: 410px; margin: 0; color: #8b8174; font-size: 11px; line-height: 1.45; }
.login-error { margin: -30px 0 0; color: #9a3431; font-size: 12px; line-height: 1.45; }

.process-panel { position: relative; display: flex; min-height: 100vh; flex-direction: column; justify-content: center; overflow: hidden; padding: clamp(32px, 5vw, 74px); background: #e8e3da; }
.process-panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 32%, rgba(255,255,255,.8), transparent 36%), linear-gradient(135deg, rgba(255,255,255,.34), transparent 44%); pointer-events: none; }
.process-heading, .process-stage, .product-strip { position: relative; z-index: 1; }
.process-heading { max-width: 480px; }
.process-heading h2 { margin-bottom: 12px; font-size: clamp(28px, 3.4vw, 48px); line-height: 1; letter-spacing: -.055em; }
.process-heading > p:last-child { max-width: 390px; margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.process-stage { width: min(100%, 720px); margin: 20px auto 0; }
.process-art { display: block; width: 100%; height: auto; overflow: visible; }
.art-grid path { fill: none; stroke: #d8d0c4; stroke-width: 1; opacity: .62; }
.flow-line { fill: none; stroke: var(--copper); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 8 13; opacity: .68; animation: draw-flow 4.4s ease-in-out infinite; }
.stage { opacity: 0; transform-box: fill-box; transform-origin: center; animation: stage-cycle 4.4s ease-in-out infinite; }
.stage-one { animation-delay: 0s; }
.stage-two { animation-delay: .7s; }
.stage-three { animation-delay: 1.55s; }
.stage-four { animation-delay: 2.35s; }
.stage-five { animation-delay: 3.2s; }
.stage text { fill: #7c6a58; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.blueprint-sheet { fill: rgba(255,255,255,.52); stroke: var(--blue); stroke-width: 1.5; }
.blueprint-line { fill: none; stroke: var(--blue); stroke-width: 1.3; }
.blueprint-dimension { fill: none; stroke: var(--copper); stroke-width: 1; stroke-dasharray: 3 4; }
.blueprint-dot, .bore { fill: var(--copper); }
.machine-bed { fill: #d3cbc0; stroke: #9d978e; stroke-width: 1; }
.machine-rail, .gantry-leg { fill: none; stroke: #68767b; stroke-width: 3; }
.cutter { fill: var(--copper); stroke: white; stroke-width: 3; animation: cutter-pulse 4.4s ease-in-out infinite; }
.cut-path { fill: none; stroke: var(--blue); stroke-width: 2; stroke-dasharray: 6 6; }
.finished-panel { stroke: #b39f88; stroke-width: 1; filter: url(#soft-shadow); }
.edge-band { fill: none; stroke: var(--copper); stroke-width: 4; }
.assembly-guide { fill: none; stroke: var(--blue); stroke-width: 1; stroke-dasharray: 4 7; opacity: .55; }
.cabinet-side, .cabinet-top, .cabinet-shelf, .cabinet-back { stroke: #aa967e; stroke-width: 1; }
.handle, .final-handle { fill: var(--copper); }
.final-shadow { fill: rgba(38,51,58,.16); }
.final-cabinet { fill: #d8c6ae; stroke: #aa9478; stroke-width: 1; filter: url(#soft-shadow); }
.final-top { fill: #eadcc8; stroke: #aa9478; stroke-width: 1; }
.final-left, .final-right { fill: #bba68b; opacity: .72; }
.final-shelf { fill: #bda78a; }
.final-accent { fill: none; stroke: var(--blue); stroke-width: 3; }
.product-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.product-strip span { padding: 7px 10px; border: 1px solid #d1c8ba; border-radius: 999px; color: #687276; background: rgba(255,255,255,.46); font-size: 10px; font-weight: 750; }
.product-strip span::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 7px 1px 0; border-radius: 50%; background: var(--blue); }

@keyframes draw-flow { 0%, 8% { stroke-dashoffset: 420; opacity: .1; } 24%, 88% { stroke-dashoffset: 0; opacity: .68; } 100% { stroke-dashoffset: -120; opacity: .1; } }
@keyframes stage-cycle { 0%, 8% { opacity: 0; transform: translateY(10px) scale(.98); } 16%, 32% { opacity: 1; transform: translateY(0) scale(1); } 42%, 100% { opacity: 0; transform: translateY(-8px) scale(1.015); } }
@keyframes cutter-pulse { 0%, 30%, 100% { transform: translateY(0); } 18% { transform: translateY(24px); } }

@media (max-width: 980px) {
  .login-preview { grid-template-columns: 1fr; }
  .login-panel { min-height: auto; padding-top: 108px; padding-bottom: 54px; }
  .brand-lockup { position: static; margin-bottom: 18px; }
  .process-panel { min-height: auto; padding-top: 54px; padding-bottom: 54px; }
}

@media (max-width: 560px) {
  .login-panel, .process-panel { padding-right: 22px; padding-left: 22px; }
  .login-preview h1 { font-size: 46px; }
  .login-card { padding: 22px; }
  .process-heading h2 { font-size: 34px; }
  .process-stage { margin-top: 4px; margin-right: -18px; margin-left: -18px; width: calc(100% + 36px); }
}

@media (prefers-reduced-motion: reduce) {
  .flow-line, .stage, .cutter { animation: none; }
  .stage { opacity: 0; transform: none; }
  .stage-five { opacity: 1; }
}
