@page "/guest"

<div class="auth-shell">
    <section class="card shadow-sm auth-card">
        <div class="card-body p-4">
            <h1 class="h3 mb-1">Access code</h1>
            <p class="text-secondary mb-4">Enter the guest access code to view the list.</p>

            <form method="post" action="/guest/access">
                <div class="mb-4">
                    <label class="form-label" for="access-code">Access code</label>
                    <input id="access-code" class="form-control" name="accessCode" />
                </div>

                <button type="submit" class="btn btn-primary w-100">
                    Continue
                </button>
            </form>

            @if (!string.IsNullOrWhiteSpace(ErrorMessage))
            {
                <div class="alert alert-warning mt-3 mb-0" role="alert">@ErrorMessage</div>
            }
        </div>
    </section>
</div>
