@extends('admin.layouts.base')

@section('body_class', 'a-body a-auth')

@section('body')
    <div class="a-auth-bg" aria-hidden="true"></div>

    <main class="a-auth-shell">
        <section class="a-auth-card" role="main">
            <div class="a-auth-left">
                <div class="a-brand">
                    <div class="a-brand__logoBox" aria-hidden="true">
                        <img
                            class="a-brand__logo"
                            src="{{ asset('assets/images/common/top_logo.png') }}"
                            alt=""
                            loading="lazy"
                            onerror="this.style.display='none'; this.parentElement.style.display='none';"
                        />
                    </div>

                    <div class="a-brand__text">
                        <div class="a-brand__name">Pin For You Admin Console</div>
                        <div class="a-brand__sub">Restricted • Logged • Enforced</div>
                    </div>
                </div>

                <div class="a-auth-left__copy">
                    <h1 class="a-h1">@yield('heading', '접근 통제 구역')</h1>
                    <p class="a-muted">
                        @yield('subheading', '승인된 관리자만 접근할 수 있습니다.')
                        <br><br>
                        @yield('mess', '모든 로그인·조회·변경 시도는 기록되며, 무단 접근 및 오남용은 정책 및 관련 법령에 따라 조치될 수 있습니다.')
                    </p>

                </div>

                <div class="a-badges">
                    <span class="a-badge">IP Allowlist</span>
                    <span class="a-badge">2-Step (SMS, otp)</span>
                    <span class="a-badge">Audit & Logs</span>
                    <span class="a-badge">Least Privilege</span>
                </div>
            </div>


            <div class="a-auth-right">
                @php $hideFlash = trim($__env->yieldContent('hide_flash')); @endphp
                @if($hideFlash === '')
                    @include('admin.partials.flash')
                @endif


                <div class="a-panel">
                    @yield('content')
                </div>

                <div class="a-foot">
                    <small class="a-muted">© 2018 {{ config('app.name') }}. Admin only.</small>
                </div>
            </div>
        </section>
    </main>
@endsection
@stack('recaptcha')
