/* Decorative motion stays separate from the stable layout and form controls. */
.auth-scene-art { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: lighten; }
.auth-scene-flows {
  position: absolute;
  inset: 0;
  display: block;
  width: 112%;
  height: 100%;
  max-width: none;
  margin: auto;
  overflow: visible;
  opacity: 0;
  pointer-events: none;
}
.auth-motion-stream {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 7 93;
  stroke-dashoffset: 100;
}
.auth-flow-warm { stroke: #fff4d9; filter: drop-shadow(0 0 4px #ffab58); }
.auth-flow-cool,
.auth-flow-upper { stroke: #e6f8ff; filter: drop-shadow(0 0 4px #78c9ff); }

.auth-workspace-label { margin-right: auto; }
.auth-motion-toggle {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 24px;
  background: transparent;
  color: var(--auth-muted);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.auth-motion-toggle > i { font-size: 17px; }
.auth-motion-toggle:hover { color: var(--auth-ink); background: var(--auth-soft); }
.auth-motion-toggle:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

@media (prefers-reduced-motion: no-preference) {
  .auth-workspace-page[data-auth-motion] .auth-scene-art { animation: auth-scene-float 8s ease-in-out infinite; }
  .auth-workspace-page[data-auth-motion] .auth-scene-flows { opacity: .85; }
  .auth-workspace-page[data-auth-motion] .auth-scene-label { animation: auth-label-float 6.5s ease-in-out infinite; }
  .auth-workspace-page[data-auth-motion] .auth-scene-projects { animation-delay: -2s; }
  .auth-workspace-page[data-auth-motion] .auth-scene-time { animation-delay: -4s; }
  .auth-workspace-page[data-auth-motion] .auth-flow-warm { animation: auth-connection-flow 5s linear infinite; }
  .auth-workspace-page[data-auth-motion] .auth-flow-cool { animation: auth-connection-flow 6.5s linear -3s infinite; }
  .auth-workspace-page[data-auth-motion] .auth-flow-upper { animation: auth-connection-flow 4s linear -1s infinite; }
  .auth-workspace-page[data-auth-motion="paused"] .auth-motion-item,
  .auth-workspace-page[data-auth-motion="paused"] .auth-scene-label { animation-play-state: paused; }
}

@keyframes auth-scene-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes auth-label-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes auth-connection-flow { to { stroke-dashoffset: 0; } }

@media (max-width: 1100px) {
  .auth-motion-toggle { width: 44px; padding: 0; }
  .auth-motion-toggle > span { display: none; }
}
@media (max-width: 760px) {
  .auth-scene-flows { width: 120%; }
  .auth-access-header { gap: 8px; }
  .auth-motion-toggle { border-color: rgba(255,255,255,.22); background: #233449; color: #e4eaf3; }
  .auth-motion-toggle:hover { color: #fff; background: #304762; }
  @keyframes auth-scene-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .auth-motion-toggle,
  .auth-scene-flows { display: none !important; }
  .auth-scene-art,
  .auth-scene-label,
  .auth-motion-stream { animation: none !important; transform: none; }
}
