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
style(ui): apply clean Linear-style minimalist aesthetic to operator login
Mafifrizi18370d08a67f
diff --git a/frontend/src/features/auth/LoginPage.tsx b/frontend/src/features/auth/LoginPage.tsxindex 900e762..ed0575e 100644--- a/frontend/src/features/auth/LoginPage.tsx+++ b/frontend/src/features/auth/LoginPage.tsx@@ -28,82 +28,74 @@ export function LoginPage() {}return (- <div className="relative min-h-screen flex items-center justify-center bg-[#090d16] p-4 text-slate-100 overflow-hidden selection:bg-orange-500 selection:text-white">- {/* Subtle tactical ambient background glow */}- <div className="pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_50%_25%,rgba(249,115,22,0.08),transparent_60%)]" />- <div className="pointer-events-none absolute inset-0 bg-[linear-gradient(to_right,rgba(255,255,255,0.015)_1px,transparent_1px),linear-gradient(to_bottom,rgba(255,255,255,0.015)_1px,transparent_1px)] bg-[size:4rem_4rem] [mask-image:radial-gradient(ellipse_60%_50%_at_50%_50%,#000_70%,transparent_100%)]" />-- <div className="relative w-full max-w-md">- {/* Status Chip */}- <div className="mb-4 flex items-center justify-center">- <div className="inline-flex items-center gap-2 rounded-full border border-emerald-500/30 bg-emerald-950/40 px-3 py-1 font-mono text-xs tracking-wider text-emerald-400 backdrop-blur-md">- <span className="h-1.5 w-1.5 rounded-full bg-emerald-400 animate-pulse" />- <span>NODE READY // TLS 1.3 ENCRYPTED</span>- </div>+ <div className="min-h-screen flex flex-col items-center justify-center bg-zinc-950 px-4 text-zinc-100">+ <div className="w-full max-w-sm">+ {/* Brand Header */}+ <div className="mb-8 text-center">+ <img+ className="mx-auto mb-4 h-12 w-auto object-contain"+ src={brandLogoPath}+ alt="ARES"+ />+ <h1 className="text-xl font-semibold tracking-tight text-zinc-100">ARES Dashboard</h1>+ <p className="mt-1.5 text-sm text-zinc-400">+ Sign in with your operator credentials+ </p></div>- {/* Tactical Card */}- <form- className="panel rounded-2xl border border-slate-800/90 bg-slate-900/90 p-8 shadow-2xl shadow-black/80 backdrop-blur-xl"- onSubmit={(event) => void submit(event)}- >- <div className="mb-6 text-center">- <img- className="mx-auto mb-3 h-20 w-auto max-w-full object-contain filter drop-shadow-[0_4px_12px_rgba(249,115,22,0.2)]"- src={brandLogoPath}- alt="ARES"- />- <h1 className="text-2xl font-bold tracking-tight text-white">ARES Dashboard</h1>- <p className="mt-1 text-xs font-mono tracking-wide text-slate-400 uppercase">- Adversary Emulation & Operator Console- </p>- </div>-- <div className="space-y-4">- <label className="mb-3 block text-xs font-semibold uppercase tracking-wider text-slate-300">- Username- <input- className="field mt-1.5 w-full rounded-lg border border-slate-700 bg-slate-950/80 px-3.5 py-2.5 text-sm text-slate-100 placeholder-slate-500 transition-all focus:border-orange-500 focus:outline-none focus:ring-2 focus:ring-orange-500/30"- placeholder="Enter operator callsign"- value={username}- onChange={(e) => setUsername(e.target.value)}- autoComplete="username"- />- </label>-- <label className="mb-4 block text-xs font-semibold uppercase tracking-wider text-slate-300">- Password- <input- className="field mt-1.5 w-full rounded-lg border border-slate-700 bg-slate-950/80 px-3.5 py-2.5 text-sm text-slate-100 placeholder-slate-500 transition-all focus:border-orange-500 focus:outline-none focus:ring-2 focus:ring-orange-500/30"- type="password"- placeholder="••••••••••••"- value={password}- onChange={(e) => setPassword(e.target.value)}- autoComplete="current-password"- />- </label>- </div>+ {/* Form Card */}+ <div className="rounded-xl border border-zinc-800 bg-zinc-900/50 p-6 shadow-sm">+ <form onSubmit={(event) => void submit(event)} className="space-y-4">+ <div>+ <label className="block text-xs font-medium text-zinc-300 mb-1.5">+ Username+ <input+ className="mt-1 block w-full rounded-md border border-zinc-800 bg-zinc-950 px-3 py-2 text-sm text-zinc-100 placeholder-zinc-500 transition-colors focus:border-zinc-500 focus:outline-none focus:ring-1 focus:ring-zinc-500"+ placeholder="operator"+ value={username}+ onChange={(e) => setUsername(e.target.value)}+ autoComplete="username"+ required+ />+ </label>+ </div>- {error && (- <div className="mt-4 flex items-center gap-2 rounded-lg border border-red-500/30 bg-red-950/50 p-3 text-sm text-red-300">- <span className="h-1.5 w-1.5 shrink-0 rounded-full bg-red-400" />- <span>{error}</span>+ <div>+ <label className="block text-xs font-medium text-zinc-300 mb-1.5">+ Password+ <input+ className="mt-1 block w-full rounded-md border border-zinc-800 bg-zinc-950 px-3 py-2 text-sm text-zinc-100 placeholder-zinc-500 transition-colors focus:border-zinc-500 focus:outline-none focus:ring-1 focus:ring-zinc-500"+ type="password"+ value={password}+ onChange={(e) => setPassword(e.target.value)}+ autoComplete="current-password"+ required+ />+ </label></div>- )}- <button- className="btn btn-primary mt-6 flex w-full items-center justify-center gap-2 rounded-lg bg-orange-600 px-4 py-2.5 text-sm font-semibold text-white shadow-lg shadow-orange-950/50 transition-all hover:bg-orange-500 active:scale-[0.98] focus:outline-none focus:ring-2 focus:ring-orange-500/40"- type="submit"- >- <KeyRound size={16} /> Login- </button>+ {error && (+ <div className="rounded-md border border-red-900/50 bg-red-950/30 px-3 py-2 text-xs text-red-400">+ {error}+ </div>+ )}- <div className="mt-6 border-t border-slate-800/80 pt-4 text-center">- <p className="font-mono text-[10px] tracking-widest text-slate-500 uppercase">- RESTRICTED ACCESS • AUTHORIZED ENGAGEMENT ONLY- </p>- </div>- </form>+ <button+ className="w-full mt-2 flex items-center justify-center gap-2 rounded-md bg-zinc-100 px-4 py-2 text-sm font-medium text-zinc-900 transition-colors hover:bg-white active:bg-zinc-200 focus:outline-none focus:ring-2 focus:ring-zinc-400 focus:ring-offset-2 focus:ring-offset-zinc-900"+ type="submit"+ >+ <KeyRound size={15} className="text-zinc-700" />+ Login+ </button>+ </form>+ </div>++ {/* Subtle Footer */}+ <div className="mt-6 text-center">+ <p className="text-xs text-zinc-500">+ ARES Automated Red Team Engagement System+ </p>+ </div></div></div>);