'use client'; import type { ReactNode } from 'react'; import { ArrowLeft } from 'lucide-react'; import { Link } from '@/i18n/Link'; import { useT } from '@/i18n/I18nProvider'; import { LanguageSwitcher } from '@/i18n/LanguageSwitcher'; import { Logo } from '@/components/landing/Logo'; import { AuthSky } from './AuthSky'; // Auth shell that carries the Abrban brand straight from the landing: the same // bright, cloud-filled sky (see AuthSky) sits behind the form, which lives in the // same frosted dark-glass panel — so login/register read as one world with the // public landing. Direction is inherited from the root layout. export function AuthShell({ title, subtitle, children, altPrompt, altHref, altLabel, }: { title: string; subtitle: string; children: ReactNode; altPrompt?: string; altHref?: string; altLabel?: string; }) { const t = useT(); return (
{/* Bright cloud-filled sky backdrop, shared with the landing */} {/* Header */}
{/* Brand returns to the auth entry; only the explicit "back to home" link leaves for the public landing page. */}
{t.auth.backHome}
{/* Form card */}

{title}

{subtitle}

{children}
{altPrompt && altHref && altLabel && (
{altPrompt} {altLabel}
)}
); }