<script lang="ts">
	let { children } = $props();
</script>

<div class="relative flex min-h-screen flex-col items-center justify-center overflow-hidden px-4 py-4 md:py-6 lg:py-8">
	<!-- Background image -->
	<div class="absolute inset-0 -z-20">
		<img
			src="/monaco_high_res.jpg"
			alt=""
			class="h-full w-full object-cover"
		/>
		<div class="absolute inset-0 bg-gradient-to-br from-slate-900/80 via-slate-900/60 to-monaco-900/70"></div>
	</div>

	<!-- Decorative blur elements -->
	<div class="absolute inset-0 -z-10">
		<div
			class="absolute -left-40 -top-40 h-80 w-80 rounded-full bg-monaco-500/30 blur-3xl"
		></div>
		<div
			class="absolute -right-40 top-1/3 h-96 w-96 rounded-full bg-monaco-400/20 blur-3xl"
		></div>
		<div
			class="absolute bottom-0 left-1/3 h-72 w-72 rounded-full bg-white/10 blur-3xl"
		></div>
	</div>

	<div class="w-full max-w-2xl">
		<!-- Logo and Branding - Compact on desktop -->
		<div class="mb-3 md:mb-4 text-center">
			<a href="/" class="inline-flex items-center gap-3">
				<div class="overflow-hidden rounded-xl bg-white/90 p-1.5 shadow-xl backdrop-blur-sm">
					<img
						src="/MONACOUSA-Flags_376x376.png"
						alt="Monaco USA"
						class="h-10 w-10 md:h-12 md:w-12 object-contain"
					/>
				</div>
				<div class="text-left">
					<h1 class="text-lg md:text-xl font-bold text-white drop-shadow-lg">
						Monaco <span class="text-monaco-300">USA</span>
					</h1>
					<p class="text-xs text-white/80">Americans in Monaco</p>
				</div>
			</a>
		</div>

		<!-- Wizard Container -->
		{@render children()}

		<!-- Footer - Compact -->
		<p class="mt-3 md:mt-4 text-center text-xs text-white/60">
			&copy; 2026 Monaco USA. All rights reserved.
		</p>
	</div>
</div>
