/* ==============================================================================
   LOGIN PAGE — premium visual pass
   Scoped entirely to the login page (loaded only from login.html, after
   style.css/vault-theme.css so it wins the cascade at equal specificity).
   Restyles color, depth, motion and spacing on top of the existing markup and
   IDs — nothing here changes structure, so login.js's element lookups and the
   magnifier's flight/glow keyframes in style.css are untouched.
   ============================================================================== */

:root {
  /* Professional blue — replaces an earlier indigo/purple accent that read as too "AI-startup"
     for this tool. Single-hue blue (no violet second stop) for a plainer, more corporate feel. */
  --lp-accent: #2563eb;
  --lp-accent-2: #1d4ed8;
  --lp-accent-rgb: 37, 99, 235;
  --lp-accent-2-rgb: 29, 78, 216;
  --lp-glass-border: rgba(255, 255, 255, 0.09);
  --lp-glass-border-light: rgba(15, 23, 42, 0.08);

  /* Charcoal graphite — a neutral dark gray for the form panel instead of near-black, with no
     color cast so it pairs cleanly with the indigo/purple accent rather than competing with it. */
  --lp-charcoal: #17181c;
  --lp-charcoal-input: #202226;
  --lp-charcoal-input-focus: #26282d;
  --lp-charcoal-border: #2e3035;
}

/* ---- Page background: soft gradient mesh instead of a flat fill ---- */
[data-theme="light"] body.login-page {
  background:
    radial-gradient(900px 560px at 12% -8%, rgba(var(--lp-accent-rgb), 0.14), transparent 60%),
    radial-gradient(700px 520px at 108% 10%, rgba(var(--lp-accent-2-rgb), 0.09), transparent 55%),
    var(--tk-slate-100, #f1f5f9);
}

/* Dark counterpart: same two accent blobs, dropped onto the app's dark navy base instead of a
   light fill — echoes the dashboard's own dark gradient-mesh backgrounds (dashboard-premium.css)
   rather than the flat navy-950 vault-theme.css falls back to on its own. */
[data-theme="dark"] body.login-page {
  background:
    radial-gradient(900px 560px at 12% -8%, rgba(var(--lp-accent-rgb), 0.16), transparent 60%),
    radial-gradient(700px 520px at 108% 10%, rgba(var(--lp-accent-2-rgb), 0.12), transparent 55%),
    var(--tk-navy-950, #070b14);
}

.login-page .login-wrap {
  background: transparent;
  padding: 0;
  box-sizing: border-box;
}

/* ---- Shell: full-bleed edge-to-edge split, no floating card ---- */
.login-page .login-shell {
  max-width: none;
  margin: 0;
  height: 100vh;
  min-height: 100vh;
  border-radius: 0;
  box-shadow: none;
  border: none;
}
.login-page .login-shell::before {
  border-radius: 0;
  background: linear-gradient(90deg, var(--lp-accent), var(--lp-accent-2), var(--lp-accent));
  height: 3px;
}

/* ---- Showcase panel: swapped to the light surface — clean white/off-white with a soft
   accent-tinted glow, dark text throughout. (The form panel below takes the dark surface
   instead, so the two panels read as light-left / dark-right rather than the reverse.) ---- */
[data-theme="light"] .login-page .login-showcase {
  /* Same two accent blobs as before, made a good deal more visible (bigger, more opaque) now
     that this panel is also carrying the sheen sweep + particles below — a slow, organic drift
     instead of a static glow. */
  background-image:
    radial-gradient(620px 520px at 50% 50%, rgba(var(--lp-accent-rgb), 0.16), transparent 62%),
    radial-gradient(520px 440px at 50% 50%, rgba(var(--lp-accent-2-rgb), 0.13), transparent 62%);
  background-repeat: no-repeat;
  background-size: 160% 160%, 160% 160%;
  background-color: var(--tk-white, #ffffff);
  animation: lp-aurora-showcase 34s ease-in-out infinite;
  border-right: none;
  position: relative;
  isolation: isolate;
  /* style.css's 32px gap (between the copy block and the stats row) reads as an oversized,
     lopsided gap now that the feature card above it carries its own visible border/shadow —
     tightened to 24px, still on the design system's own 8/16/24/32px scale. Halved again to
     12px once the feature card grew 20% taller, which otherwise left a big empty band below it. */
  gap: 12px !important;
}

/* Dark counterpart: the same two accent blobs and slow drift/sheen motion, but on the app's own
   dark navy surface (vault-theme.css's --tk-navy-950/900) instead of white — so the showcase
   panel keeps its "alive" premium treatment (aurora drift, sheen sweep) in dark mode too, rather
   than reverting to a flat static panel. */
[data-theme="dark"] .login-page .login-showcase {
  background-image:
    radial-gradient(620px 520px at 50% 50%, rgba(var(--lp-accent-rgb), 0.14), transparent 62%),
    radial-gradient(520px 440px at 50% 50%, rgba(var(--lp-accent-2-rgb), 0.11), transparent 62%);
  background-repeat: no-repeat;
  background-size: 160% 160%, 160% 160%;
  background-color: var(--tk-navy-950, #070b14);
  animation: lp-aurora-showcase 34s ease-in-out infinite;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  isolation: isolate;
  gap: 12px !important;
}

.login-page .login-showcase-body {
  /* Same rationale, one tier down: the 16px gap between the diff-mock card and the feature
     card looked inconsistent next to the tightened 24px above it. */
  gap: 12px !important;
}

@keyframes lp-aurora-showcase {
  0%   { background-position: 8% 2%, 96% 94%; }
  50%  { background-position: 22% 18%, 82% 78%; }
  100% { background-position: 8% 2%, 96% 94%; }
}

/* The diagonal sheen sweep read as a distracting stray light streak in both themes, so it's
   removed entirely — the slower aurora drift (above) already carries the "alive" motion. */
.login-page .login-showcase::after {
  display: none;
}

@keyframes lp-sheen-sweep {
  0%   { background-position: 130% 0%; }
  38%  { background-position: -30% 0%; }
  100% { background-position: -30% 0%; }
}

@media (prefers-reduced-motion: reduce) {
  .login-page .login-showcase { animation: none; }
  .login-page .login-showcase::after { animation: none; display: none; }
}

.login-page .login-brand-mark {
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(var(--lp-accent-rgb), 0.10), rgba(var(--lp-accent-2-rgb), 0.04));
  border: 1px solid rgba(var(--lp-accent-rgb), 0.25);
  box-shadow: 0 8px 24px -12px rgba(var(--lp-accent-rgb), 0.4);
  animation: lp-brand-dispatch 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

/* Pulses the brand-mark chip exactly when the flying lens (style.css's `lens-flight`, same 6s
   duration/easing/infinite) launches (~8%) and again when it lands back (~88-100%) — a same-
   named-animation sibling running in lockstep, no JS needed to keep them synced. Makes the lens
   read as "dispatched from" and "returning to" this icon rather than an unrelated element that
   happens to start nearby. */
@keyframes lp-brand-dispatch {
  /* Every stop keeps the SAME two box-shadow layers (base drop shadow + a ring), only the ring's
     alpha changes — animating a shape that appears/disappears between keyframes (rather than one
     that's always present at 0 vs non-zero alpha) makes browsers interpolate the layer count
     itself, which smears the "pulse" across a much wider span than intended instead of a sharp
     blip at 8%/90%. */
  0%, 4% { box-shadow: 0 8px 24px -12px rgba(var(--lp-accent-rgb), 0.4), 0 0 0 0 rgba(var(--lp-accent-rgb), 0); }
  8% { box-shadow: 0 8px 24px -12px rgba(var(--lp-accent-rgb), 0.4), 0 0 0 6px rgba(var(--lp-accent-rgb), 0.18); }
  16%, 82% { box-shadow: 0 8px 24px -12px rgba(var(--lp-accent-rgb), 0.4), 0 0 0 0 rgba(var(--lp-accent-rgb), 0); }
  90% { box-shadow: 0 8px 24px -12px rgba(var(--lp-accent-rgb), 0.4), 0 0 0 6px rgba(var(--lp-accent-rgb), 0.18); }
  98%, 100% { box-shadow: 0 8px 24px -12px rgba(var(--lp-accent-rgb), 0.4), 0 0 0 0 rgba(var(--lp-accent-rgb), 0); }
}

@media (prefers-reduced-motion: reduce) {
  .login-page .login-brand-mark { animation: none; }
}

[data-theme="light"] .login-page .login-brand-name {
  color: var(--tk-navy-850, #0f172a) !important;
}
[data-theme="dark"] .login-page .login-brand-name {
  color: var(--tk-slate-050, #f8fafc) !important;
}

.login-page .login-eyebrow {
  background: linear-gradient(90deg, var(--lp-accent), var(--lp-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* style.css's `.login-showcase > * { max-width: 560px; width: 100% }` was sized for the old
   edge-to-edge (full-bleed) showcase panel. In this floating-shell redesign the panel itself is
   wider, but its children are left-aligned with no margin: auto — so the leftover space between
   that fixed 560px cap and the panel's actual (now larger) width all piles up on the right only,
   reading as a lopsided margin. Every real content block (diff-mock, feature card, stats row,
   copy) is capped at 80% of the panel's width and centered via margin auto — narrower than the
   full panel width (a 20% reduction), but centered so the freed-up space splits evenly left/right
   instead of repeating the old one-sided-margin bug.

   Deliberately excludes .scanner-lens-container and .scan-particles: both are full-bleed
   `position: absolute; inset: 0` overlays whose (0,0) origin IS the coordinate system the flying
   magnifier's translate3d() math (style.css's lens-flight, login.js's updateLensCoordinates) is
   built on. Centering them via max-width + margin:auto shifts that origin sideways independently
   of the real (correctly-tracked) brand-mark position, throwing the lens visibly off to one side
   even though its start/base/curr coordinates are individually still exactly right. */
.login-page .login-showcase > *:not(.scanner-lens-container):not(.scan-particles):not(.scanline) {
  max-width: 88%;
  margin-left: auto;
  margin-right: auto;
}

/* These three stay full-bleed (undoing style.css's stale 560px cap without the centering above,
   which is what broke their coordinate math) — they're positioning/decoration overlays, not
   content blocks, so they were never meant to shrink in the first place. */
.login-page .scanner-lens-container,
.login-page .scan-particles,
.login-page .scanline {
  max-width: 100%;
}

.login-page .login-showcase-title {
  font-size: 30px;
  letter-spacing: -0.02em;
}
[data-theme="light"] .login-page .login-showcase-title { color: var(--tk-navy-850, #0f172a) !important; }
[data-theme="dark"] .login-page .login-showcase-title { color: var(--tk-slate-050, #f8fafc) !important; }

[data-theme="light"] .login-page .login-showcase-sub { color: var(--tk-navy-600, #475569) !important; }
[data-theme="light"] .login-page .login-showcase-sub strong { color: var(--tk-navy-850, #0f172a) !important; }
[data-theme="dark"] .login-page .login-showcase-sub strong { color: var(--tk-slate-050, #f8fafc) !important; }

.login-page .login-features-viewport {
  height: 152px;
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  margin-bottom: 0;
}

.login-page .login-feature-card {
  height: 128px;
  border-radius: 18px;
  padding: 20px 26px 20px 30px !important;
  overflow: hidden;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  /* A touch of spring on top of the base opacity/translateY fade (style.css) */
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
[data-theme="light"] .login-page .login-feature-card {
  background: var(--tk-white, #ffffff);
  border: 1px solid var(--tk-slate-200, #e2e8f0);
  box-shadow: 0 10px 28px -16px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
[data-theme="dark"] .login-page .login-feature-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.login-page .login-feature-card:not(.is-active) { transform: translateY(6px) scale(0.985) !important; }
.login-page .login-feature-card.is-active { transform: translateY(0) scale(1) !important; }

/* A slim accent bar down the left edge */
.login-page .login-feature-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3.5px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--lp-accent), var(--lp-accent-2));
}

/* Subtle background accent glow in the far corner */
.login-page .login-feature-card::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -34px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(var(--lp-accent-rgb), 0.12), rgba(var(--lp-accent-2-rgb), 0.03) 70%, transparent 100%);
  pointer-events: none;
}

.login-page .login-feature-text {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
  text-align: left;
}
/* style.css's old `.login-feature-card div { max-width: 78% }` base rule (meant for a
   long-gone single-block layout) still caps .login-feature-header — a <div> — at 78% of its
   container, silently defeating width:100% below (max-width always wins over width when the
   two conflict). That 78% cap is what was centering the title/badge in the empty space to
   its right instead of letting them sit flush against the icon. */
.login-page .login-feature-header,
.login-page .login-feature-text > span {
  width: 100% !important;
  max-width: 100% !important;
  text-align: left !important;
}

.login-page .login-feature-header {
  display: flex;
  /* Explicit: .login-feature-header is a <div>, so it also matches style.css's old
     `.login-feature-card div { flex-direction: column; ... }` base rule. That rule's
     flex-direction survives here since this block never overrode it, silently turning the
     title+badge row into a column (align-items:center then stacked and centered them). */
  flex-direction: row;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

[data-theme="light"] .login-page .login-feature-card strong { color: var(--tk-navy-850, #0f172a) !important; }
[data-theme="dark"] .login-page .login-feature-card strong { color: var(--tk-slate-050, #f8fafc) !important; }
.login-page .login-feature-card strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
/* The extra height freed up room to let the description actually wrap onto two lines instead
   of truncating with an ellipsis — a taller card with still-clipped one-line text would have
   just been more empty padding around the same amount of copy. */
.login-page .login-feature-card span {
  color: var(--tk-slate-500, #64748b) !important;
  font-size: 14px;
  line-height: 1.45;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Feature badges */
.login-page .login-feature-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  padding: 4px 9px;
  border-radius: 7px;
  letter-spacing: 0.2px;
}
[data-theme="light"] .login-feature-badge--accent {
  background: rgba(var(--lp-accent-rgb), 0.1);
  color: var(--lp-accent);
  border: 1px solid rgba(var(--lp-accent-rgb), 0.2);
}
[data-theme="dark"] .login-feature-badge--accent {
  background: rgba(var(--lp-accent-rgb), 0.18);
  color: #93c5fd;
  border: 1px solid rgba(var(--lp-accent-rgb), 0.35);
}

[data-theme="light"] .login-feature-badge--emerald {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
[data-theme="dark"] .login-feature-badge--emerald {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

[data-theme="light"] .login-feature-badge--violet {
  background: rgba(139, 92, 246, 0.1);
  color: #7c3aed;
  border: 1px solid rgba(139, 92, 246, 0.2);
}
[data-theme="dark"] .login-feature-badge--violet {
  background: rgba(139, 92, 246, 0.18);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

[data-theme="light"] .login-feature-badge--blue {
  background: rgba(14, 165, 233, 0.1);
  color: #0284c7;
  border: 1px solid rgba(14, 165, 233, 0.2);
}
[data-theme="dark"] .login-feature-badge--blue {
  background: rgba(14, 165, 233, 0.18);
  color: #7dd3fc;
  border: 1px solid rgba(14, 165, 233, 0.35);
}

/* Feature Preview right-side mini UI */
.login-page .login-feature-preview {
  flex-shrink: 0;
  display: flex;
  /* Same fix as .login-feature-header: also a <div>, also needs its own flex-direction so
     style.css's old column-direction base rule doesn't leak through. */
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
  margin-left: auto;
  max-width: none;
}

.preview-tag--diff {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 9px;
}
[data-theme="light"] .preview-tag--diff {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
[data-theme="dark"] .preview-tag--diff {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.preview-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

.preview-chip--ok {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 9px;
}
[data-theme="light"] .preview-chip--ok {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
[data-theme="dark"] .preview-chip--ok {
  background: rgba(59, 130, 246, 0.14);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.preview-meter {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 9px;
}
[data-theme="light"] .preview-meter {
  background: #faf5ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
}
[data-theme="dark"] .preview-meter {
  background: rgba(168, 85, 247, 0.14);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.preview-score {
  font-size: 17px;
  font-weight: 800;
}

.preview-envs {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 9px;
}
[data-theme="light"] .preview-envs {
  background: var(--tk-slate-100, #f1f5f9);
  border: 1px solid var(--tk-slate-200, #e2e8f0);
}
[data-theme="dark"] .preview-envs {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.env-chip {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 7px;
  border-radius: 6px;
}
.env-chip--stg {
  background: rgba(245, 158, 11, 0.18);
  color: #f59e0b;
}
.env-chip--prod {
  background: rgba(37, 99, 235, 0.18);
  color: #3b82f6;
}
.env-arrow {
  font-size: 12px;
  color: var(--tk-slate-400, #94a3b8);
}

.login-page .login-feature-icon {
  position: relative;
  z-index: 1;
  width: 60px;
  height: 60px;
  border-radius: 17px;
  flex-shrink: 0;
  /* Explicit rather than relying on style.css's base rule for this (same class of bug as the
     .login-feature-header flex-direction issue) — keeps the glyph centered consistently across
     all 4 cards regardless of that base rule ever changing. */
  display: flex;
  align-items: center;
  justify-content: center;
}
[data-theme="light"] .login-page .login-feature-icon {
  background: var(--tk-white, #ffffff);
  border: 1px solid var(--tk-slate-200, #e2e8f0);
  color: var(--lp-accent, #2563eb);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 10px 20px -12px rgba(15, 23, 42, 0.18) !important;
}
[data-theme="dark"] .login-page .login-feature-icon {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--lp-accent, #2563eb);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 10px 20px -12px rgba(0, 0, 0, 0.55) !important;
}
.login-page .login-feature-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, transparent 50%);
  pointer-events: none;
}
[data-theme="dark"] .login-page .login-feature-icon::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, transparent 50%);
}
.login-page .login-feature-icon svg {
  position: relative;
  z-index: 1;
  width: 55px;
  height: 55px;
  display: block;
  margin: auto;
}

.login-page .login-features-dots {
  /* The base rule already centers this via left: 50% + transform: translateX(-50%) */
  bottom: 4px;
  gap: 6px;
}
.login-page .login-features-dot {
  width: 6px;
  height: 6px;
  transition: background 0.3s ease, width 0.3s ease;
}
[data-theme="light"] .login-page .login-features-dot { background: var(--tk-slate-300, #cbd5e1) !important; }
[data-theme="dark"] .login-page .login-features-dot { background: rgba(148, 163, 184, 0.35) !important; }
.login-page .login-features-dot.is-active {
  width: 16px;
  border-radius: 3px;
  background: var(--lp-accent) !important;
  transform: none !important;
}

.login-page .diff-mock {
  border-radius: 16px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
[data-theme="light"] .login-page .diff-mock {
  background: var(--tk-white, #ffffff);
  border: 1px solid var(--tk-slate-200, #e2e8f0);
  box-shadow: 0 12px 30px -18px rgba(15, 23, 42, 0.25);
}
/* Dark counterpart: real card chrome (deep elevation + hairline border) on a dark navy-tinted
   surface instead of vault-theme.css's flatter rgba(10,16,32,0.7) fill — matches the same
   "raised card, not a flat tinted rectangle" treatment the light diff-mock gets. */
[data-theme="dark"] .login-page .diff-mock {
  background: rgba(13, 20, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
[data-theme="light"] .login-page .diff-mock-head { color: var(--lp-accent) !important; }
[data-theme="dark"] .login-page .diff-mock-head { color: var(--lp-accent) !important; }
[data-theme="light"] .login-page .diff-mock-label { color: var(--tk-navy-600, #475569) !important; }
[data-theme="dark"] .login-page .diff-mock-label { color: var(--tk-slate-500, #64748b) !important; }
[data-theme="light"] .login-page .diff-mock-frame { background: var(--tk-slate-050, #f8fafc) !important; border-color: var(--tk-slate-300, #cbd5e1) !important; }
[data-theme="dark"] .login-page .diff-mock-frame { background: var(--tk-navy-950, #070b14) !important; border-color: var(--tk-navy-700, #263449) !important; }
[data-theme="light"] .login-page .diff-mock-frame-changed { border-color: var(--tk-red-pale, #fca5a5) !important; background: #fff5f5 !important; }
[data-theme="dark"] .login-page .diff-mock-frame-changed { border-color: rgba(255, 77, 94, 0.45) !important; background: var(--tk-navy-950, #070b14) !important; }
[data-theme="light"] .login-page .diff-mock-bar { background: var(--tk-slate-400, #94a3b8) !important; }
[data-theme="dark"] .login-page .diff-mock-bar { background: var(--tk-navy-800, #1e293b) !important; }
.login-page .diff-mock-bar-diff { background: var(--tk-red-strong, #ef4444) !important; }
[data-theme="light"] .login-page .diff-mock-arrow { color: var(--tk-slate-500, #64748b) !important; }
[data-theme="dark"] .login-page .diff-mock-arrow { color: var(--tk-slate-500, #64748b) !important; }
[data-theme="light"] .login-page .diff-mock-foot { color: var(--tk-navy-650, #334155) !important; }
[data-theme="dark"] .login-page .diff-mock-foot { color: var(--tk-slate-300, #cbd5e1) !important; }

.login-page .login-showcase-stats {
  border-top: none !important;
  padding-top: 4px !important;
}
.login-page .login-showcase-stats .stat-card,
.login-page .login-showcase-stats div {
  border-radius: 14px !important;
  padding: 16px 16px 15px !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
[data-theme="light"] .login-page .login-showcase-stats .stat-card,
[data-theme="light"] .login-page .login-showcase-stats div {
  background: var(--tk-slate-050, #f8fafc) !important;
  border: 1px solid var(--tk-slate-200, #e2e8f0) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  color: var(--tk-navy-650, #334155) !important;
}
[data-theme="light"] .login-page .login-showcase-stats .stat-card:hover,
[data-theme="light"] .login-page .login-showcase-stats div:hover {
  background: #fff !important;
  border-color: rgba(var(--lp-accent-rgb), 0.4) !important;
  box-shadow: 0 10px 24px -10px rgba(var(--lp-accent-rgb), 0.28);
  transform: translateY(-3px);
}
/* Dark counterpart: real elevated-card chrome (base drop shadow at rest, not just on hover) on a
   translucent-white-on-navy surface, matching dashboard-premium.css's dark card language instead
   of the flatter borderless-at-rest treatment style.css used before the premium pass. */
[data-theme="dark"] .login-page .login-showcase-stats .stat-card,
[data-theme="dark"] .login-page .login-showcase-stats div {
  background: rgba(255, 255, 255, 0.045) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: 0 8px 20px -14px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: var(--tk-slate-300, #cbd5e1) !important;
}
[data-theme="dark"] .login-page .login-showcase-stats .stat-card:hover,
[data-theme="dark"] .login-page .login-showcase-stats div:hover {
  background: rgba(255, 255, 255, 0.075) !important;
  border-color: rgba(var(--lp-accent-rgb), 0.45) !important;
  box-shadow: 0 10px 24px -10px rgba(var(--lp-accent-rgb), 0.4);
  transform: translateY(-3px);
}
.login-page .login-showcase-stats .stat-num { color: var(--lp-accent) !important; }
[data-theme="light"] .login-page .login-showcase-stats .stat-label { color: var(--tk-navy-850, #0f172a) !important; }
[data-theme="dark"] .login-page .login-showcase-stats .stat-label { color: var(--tk-slate-050, #f8fafc) !important; }
.login-page .login-showcase-stats .stat-desc { color: var(--tk-slate-500, #64748b) !important; }
[data-theme="light"] .login-page .login-showcase-credibility { color: var(--tk-slate-500, #64748b) !important; }
[data-theme="dark"] .login-page .login-showcase-credibility { color: var(--tk-slate-500, #64748b) !important; }
.login-page .login-showcase-credibility {
  /* The fixed "Powered by" badge sits over this panel's bottom-left corner — without this, the
     credibility line ("Visual Regression · Link Audit · SEO Audit") renders underneath it and
     gets partially hidden on shorter viewports. */
  padding-bottom: 56px;
}

/* ---- Form panel: dark charcoal by default (dark theme); a soft white/slate surface in light
   theme instead, so both panels read as one cohesive light page rather than a jarring dark
   block bolted onto a light showcase. ---- */
.login-page .login-formside {
  background: var(--lp-charcoal) !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
[data-theme="light"] .login-page .login-formside {
  background: #e7ebf1 !important;
  border-left: 1px solid var(--tk-slate-200, #e2e8f0);
}

/* A faint scanning grid drifting diagonally behind the form — a signature touch tying the dark
   panel back to the product itself (a "scanner" sweeping a grid) rather than a generic gradient.
   Sits behind the form (z-index -1, the card content around it establishes its own stacking via
   position: relative below) and fades out toward the edges via a radial mask so it reads as an
   ambient texture, not a hard-edged pattern tile. */
.login-page .login-formside::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(var(--lp-accent-rgb), 0.07) 0px, rgba(var(--lp-accent-rgb), 0.07) 1px, transparent 1px, transparent 64px),
    repeating-linear-gradient(0deg, rgba(var(--lp-accent-rgb), 0.07) 0px, rgba(var(--lp-accent-rgb), 0.07) 1px, transparent 1px, transparent 64px);
  -webkit-mask-image: radial-gradient(60% 60% at 50% 40%, #000 0%, transparent 75%);
  mask-image: radial-gradient(60% 60% at 50% 40%, #000 0%, transparent 75%);
  animation: lp-grid-drift 24s linear infinite;
  pointer-events: none;
}

@keyframes lp-grid-drift {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(64px, 64px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .login-page .login-formside::before { animation: none; }
}

.login-page .login-card,
.login-page .login-formside-foot {
  position: relative;
  z-index: 1;
}

.login-page .login-formside-foot {
  position: static;
  margin-top: 48px;
  color: var(--tk-slate-500, #64748b) !important;
}

.login-page .login-title {
  letter-spacing: -0.02em;
  font-size: 30px;
  color: var(--tk-slate-050, #f8fafc) !important;
}
[data-theme="light"] .login-page .login-title {
  color: var(--tk-navy-850, #0f172a) !important;
}

.login-page .login-card .sub { color: var(--tk-slate-400, #94a3b8) !important; }
[data-theme="light"] .login-page .login-card .sub { color: var(--tk-slate-600, #475569) !important; }

/* vault-theme.css's `body.app-vault .field` rule gives the .field WRAPPER itself a background
   and border (meant for the dashboard's single-control fields) — on the login form, where .field
   wraps a label + input stacked together, that put a light card behind the dark custom input,
   showing as a mismatched two-tone box. The wrapper itself should stay invisible here; only the
   input inside it should have a visible surface. */
.login-page .login-card .field {
  background: transparent !important;
  border: none !important;
}

.login-page .login-card label {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--tk-slate-400, #94a3b8) !important;
}
[data-theme="light"] .login-page .login-card label {
  color: var(--tk-slate-500, #64748b) !important;
}

.login-page .login-card input[type="text"],
.login-page .login-card input[type="password"] {
  /* -webkit-appearance/appearance reset: without it, mobile Safari/Chrome draw their own native
     autofill "chip" background behind username/password fields (autocomplete="username" /
     "current-password" opts an input into that chrome) — a light rounded box sitting behind our
     dark custom input, showing as a two-tone box around the label + field. */
  -webkit-appearance: none;
  appearance: none;
  border-radius: 12px;
  height: 48px;
  padding: 0 16px;
  background: var(--lp-charcoal-input) !important;
  border: 1.5px solid var(--lp-charcoal-border) !important;
  color: var(--tk-slate-050, #f8fafc) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
[data-theme="light"] .login-page .login-card input[type="text"],
[data-theme="light"] .login-page .login-card input[type="password"] {
  background: #ffffff !important;
  border: 1.5px solid var(--tk-slate-200, #e2e8f0) !important;
  color: var(--tk-navy-850, #0f172a) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* Chromium's own autofill yellow/light fill (:-webkit-autofill) also needs neutralizing to the
   dark surface, or the same light-box effect reappears the moment a field is autofilled. */
.login-page .login-card input:-webkit-autofill,
.login-page .login-card input:-webkit-autofill:hover,
.login-page .login-card input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--tk-slate-050, #f8fafc);
  -webkit-box-shadow: 0 0 0 1000px var(--lp-charcoal-input) inset;
  transition: background-color 9999s ease-in-out 0s;
}
[data-theme="light"] .login-page .login-card input:-webkit-autofill,
[data-theme="light"] .login-page .login-card input:-webkit-autofill:hover,
[data-theme="light"] .login-page .login-card input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--tk-navy-850, #0f172a);
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
}
.login-page .login-card input[type="text"]::placeholder,
.login-page .login-card input[type="password"]::placeholder {
  color: var(--tk-slate-500, #64748b) !important;
}

.login-page .login-card input[type="text"]:focus,
.login-page .login-card input[type="password"]:focus {
  border-color: var(--lp-accent) !important;
  background: var(--lp-charcoal-input-focus) !important;
  box-shadow: 0 0 0 4px rgba(var(--lp-accent-rgb), 0.22);
}
[data-theme="light"] .login-page .login-card input[type="text"]:focus,
[data-theme="light"] .login-page .login-card input[type="password"]:focus {
  background: #ffffff !important;
}

.login-page .login-card .password-field button#togglePassword {
  color: var(--tk-slate-400, #94a3b8) !important;
}
.login-page .login-card .password-field button#togglePassword:hover {
  color: var(--lp-accent) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}
[data-theme="light"] .login-page .login-card .password-field button#togglePassword {
  color: var(--tk-slate-500, #64748b) !important;
}
[data-theme="light"] .login-page .login-card .password-field button#togglePassword:hover {
  background: var(--tk-slate-100, #f1f5f9) !important;
}

.login-page .login-footnote { color: var(--tk-slate-500, #64748b) !important; }

.login-page .login-card button[type="submit"] {
  border-radius: 12px;
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent-2));
  box-shadow: 0 10px 28px -10px rgba(var(--lp-accent-rgb), 0.65);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, background 0.18s ease;
}
.login-page .login-card button[type="submit"]:hover:not(:disabled) {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 14px 34px -10px rgba(var(--lp-accent-rgb), 0.75);
  /* Same lift + scale "elevate" used on the sidebar's icon buttons. */
  transform: translateY(-1px) scale(1.015);
}
.login-page .login-card button[type="submit"]:active:not(:disabled) {
  transform: translateY(0);
}

/* ---- Entrance animation: gentle fade/slide-up, staggered ---- */
@keyframes lp-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.login-page .login-brand,
.login-page .login-eyebrow,
.login-page .login-showcase-title,
.login-page .login-showcase-sub,
.login-page .login-features-viewport,
.login-page .diff-mock,
.login-page .login-showcase-stats,
.login-page .login-title,
.login-page .login-card .sub,
.login-page .login-card .field,
.login-page .login-card button[type="submit"] {
  animation: lp-fade-up 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.login-page .login-brand { animation-delay: 0ms; }
.login-page .login-eyebrow { animation-delay: 60ms; }
.login-page .login-showcase-title { animation-delay: 110ms; }
.login-page .login-showcase-sub { animation-delay: 160ms; }
.login-page .diff-mock { animation-delay: 210ms; }
.login-page .login-features-viewport { animation-delay: 260ms; }
.login-page .login-showcase-stats { animation-delay: 310ms; }
.login-page .login-title { animation-delay: 40ms; }
.login-page .login-card .sub { animation-delay: 90ms; }
.login-page .login-card .field:nth-of-type(1) { animation-delay: 140ms; }
.login-page .login-card .field:nth-of-type(2) { animation-delay: 190ms; }
.login-page .login-card button[type="submit"] { animation-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  .login-page .login-brand,
  .login-page .login-eyebrow,
  .login-page .login-showcase-title,
  .login-page .login-showcase-sub,
  .login-page .login-features-viewport,
  .login-page .diff-mock,
  .login-page .login-showcase-stats,
  .login-page .login-title,
  .login-page .login-card .sub,
  .login-page .login-card .field,
  .login-page .login-card button[type="submit"] {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ---- "Powered by" badge: fixed bottom-right, floating over both panels ---- */
.powered-badge {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px 10px 14px;
  border-radius: 999px;
  background: rgba(23, 24, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.45);
  opacity: 0;
  animation: lp-fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) 700ms both;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
[data-theme="light"] .powered-badge {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--tk-slate-200, #e2e8f0);
  box-shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.2);
}

.powered-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lp-accent, #2563eb);
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(var(--lp-accent-rgb), 0.55);
  animation: lp-badge-ping 2.6s ease-out infinite;
}

@keyframes lp-badge-ping {
  0%   { box-shadow: 0 0 0 0 rgba(var(--lp-accent-rgb), 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(var(--lp-accent-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--lp-accent-rgb), 0); }
}

.powered-badge-text {
  font-size: 12.5px;
  color: var(--tk-slate-300, #cbd5e1);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
[data-theme="light"] .powered-badge-text { color: var(--tk-slate-600, #475569); }
.powered-badge-text strong {
  color: var(--tk-slate-050, #f8fafc);
  font-weight: 700;
}
[data-theme="light"] .powered-badge-text strong { color: var(--tk-navy-850, #0f172a); }

.powered-badge:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

@media (prefers-reduced-motion: reduce) {
  .powered-badge { animation: none; opacity: 1; }
  .powered-badge-dot { animation: none; }
}

@media (max-width: 520px) {
  .powered-badge { right: 14px; bottom: 14px; padding: 8px 14px 8px 12px; }
  .powered-badge-text { font-size: 11.5px; }
}


/* ---- Floating bottom-left theme toggle: an "eclipse dial" — a coin-flip disc (sun on one
   face, moon on the other, true 3D flip via backface-visibility) inside a thin progress ring,
   instead of a sliding pill switch. Matches the dashboard's version. ---- */
.theme-dial {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 500;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  background: none;
  /* Without this, the native OS button chrome (a white rounded-rect background/shadow) still
     paints underneath our custom circular content, showing as a stray white blob poking out
     from behind the dial. */
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  border-radius: 50%;
  perspective: 240px;
}
@media (max-width: 520px) {
  .theme-dial { bottom: 12px; left: 12px; }
}

.theme-dial-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from -90deg, #60a5fa 0deg, rgba(96, 165, 250, 0) 300deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), black calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), black calc(100% - 3px));
  opacity: 0.85;
  transition: background 0.4s ease;
}
[data-theme="light"] .theme-dial-ring {
  background: conic-gradient(from -90deg, #f59e0b 0deg, rgba(245, 158, 11, 0) 300deg);
}
.theme-dial:hover .theme-dial-ring {
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(96, 165, 250, 0.6));
}
[data-theme="light"] .theme-dial:hover .theme-dial-ring {
  filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.6));
}

/* ==========================================================================
   Incandescent bulb toggle — real drawn SVG artwork (glass/filament/leads/
   base), not an emoji or a spinning glyph. ON = warm glowing tungsten
   filament with a soft amber halo; OFF = the same geometry desaturated to
   cool gray with the filament dark. Click plays a squash + elastic bounce
   with an irregular incandescent flicker (see .click-squash/.flicker-on/
   .flicker-off, applied by the JS click handler), never a rotation.
   ========================================================================== */
/* No disc/circle background here on purpose — the ring (.theme-dial-ring) is the only circular
   chrome; the bulb itself just floats on the page with its own soft glow, not a filled plate. */
.theme-dial-bulb {
  position: absolute;
  inset: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Soft glow hugging the bulb's own shape — a blurred blob sized to the glass, not a hard-edged
   circle spanning the whole button — visible only when lit. */
.theme-dial-bulb-halo {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 224, 71, 0.85) 0%, rgba(251, 191, 36, 0.4) 45%, transparent 75%);
  filter: blur(4px);
  opacity: 0;
  transition: opacity 0.4s ease;
}
[data-theme="light"] .theme-dial-bulb-halo {
  opacity: 1;
  animation: theme-bulb-halo-breathe 2.6s ease-in-out infinite;
}
@keyframes theme-bulb-halo-breathe {
  0%, 100% { transform: scale(0.94); opacity: 0.7; }
  50% { transform: scale(1.04); opacity: 0.9; }
}

.theme-dial-bulb-svg {
  position: relative;
  z-index: 1;
  width: 37.5px;
  height: 37.5px;
  transition: transform 0.15s ease;
}

.theme-dial-bulb-svg .bulb-glass {
  fill: rgba(255, 255, 255, 0.06);
  stroke: rgba(148, 163, 184, 0.55);
  stroke-width: 1.1;
  transition: fill 0.4s ease, stroke 0.4s ease;
}
/* Lit: the glass stays mostly CLEAR (barely tinted) with a crisp, fairly opaque amber outline
   — a defined edge to hold the shape together against the halo behind it, instead of a warm
   fill that had nearly the same hue as the glow and disappeared into it. */
[data-theme="light"] .theme-dial-bulb-svg .bulb-glass {
  fill: rgba(253, 230, 138, 0.45);
  stroke: #d97706;
  stroke-width: 1.4;
}

.theme-dial-bulb-svg .bulb-filament {
  stroke: #4b5563;
  transition: stroke 0.4s ease, filter 0.4s ease;
}
.theme-dial-bulb-svg .bulb-lead-l,
.theme-dial-bulb-svg .bulb-lead-r {
  stroke: #4b5563;
  transition: stroke 0.4s ease;
}
/* Filament is pushed to near-white (the brightest element, per spec) with a darker amber
   halo drawn UNDER it via a black-tinted drop-shadow first — that dark ring is what keeps the
   bright filament readable against the equally-bright glass/halo instead of the two merging. */
[data-theme="light"] .theme-dial-bulb-svg .bulb-filament {
  stroke: #fffdf5;
  stroke-width: 1.9;
  filter: drop-shadow(0 0 1.5px rgba(120, 53, 15, 0.9)) drop-shadow(0 0 3px #f59e0b) drop-shadow(0 0 6px rgba(251, 146, 60, 0.9));
}
[data-theme="light"] .theme-dial-bulb-svg .bulb-lead-l,
[data-theme="light"] .theme-dial-bulb-svg .bulb-lead-r {
  stroke: #b45309;
  stroke-width: 1.4;
}

.theme-dial-bulb-svg .bulb-reflection {
  fill: rgba(255, 255, 255, 0.22);
  transition: fill 0.4s ease;
}
[data-theme="light"] .theme-dial-bulb-svg .bulb-reflection {
  fill: rgba(255, 255, 255, 0.55);
}

.theme-dial-bulb-svg .bulb-base rect {
  fill: #565c68;
  transition: fill 0.4s ease;
}
.theme-dial-bulb-svg .bulb-base rect:nth-of-type(2n) {
  fill: #6b7280;
}
[data-theme="light"] .theme-dial-bulb-svg .bulb-base rect {
  fill: #9ca3af;
}
[data-theme="light"] .theme-dial-bulb-svg .bulb-base rect:nth-of-type(2n) {
  fill: #d1d5db;
}

/* Same button-level lift as the dashboard sidebar's theme toggle, for consistency across
   pages. */
.theme-dial {
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.theme-dial:hover {
  transform: translateY(-1px) scale(1.08);
}
.theme-dial:hover .theme-dial-bulb-svg {
  transform: scale(1.06);
}
.theme-dial:hover .theme-dial-bulb-halo {
  opacity: 1;
}
.theme-dial:focus-visible {
  outline: 2px solid var(--lp-accent, #2563eb);
  outline-offset: 3px;
}

.theme-dial-bulb-svg.click-squash {
  animation: theme-bulb-squash 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes theme-bulb-squash {
  0% { transform: scale(1, 1); }
  30% { transform: scale(1.05, 0.93); }
  55% { transform: scale(0.97, 1.05); }
  78% { transform: scale(1.02, 0.98); }
  100% { transform: scale(1, 1); }
}

.theme-dial-bulb-halo.flicker-on {
  animation: theme-bulb-halo-flicker-on 0.55s steps(1, end);
}
.theme-dial-bulb-halo.flicker-off {
  animation: theme-bulb-halo-flicker-off 0.4s steps(1, end);
}
@keyframes theme-bulb-halo-flicker-on {
  0% { opacity: 0; transform: scale(0.85); }
  12% { opacity: 0.75; transform: scale(1.02); }
  26% { opacity: 0.2; transform: scale(0.92); }
  40% { opacity: 0.95; transform: scale(1.05); }
  58% { opacity: 0.55; transform: scale(0.98); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes theme-bulb-halo-flicker-off {
  0% { opacity: 1; }
  22% { opacity: 0.15; }
  38% { opacity: 0.5; }
  100% { opacity: 0; }
}
.theme-dial-bulb-svg.flicker-on .bulb-filament {
  animation: theme-bulb-filament-flicker-on 0.55s steps(1, end);
}
.theme-dial-bulb-svg.flicker-off .bulb-filament {
  animation: theme-bulb-filament-flicker-off 0.4s steps(1, end);
}
@keyframes theme-bulb-filament-flicker-on {
  0% { stroke: #4b5563; filter: none; }
  12% { stroke: #fff7cc; filter: drop-shadow(0 0 2.5px #fbbf24) drop-shadow(0 0 5px rgba(251, 191, 36, 0.8)); }
  26% { stroke: #9ca3af; filter: none; }
  40% { stroke: #fff7cc; filter: drop-shadow(0 0 3px #fde68a) drop-shadow(0 0 6px rgba(251, 191, 36, 0.9)); }
  58% { stroke: #d1d5db; filter: drop-shadow(0 0 1px #fbbf24); }
  100% { stroke: #fff7cc; filter: drop-shadow(0 0 2.5px #fbbf24) drop-shadow(0 0 5px rgba(251, 191, 36, 0.8)); }
}
@keyframes theme-bulb-filament-flicker-off {
  0% { stroke: #fff7cc; filter: drop-shadow(0 0 2.5px #fbbf24) drop-shadow(0 0 5px rgba(251, 191, 36, 0.8)); }
  25% { stroke: #6b7280; filter: none; }
  45% { stroke: #d1d5db; filter: drop-shadow(0 0 1px #fbbf24); }
  100% { stroke: #4b5563; filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  .theme-dial-bulb-halo,
  .theme-dial-bulb-svg,
  .theme-dial-bulb-svg .bulb-filament,
  .theme-dial-bulb-svg.click-squash,
  .theme-dial-bulb-halo.flicker-on,
  .theme-dial-bulb-halo.flicker-off,
  .theme-dial-bulb-svg.flicker-on .bulb-filament,
  .theme-dial-bulb-svg.flicker-off .bulb-filament {
    animation: none !important;
    transition: opacity 0.2s ease, fill 0.2s ease, stroke 0.2s ease;
  }
}
