{{-- Auth shell — wraps any auth page's form in one of 5 swappable design variants. The form (heading + fields + social + legal) is passed as the slot and stays per-page; only the surrounding chrome changes. Variant is chosen once at /admin/settings/auth-pages (SystemSetting `auth.variant`, 1–5) and applies to login / register / forgot together. All variants read the SAME editor data via auth_cfg($page, …): eyebrow · heading · heading_accent · subheading · accent · media (img/video) `data-fc` + `data-ae-media` hooks are preserved so the inline editor keeps working on every variant. --}} @props([ 'page' => 'login', 'title' => null, ]) @php $variant = (int) \App\Models\SystemSetting::get('auth.variant', '1'); if ($variant < 1 || $variant > 5) $variant = 1; $brandName = (string) brand_name(); $brandLogo = \App\Support\Brand::logoUrl(); $eyebrow = auth_cfg($page, 'eyebrow', ''); $heading = auth_cfg($page, 'heading', ''); $headingAccent = auth_cfg($page, 'heading_accent', ''); $subheading = auth_cfg($page, 'subheading', ''); $accent = auth_cfg($page, 'accent', '#25D366'); $mediaUrl = auth_cfg($page, 'media_url', ''); $mediaType = auth_cfg($page, 'media_type', ''); @endphp @php // Reusable bits ------------------------------------------------------------ $renderMedia = function () use ($mediaUrl, $mediaType) { if (!$mediaUrl) return ''; if ($mediaType === 'video') { return ''; } return ''; }; @endphp {{-- Brand logo block (reused by several variants) --}} @php $brandMark = $brandLogo ? '' : '' . e($brandName) . ''; @endphp @switch($variant) {{-- ════════════ V2 · CINEMATIC ════════════ Full-bleed media / brand gradient behind a centered white card. --}} @case(2) {!! $renderMedia() !!} {!! $brandMark !!} @if ($eyebrow) {{ $eyebrow }} @endif {{ $heading }} {{ $headingAccent }}. {{ $slot }} @break {{-- ════════════ V3 · MINIMAL ════════════ Clean paper background, single centered card, accent top-bar. --}} @case(3) {!! $brandMark !!} {{ $slot }} @if ($subheading) {{ $subheading }} @endif @break {{-- ════════════ V4 · BRAND SPOTLIGHT ════════════ Left accent-gradient panel (logo + serif heading + quote), form right. --}} @case(4) {!! $brandMark !!} {{ $slot }} @break {{-- ════════════ V5 · AURORA ════════════ Animated gradient-mesh background, floating glass-edged card. --}} @case(5) {!! $brandMark !!} @if ($eyebrow) {{ $eyebrow }} @endif {{ $slot }} @break {{-- ════════════ V1 · SPLIT SHOWCASE (default) ════════════ Art panel left (heading + media + trust chips), form right. --}} @default {!! $brandMark !!} {{ $slot }} @endswitch
{{ $subheading }}