import type { ReactNode } from 'react' import { Link } from 'react-router-dom' import { Moon, Sun } from 'lucide-react' import { getRegion, toggleTheme, useTheme } from '@/shared/lib' import { KernelMark } from './kernel-mark' export interface AuthShellProps { /** Breadcrumb current segment, e.g. "SIGN IN". */ current: string /** Mono caption above the status row, unique per screen. */ hint: string children: ReactNode } const edgeLabel = 'pointer-events-none absolute top-1/2 hidden rotate-90 font-mono text-[10px] tracking-[1.6px] text-muted-foreground xl:block' const mark = 'pointer-events-none absolute size-[18px] border-border' const markTL = 'left-4 top-4 sm:left-6 sm:top-6 lg:left-9 lg:top-9' const markTR = 'right-4 top-4 sm:right-6 sm:top-6 lg:right-9 lg:top-9' const markBL = 'bottom-4 left-4 sm:bottom-6 sm:left-6 lg:bottom-9 lg:left-9' const markBR = 'bottom-4 right-4 sm:bottom-6 sm:right-6 lg:bottom-9 lg:right-9' const crumbSep = 'font-mono text-[10px] text-border' /** Full-viewport chrome shared by all auth screens. */ export function AuthShell({ current, hint, children }: AuthShellProps) { const theme = useTheme() const region = getRegion() return (
AUTH · v4.2.0
TLS 1.3 · TOTP-SHA1
{children}

{hint}

ALL SYSTEMS OPERATIONAL · REGION {region} · © 2026 GitDataAI

) }