ARES - authorized red-team engagement automation with dashboard, campaign scope, module orchestration, OPSEC controls, encrypted vault, and reporting.
Python active-directorycloud-securitydefensive-validationfastapigood-first-issuemitre-attackopsecreactred-teamreportingsecurity
feat(ui): modernize operator login surface to production-grade SaaS with dynamic canvas grid and updated documentation
Mafifrizi774538e22d81
diff --git a/README.md b/README.mdindex c07dc65..1dddd62 100644--- a/README.md+++ b/README.md@@ -99,13 +99,13 @@ The ARES Platform features a high-performance, responsive operator dashboard eng-*ARES Operator Enclave featuring live Dragon-Scale Hexagonal Mesh visualizer and defense-in-depth security boundary.*+*ARES Operator Enclave featuring live Dynamic Architectural Grid canvas, system environment specifications, and defense-in-depth security boundary.*</div>- **The Problem Solved**: Eliminates unauthorized operator access, token replay attacks, and token leakage to local browser storage.- **Key Capabilities**:- - Live **Dragon-Scale Hexagonal Mesh Canvas**: Low-overhead hardware-accelerated canvas visualizing DAG lattice density while responding dynamically to operator proximity.+ - Live **Dynamic Architectural Grid Canvas**: Low-overhead hardware-accelerated 60 FPS HTML5 canvas with real-time traveling data pulses and cursor proximity illumination.- **Memory-Only Token Isolation**: Short-lived JWTs reside strictly in memory; refresh credentials use host-only, HttpOnly cookies with one-time rotation.- **HMAC Double-Submit CSRF Protection**: Constant-time verification on all state-mutating requests (`X-ARES-CSRF`).- **Cryptographic Brute-Force Shield**: Enforces exponential backoff and IP-based rate limiting on authentication attempts.@@ -262,7 +262,7 @@ ARES follows a strict defense-in-depth architecture separating presentation, exeflowchart TBsubgraph Client["Presentation Layer (Operator Enclave)"]UI["React 19 Dashboard<br>(Vite + TypeScript)"]- Mesh["Dragon-Scale Hexagonal Mesh<br>(Canvas 2D Engine)"]+ Mesh["Dynamic Architectural Grid<br>(Canvas 2D Engine)"]WSClient["WebSocket Client<br>(Real-Time Telemetry Stream)"]enddiff --git a/docs/assets/screenshots/login-enclave.png b/docs/assets/screenshots/login-enclave.pngindex 8943605..fa773ec 100644Binary files a/docs/assets/screenshots/login-enclave.png and b/docs/assets/screenshots/login-enclave.png differdiff --git a/frontend/src/features/auth/BackgroundAnimationCanvas.tsx b/frontend/src/features/auth/BackgroundAnimationCanvas.tsxnew file mode 100644index 0000000..5bfc12f--- /dev/null+++ b/frontend/src/features/auth/BackgroundAnimationCanvas.tsx@@ -0,0 +1,195 @@+import { useEffect, useRef } from "react";++interface BackgroundAnimationCanvasProps {+ className?: string;+}++interface Pulse {+ x: number;+ y: number;+ vx: number;+ vy: number;+ life: number;+ maxLife: number;+ size: number;+}++export function BackgroundAnimationCanvas({ className = "" }: BackgroundAnimationCanvasProps) {+ const canvasRef = useRef<HTMLCanvasElement>(null);++ useEffect(() => {+ const canvas = canvasRef.current;+ if (!canvas) return;++ if (typeof navigator !== "undefined" && navigator.userAgent.includes("jsdom")) return;+ if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;++ let ctx: CanvasRenderingContext2D | null = null;+ try {+ ctx = canvas.getContext("2d");+ } catch {+ return;+ }+ if (!ctx) return;++ let animId: number;+ let width = 0;+ let height = 0;+ const dpr = window.devicePixelRatio || 1;+ const mouse = { x: -9999, y: -9999 };++ const GRID_SIZE = 40;+ const pulses: Pulse[] = [];+ const MAX_PULSES = 18;++ const spawnPulse = () => {+ if (width <= 0 || height <= 0) return;+ const isHorizontal = Math.random() > 0.5;+ const col = Math.floor(Math.random() * (width / GRID_SIZE));+ const row = Math.floor(Math.random() * (height / GRID_SIZE));+ const x = col * GRID_SIZE;+ const y = row * GRID_SIZE;++ const speed = 1.2 + Math.random() * 1.5;+ pulses.push({+ x,+ y,+ vx: isHorizontal ? (Math.random() > 0.5 ? speed : -speed) : 0,+ vy: !isHorizontal ? (Math.random() > 0.5 ? speed : -speed) : 0,+ life: 0,+ maxLife: 60 + Math.floor(Math.random() * 80),+ size: 2 + Math.random() * 1.5+ });+ };++ const updateSize = () => {+ const rect = canvas.getBoundingClientRect();+ width = rect.width;+ height = rect.height;+ canvas.width = Math.max(1, Math.floor(width * dpr));+ canvas.height = Math.max(1, Math.floor(height * dpr));+ ctx!.setTransform(1, 0, 0, 1, 0, 0);+ ctx!.scale(dpr, dpr);+ };++ updateSize();++ const onMouseMove = (e: MouseEvent) => {+ const rect = canvas.getBoundingClientRect();+ mouse.x = e.clientX - rect.left;+ mouse.y = e.clientY - rect.top;+ };++ const onMouseLeave = () => {+ mouse.x = -9999;+ mouse.y = -9999;+ };++ window.addEventListener("resize", updateSize);+ const parent = canvas.parentElement;+ parent?.addEventListener("mousemove", onMouseMove);+ parent?.addEventListener("mouseleave", onMouseLeave);++ // Populate initial pulses+ for (let i = 0; i < 10; i++) {+ spawnPulse();+ }++ let frame = 0;++ const render = () => {+ frame++;+ ctx!.clearRect(0, 0, width, height);++ // 1. Draw Architectural Grid+ ctx!.lineWidth = 1;+ ctx!.strokeStyle = "rgba(113, 113, 122, 0.08)";++ ctx!.beginPath();+ for (let x = 0; x <= width; x += GRID_SIZE) {+ ctx!.moveTo(x, 0);+ ctx!.lineTo(x, height);+ }+ for (let y = 0; y <= height; y += GRID_SIZE) {+ ctx!.moveTo(0, y);+ ctx!.lineTo(width, y);+ }+ ctx!.stroke();++ // 2. Mouse Glow on Grid Intersections+ if (mouse.x > 0 && mouse.y > 0) {+ const glowRadius = 140;+ const radialGrad = ctx!.createRadialGradient(+ mouse.x,+ mouse.y,+ 0,+ mouse.x,+ mouse.y,+ glowRadius+ );+ radialGrad.addColorStop(0, "rgba(220, 38, 38, 0.12)");+ radialGrad.addColorStop(0.5, "rgba(113, 113, 122, 0.06)");+ radialGrad.addColorStop(1, "rgba(0, 0, 0, 0)");++ ctx!.fillStyle = radialGrad;+ ctx!.fillRect(mouse.x - glowRadius, mouse.y - glowRadius, glowRadius * 2, glowRadius * 2);+ }++ // 3. Update & Draw Moving Grid Pulses+ if (frame % 15 === 0 && pulses.length < MAX_PULSES) {+ spawnPulse();+ }++ for (let i = pulses.length - 1; i >= 0; i--) {+ const p = pulses[i];+ p.x += p.vx;+ p.y += p.vy;+ p.life++;++ // Calculate fade in and fade out+ const progress = p.life / p.maxLife;+ const opacity = progress < 0.2+ ? progress / 0.2+ : 1 - (progress - 0.2) / 0.8;++ if (p.life >= p.maxLife || p.x < 0 || p.x > width || p.y < 0 || p.y > height) {+ pulses.splice(i, 1);+ continue;+ }++ // Draw pulse particle+ ctx!.beginPath();+ ctx!.arc(p.x, p.y, p.size, 0, Math.PI * 2);+ ctx!.fillStyle = `rgba(220, 38, 38, ${Math.max(0, opacity * 0.45)})`;+ ctx!.fill();++ // Subtle streak / tail+ ctx!.beginPath();+ ctx!.moveTo(p.x, p.y);+ ctx!.lineTo(p.x - p.vx * 3.5, p.y - p.vy * 3.5);+ ctx!.strokeStyle = `rgba(220, 38, 38, ${Math.max(0, opacity * 0.25)})`;+ ctx!.lineWidth = p.size * 0.8;+ ctx!.stroke();+ }++ animId = requestAnimationFrame(render);+ };++ animId = requestAnimationFrame(render);++ return () => {+ cancelAnimationFrame(animId);+ window.removeEventListener("resize", updateSize);+ parent?.removeEventListener("mousemove", onMouseMove);+ parent?.removeEventListener("mouseleave", onMouseLeave);+ };+ }, []);++ return (+ <canvas+ ref={canvasRef}+ aria-hidden="true"+ className={`pointer-events-none absolute inset-0 h-full w-full ${className}`}+ />+ );+}diff --git a/frontend/src/features/auth/LoginPage.tsx b/frontend/src/features/auth/LoginPage.tsxindex 18a3325..00c02cf 100644--- a/frontend/src/features/auth/LoginPage.tsx+++ b/frontend/src/features/auth/LoginPage.tsx@@ -1,7 +1,7 @@-import { Activity, AlertCircle, Eye, EyeOff, GitGraph, Loader2, ShieldCheck } from "lucide-react";+import { AlertCircle, Eye, EyeOff, Loader2 } from "lucide-react";import { FormEvent, useState } from "react";import { Navigate, useNavigate } from "react-router-dom";-import { SecurityMeshCanvas } from "./SecurityMeshCanvas";+import { BackgroundAnimationCanvas } from "./BackgroundAnimationCanvas";import { useAuth } from "./authContext";const brandMarkPath = "/dashboard/brand/ares-mark.png";@@ -34,118 +34,30 @@ export function LoginPage() {}return (- <div className="min-h-[100dvh] w-full bg-[#09090b] text-[#f4f4f5] grid lg:grid-cols-12 selection:bg-red-700 selection:text-white">+ <div className="min-h-[100dvh] w-full bg-[#09090b] text-[#f4f4f5] grid lg:grid-cols-2 selection:bg-red-700 selection:text-white">- {/* Left Column */}- <div className="hidden lg:flex lg:col-span-7 flex-col justify-between p-12 xl:p-16 border-r border-[#1a1a1f] bg-[#0b0b0e] relative overflow-hidden">- {/* The mesh IS the animation — purposeful: visualises the live attack graph */}- <SecurityMeshCanvas />-- {/* Ambient atmospheric glow — soft ember warmth behind dragon scales */}- <div className="pointer-events-none absolute left-1/3 top-1/2 -translate-x-1/2 -translate-y-1/2 h-[36rem] w-[36rem] rounded-full bg-red-950/[0.22] blur-[110px] animate-ares-breathe" />-- {/* Brand header */}- <div className="relative z-10 flex items-center gap-3 animate-login-enter" style={{ animationDelay: "0ms" }}>+ {/* Left Column: Focused Clean Sign In */}+ <div className="flex flex-col justify-between p-8 sm:p-12 xl:p-16 relative">+ {/* Brand Header */}+ <div className="flex items-center gap-3"><img- className="h-9 w-9 object-contain rounded-md border border-zinc-800 bg-zinc-900/60 p-1"+ className="h-8 w-8 object-contain rounded-md border border-zinc-800 bg-zinc-900/80 p-1"src={brandMarkPath}alt="ARES"/><div>- <h1 className="text-base font-semibold text-white tracking-tight">ARES Dashboard</h1>- <p className="text-[11px] text-zinc-500 font-mono">Automated Red Team Engagement System</p>- </div>- </div>-- {/* Value proposition */}- <div className="relative z-10 max-w-lg space-y-6 my-auto py-12">- <div className="animate-login-enter" style={{ animationDelay: "80ms" }}>- <h2 className="text-3xl font-semibold text-zinc-100 tracking-tight leading-tight">- Autonomous red team engagement platform for offensive security teams.- </h2>- <p className="text-sm text-zinc-400 leading-relaxed mt-3">- Coordinate multi-vector attack chains, assess defensive barriers across enterprise enclaves, and validate resilience against adversary techniques with full audit fidelity.- </p>+ <h1 className="text-sm font-semibold text-white tracking-tight">ARES Dashboard</h1>+ <span className="text-xs text-zinc-500 font-mono">v6.0</span></div>-- <div className="pt-2 grid gap-3 text-xs">- {/* Pillar — hover translate communicates interactivity, red accent on hover ties to ARES brand */}- <div- className="flex items-start gap-3.5 p-3.5 rounded-lg border border-zinc-800/80 bg-zinc-900/30 backdrop-blur-sm hover:border-red-900/40 hover:bg-zinc-900/50 transition-all duration-200 group cursor-default hover:translate-x-1 animate-login-enter"- style={{ animationDelay: "180ms" }}- >- <div className="p-1.5 rounded-md bg-zinc-900 border border-zinc-800 text-zinc-400 group-hover:border-red-900/50 group-hover:text-red-500 transition-colors mt-0.5 shrink-0">- <GitGraph size={15} />- </div>- <div className="flex-1 min-w-0">- <strong className="text-zinc-200 block text-xs font-medium">Multi-Vector Attack Graph</strong>- <span className="text-zinc-400 text-[11px] leading-relaxed block mt-0.5">- Interactive DAG execution chains with deterministic objective replay.- </span>- </div>- </div>-- <div- className="flex items-start gap-3.5 p-3.5 rounded-lg border border-zinc-800/80 bg-zinc-900/30 backdrop-blur-sm hover:border-red-900/40 hover:bg-zinc-900/50 transition-all duration-200 group cursor-default hover:translate-x-1 animate-login-enter"- style={{ animationDelay: "260ms" }}- >- <div className="p-1.5 rounded-md bg-zinc-900 border border-zinc-800 text-zinc-400 group-hover:border-red-900/50 group-hover:text-red-500 transition-colors mt-0.5 shrink-0">- <Activity size={15} />- </div>- <div className="flex-1 min-w-0">- <strong className="text-zinc-200 block text-xs font-medium">Adaptive OPSEC Controls</strong>- <span className="text-zinc-400 text-[11px] leading-relaxed block mt-0.5">- Real-time telemetry, noise profiling, and automated containment governor.- </span>- </div>- </div>-- <div- className="flex items-start gap-3.5 p-3.5 rounded-lg border border-zinc-800/80 bg-zinc-900/30 backdrop-blur-sm hover:border-red-900/40 hover:bg-zinc-900/50 transition-all duration-200 group cursor-default hover:translate-x-1 animate-login-enter"- style={{ animationDelay: "340ms" }}- >- <div className="p-1.5 rounded-md bg-zinc-900 border border-zinc-800 text-zinc-400 group-hover:border-red-900/50 group-hover:text-red-500 transition-colors mt-0.5 shrink-0">- <ShieldCheck size={15} />- </div>- <div className="flex-1 min-w-0">- <strong className="text-zinc-200 block text-xs font-medium">Zero-Trust Ticket Barrier</strong>- <span className="text-zinc-400 text-[11px] leading-relaxed block mt-0.5">- Cryptographically verified WebSocket sessions and immutable audit logging.- </span>- </div>- </div>- </div>- </div>-- <div />- </div>-- {/* Right Column */}- <div className="col-span-12 lg:col-span-5 flex flex-col justify-center items-center p-6 sm:p-10 relative overflow-hidden">- {/* Background breathing glow — communicates the system is live, not dormant */}- <div className="pointer-events-none absolute inset-0 flex items-center justify-center overflow-hidden">- <div className="h-[28rem] w-[28rem] rounded-full bg-red-900/[0.04] blur-[90px] animate-ares-breathe" /></div>- {/* Mobile brand */}- <div className="lg:hidden text-center mb-8 relative z-10 animate-login-enter">- <img- className="h-10 w-10 object-contain rounded-md border border-zinc-800 bg-zinc-900/60 p-1 mx-auto mb-3"- src={brandMarkPath}- alt="ARES"- />- <div className="text-xl font-semibold text-white tracking-tight">ARES Enclave</div>- <p className="text-xs text-zinc-400 mt-1">Automated Red Team Engagement System</p>- </div>-- {/* Auth card */}- <div- className="relative z-10 w-full max-w-sm rounded-xl border border-zinc-800/80 bg-[#111114]/95 backdrop-blur-md p-7 shadow-2xl animate-login-enter transition-all duration-200"- style={{ animationDelay: "140ms" }}- >+ {/* Center Form Container */}+ <div className="w-full max-w-sm mx-auto my-auto py-8"><div className="mb-6">- <h2 className="text-lg font-semibold text-white tracking-tight">Operator Authentication</h2>- <p className="text-xs text-zinc-500 mt-1">Sign in with your authorized enclave credentials</p>+ <h2 className="text-2xl font-semibold text-white tracking-tight">Sign In</h2>+ <p className="text-xs text-zinc-400 mt-1.5 leading-relaxed">+ Enter your credentials to access your dashboard.+ </p></div><form onSubmit={(event) => void submit(event)} className="space-y-4">@@ -155,7 +67,7 @@ export function LoginPage() {</label><inputid="operator-username"- className="block w-full rounded-md border border-zinc-800 bg-[#09090b] px-3 py-2 text-sm text-white placeholder-zinc-600 transition-all duration-150 focus:border-red-800/60 focus:outline-none focus:ring-1 focus:ring-red-800/40 disabled:opacity-50"+ className="block w-full rounded-md border border-zinc-800 bg-zinc-950 px-3.5 py-2.5 text-sm text-white placeholder-zinc-600 transition-all duration-150 focus:border-red-600 focus:outline-none focus:ring-1 focus:ring-red-600 disabled:opacity-50"placeholder="operator"value={username}onChange={(e) => setUsername(e.target.value)}@@ -172,7 +84,7 @@ export function LoginPage() {<div className="relative"><inputid="operator-password"- className="block w-full rounded-md border border-zinc-800 bg-[#09090b] pl-3 pr-10 py-2 text-sm text-white placeholder-zinc-600 transition-all duration-150 focus:border-red-800/60 focus:outline-none focus:ring-1 focus:ring-red-800/40 disabled:opacity-50"+ className="block w-full rounded-md border border-zinc-800 bg-zinc-950 pl-3.5 pr-10 py-2.5 text-sm text-white placeholder-zinc-600 transition-all duration-150 focus:border-red-600 focus:outline-none focus:ring-1 focus:ring-red-600 disabled:opacity-50"type={showPassword ? "text" : "password"}value={password}onChange={(e) => setPassword(e.target.value)}@@ -183,31 +95,31 @@ export function LoginPage() {/><buttontype="button"- className="absolute inset-y-0 right-0 flex items-center pr-3 text-zinc-500 hover:text-zinc-200 transition-colors disabled:pointer-events-none"+ className="absolute inset-y-0 right-0 flex items-center pr-3 text-zinc-500 hover:text-zinc-300 transition-colors disabled:pointer-events-none"onClick={() => setShowPassword((v) => !v)}disabled={isSubmitting}aria-label={showPassword ? "Hide password" : "Show password"}>- {showPassword ? <EyeOff size={15} /> : <Eye size={15} />}+ {showPassword ? <EyeOff size={16} /> : <Eye size={16} />}</button></div></div>{error && (- <div className="rounded-md border border-red-700/30 bg-red-700/10 px-3 py-2 text-xs text-red-400 flex items-start gap-2 animate-login-enter">+ <div className="rounded-md border border-red-900/50 bg-red-950/30 px-3 py-2 text-xs text-red-400 flex items-start gap-2 animate-login-enter"><AlertCircle size={14} className="mt-0.5 shrink-0" /><span>{error}</span></div>)}<button- className="w-full mt-2 flex items-center justify-center gap-2 rounded-md bg-zinc-100 hover:bg-white active:scale-[0.98] px-4 py-2.5 text-sm font-semibold text-zinc-950 transition-all duration-150 shadow-sm hover:shadow-[0_0_20px_rgba(255,255,255,0.10)] focus:outline-none focus:ring-2 focus:ring-zinc-400 focus:ring-offset-2 focus:ring-offset-[#111114] disabled:opacity-50 disabled:cursor-not-allowed"+ className="w-full mt-2 flex items-center justify-center gap-2 rounded-md bg-zinc-100 hover:bg-white active:scale-[0.98] px-4 py-2.5 text-sm font-semibold text-zinc-950 transition-all duration-150 shadow-sm focus:outline-none focus:ring-2 focus:ring-zinc-400 focus:ring-offset-2 focus:ring-offset-zinc-950 disabled:opacity-50 disabled:cursor-not-allowed"type="submit"disabled={isSubmitting}>{isSubmitting ? (<>- <Loader2 size={15} className="animate-spin text-zinc-900" />+ <Loader2 size={16} className="animate-spin text-zinc-950" /><span>Signing in...</span></>) : (@@ -215,14 +127,69 @@ export function LoginPage() {)}</button></form>+ </div>++ {/* Minimalist Subtext Footer */}+ <div className="text-xs text-zinc-500 font-mono">+ ARES Automated Red Team Engagement System+ </div>+ </div>- <div className="mt-6 border-t border-zinc-800/60 pt-4 text-center">- <p className="text-[11px] text-zinc-500 leading-relaxed">- Restricted security gateway. All access attempts are cryptographically verified and audited.+ {/* Right Column: High-Precision Modern Presentation with Living Canvas Motion */}+ <div className="hidden lg:flex flex-col items-center justify-center p-12 xl:p-16 border-l border-zinc-800/80 bg-[#070709] relative overflow-hidden select-none">+ {/* Dynamic Architectural Grid & Traveling Light Pulses Canvas */}+ <BackgroundAnimationCanvas className="opacity-90" />++ {/* Ambient Warmth Glow behind content */}+ <div className="pointer-events-none absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 h-[32rem] w-[32rem] rounded-full bg-red-950/15 blur-[140px]" />++ {/* Centerpiece Content */}+ <div className="relative z-10 w-full max-w-md space-y-8">+ {/* Typography */}+ <div>+ <h2 className="text-3xl xl:text-4xl font-semibold text-white tracking-tight leading-tight">+ Offensive security,+ <br />+ <span className="text-zinc-500 font-normal">engineered for precision.</span>+ </h2>+ <p className="text-sm text-zinc-400 leading-relaxed mt-3 max-w-sm">+ Automate multi-stage attack chains with deterministic execution and full audit fidelity.</p></div>++ {/* Clean Enterprise Specification Card */}+ <div className="w-full max-w-sm rounded-lg border border-zinc-800/80 bg-zinc-950/80 backdrop-blur-md p-5 shadow-2xl">+ <div className="text-xs font-mono font-medium text-zinc-300 tracking-wider pb-3 border-b border-zinc-800/80 uppercase">+ System Environment+ </div>++ <div className="divide-y divide-zinc-800/60 text-xs font-mono">+ <div className="flex items-center justify-between py-2.5">+ <span className="text-zinc-500">Architecture</span>+ <span className="text-zinc-200">Distributed Core</span>+ </div>+ <div className="flex items-center justify-between py-2.5">+ <span className="text-zinc-500">Policy Engine</span>+ <span className="text-zinc-200">Deterministic Fail-Closed</span>+ </div>+ <div className="flex items-center justify-between py-2.5">+ <span className="text-zinc-500">Isolation Layer</span>+ <span className="text-zinc-200">Hermetic Enclave</span>+ </div>+ <div className="flex items-center justify-between py-2.5">+ <span className="text-zinc-500">Audit Protocol</span>+ <span className="text-zinc-200">Cryptographic Verification</span>+ </div>+ </div>++ <div className="mt-3 pt-3 border-t border-zinc-800/60 flex items-center justify-between text-[11px] font-mono text-zinc-500">+ <span>Host: 127.0.0.1</span>+ <span>API Gateway: 8080</span>+ </div>+ </div></div></div>+</div>);}diff --git a/frontend/src/styles.css b/frontend/src/styles.cssindex f8ac429..a1b0127 100644--- a/frontend/src/styles.css+++ b/frontend/src/styles.css@@ -2233,3 +2233,49 @@ textarea.field {.animate-ares-breathe {animation: aresBreathe 9s ease-in-out infinite;}++/* Subtle organic floating animation for the ARES Dragon identity */+@keyframes aresFloat {+ 0%, 100% { transform: translateY(0px); }+ 50% { transform: translateY(-7px); }+}++.animate-ares-float {+ animation: aresFloat 5s ease-in-out infinite;+}++/* Production-grade infinite engineering grid drift */+@keyframes gridPan {+ 0% {+ background-position: 0 0;+ }+ 100% {+ background-position: 40px 40px;+ }+}++.animate-grid-drift {+ animation: gridPan 20s linear infinite;+}++/* Ambient atmospheric light glide */+@keyframes spotlightDrift {+ 0% {+ transform: translate(-50%, -20%) scale(1);+ opacity: 0.18;+ }+ 50% {+ transform: translate(-42%, -5%) scale(1.15);+ opacity: 0.30;+ }+ 100% {+ transform: translate(-55%, -15%) scale(0.95);+ opacity: 0.18;+ }+}++.animate-spotlight-drift {+ animation: spotlightDrift 14s ease-in-out infinite alternate;+}++