{{--
    The brand mark exactly as Filament resolves it (see the
    resources/views/vendor/filament-panels/components/logo.blade.php
    override): the uploaded logo AND the brand name together when there is a
    logo, otherwise the name alone. Shared by the topbar and the sign-in card
    so both agree.

    $size — 'topbar' (1.75rem, matching brandLogoHeight) or 'auth' (larger, and
    centred above the heading).
--}}
@php
    $isAuth = ($size ?? 'topbar') === 'auth';
@endphp

@if (filled($logoUrl ?? null))
    <span class="fi-tp-logo-with-name {{ $isAuth ? 'fi-tp-logo-with-name--auth' : '' }}">
        <img
            src="{{ $logoUrl }}"
            alt="{{ $brand }}"
            class="fi-tp-logo {{ $isAuth ? 'fi-tp-logo--auth' : '' }}"
        />
        <span class="fi-tp-brand {{ $isAuth ? 'fi-tp-brand--auth' : '' }}" data-tp-brand>{{ $brand }}</span>
    </span>
@else
    <p class="fi-tp-brand {{ $isAuth ? 'fi-tp-brand--auth' : '' }}" data-tp-brand>{{ $brand }}</p>
@endif
