@php
    /** @var \App\Services\Auth\BreakGlassSession $breakGlass */
    $breakGlass = app(\App\Services\Auth\BreakGlassSession::class);
@endphp

@if ($breakGlass->isActive())
    <div class="fi-topbar sticky top-0 z-50 border-b border-red-500/30 bg-red-600 text-white">
        <div class="mx-auto flex max-w-screen-2xl items-center justify-between gap-4 px-4 py-2">
            <div class="text-sm font-semibold">
                Recovery mode active
            </div>

            @if ($breakGlass->expiresAt())
                <div class="text-xs opacity-90">
                    Expires at {{ $breakGlass->expiresAt()->toDayDateTimeString() }}
                </div>
            @endif
        </div>
    </div>
@endif
