/* Shared cinematic scene — same PNG as home, lossless, all moonshine screens */

/* Enterprise boot loader for auth / panel screens */
body.is-site-scene:not(.l2-booted)::before,
body.is-site-auth:not(.l2-booted)::before,
body.is-site-register:not(.l2-booted)::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	background: #07090b;
	pointer-events: none;
	opacity: 1;
	transition: opacity .42s cubic-bezier(.22, 1, .36, 1);
}
body.is-site-scene:not(.l2-booted)::after,
body.is-site-auth:not(.l2-booted)::after,
body.is-site-register:not(.l2-booted)::after {
	content: "";
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 2147483001;
	width: 2.75rem;
	height: 2.75rem;
	margin: -1.375rem 0 0 -1.375rem;
	border-radius: 50%;
	border: 1.5px solid rgba(223, 198, 131, .14);
	border-top-color: rgba(255, 229, 159, .92);
	border-right-color: rgba(189, 155, 75, .45);
	box-shadow: 0 0 18px rgba(189, 155, 75, .12);
	animation: l2BootSpin .85s linear infinite;
	pointer-events: none;
}
body.is-site-scene.l2-booted::before,
body.is-site-scene.l2-booted::after,
body.is-site-auth.l2-booted::before,
body.is-site-auth.l2-booted::after,
body.is-site-register.l2-booted::before,
body.is-site-register.l2-booted::after {
	opacity: 0;
	visibility: hidden;
	animation: none;
	transition: opacity .42s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .42s;
}
@keyframes l2BootSpin {
	to { transform: rotate(360deg); }
}

body.is-site-scene .menu-heading-logo a img,
body.is-site-auth .menu-heading-logo a img,
body.is-site-register .menu-heading-logo a img,
img.site-brand-logo__img {
	max-width: 11.5rem !important;
	max-height: 5rem !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain !important;
}

html:has(body.is-site-scene),
body.is-site-scene {
	background: #07090b !important;
	color-scheme: dark;
}

.site-scene,
.reg-scene {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: #07090b;
}

.site-scene__img,
.reg-scene__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 18% 42%;
	filter: none;
	image-rendering: auto;
	image-rendering: high-quality;
	-ms-interpolation-mode: bicubic;
}

.site-scene::after,
.reg-scene::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 70% 80% at 50% 42%, transparent 0%, rgba(6,8,10,.08) 78%, rgba(6,8,10,.28) 100%),
		linear-gradient(180deg, rgba(8,10,12,.04) 0%, transparent 28%, rgba(8,10,12,.14) 100%);
}

body.is-site-scene .layout-wrapper {
	position: relative;
	z-index: 1;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-image: none !important;
	background-color: transparent !important;
	background-attachment: scroll !important;
	box-shadow: none !important;
}

body.is-site-scene .layout-page,
body.is-site-scene .layout-content {
	background: transparent !important;
	background-color: transparent !important;
}

body.is-site-scene .layout-menu {
	background: rgba(8, 10, 14, .42) !important;
	backdrop-filter: blur(18px) saturate(1.05);
	-webkit-backdrop-filter: blur(18px) saturate(1.05);
	border-right: 1px solid rgba(144, 123, 91, .22) !important;
	box-shadow: inset -1px 0 0 rgba(255,255,255,.03);
}

/* Auth screens — login / register / forgot: locked viewport, no page scroll */
html:has(body.is-site-auth),
body.is-site-auth,
body.is-site-register {
	height: 100dvh !important;
	max-height: 100dvh !important;
	overflow: hidden !important;
	background: #07090b !important;
}

body.is-site-auth .layout-wrapper,
body.is-site-register .layout-wrapper,
body.is-site-auth .layout-menu,
body.is-site-register .layout-menu,
body.is-site-auth .layout-page,
body.is-site-register .layout-page {
	height: 100dvh !important;
	max-height: 100dvh !important;
	min-height: 0 !important;
	overflow: hidden !important;
}

body.is-site-auth .layout-page,
body.is-site-register .layout-page {
	display: flex;
	flex-direction: column;
}

body.is-site-auth .layout-navigation,
body.is-site-register .layout-navigation {
	position: absolute;
	top: .65rem;
	right: .85rem;
	left: auto;
	z-index: 6;
	background: transparent !important;
	padding: 0 !important;
	border: 0 !important;
}

body.is-site-auth .layout-content,
body.is-site-register .layout-content {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4.25rem 1rem 1.1rem !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;
	min-height: 0 !important;
}

body.is-site-auth .layout-content > div,
body.is-site-register .layout-content > div {
	width: 100%;
	max-width: 32rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

body.is-site-auth .box,
body.is-site-register .box {
	margin: 0 auto !important;
	max-width: 32rem !important;
	width: 100%;
	max-height: none;
	padding: 1.25rem 1.35rem 1.15rem !important;
	overflow: visible !important;
	background: rgba(8, 10, 14, .74) !important;
	backdrop-filter: blur(22px) saturate(1.08);
	-webkit-backdrop-filter: blur(22px) saturate(1.08);
	border: 1px solid rgba(223, 198, 131, .24) !important;
	border-radius: 16px !important;
	box-shadow:
		0 28px 70px rgba(0,0,0,.48),
		inset 0 1px 0 rgba(255,255,255,.05);
}

/* Forgot / auth: avoid Tailwind max-w-sm + mt-24 clipping the title */
body.is-site-auth .box.max-w-sm,
body.is-site-auth .box.max-w-md,
body.is-site-auth .auth-forgot-box {
	max-width: 32rem !important;
	margin-top: 0 !important;
}

body.is-site-auth .box > h1,
body.is-site-auth .box-title,
body.is-site-register .box > h1,
body.is-site-auth .box h1.truncate,
body.is-site-register .box h1.truncate {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 0 .35rem !important;
	padding: .15rem .25rem .35rem !important;
	border-bottom: 0 !important;
	letter-spacing: .06em !important;
	line-height: 1.35 !important;
	white-space: normal !important;
	overflow: visible !important;
	text-overflow: clip !important;
	word-break: normal !important;
	overflow-wrap: anywhere;
	text-align: center !important;
	color: #fff4e1 !important;
	font-size: clamp(1.05rem, 2.4vw, 1.35rem) !important;
	text-transform: uppercase;
}

body.is-site-auth .description,
body.is-site-register .description {
	margin: 0 0 .45rem !important;
	padding: 0 .35rem;
	font-size: .82rem;
	line-height: 1.45;
	opacity: .72;
	white-space: normal !important;
	overflow: visible !important;
	text-align: center;
}

body.is-site-auth .form-label,
body.is-site-register .form-label {
	white-space: normal !important;
	overflow: visible !important;
	line-height: 1.35;
}

body.is-site-auth .btn,
body.is-site-register .btn {
	overflow: visible !important;
	white-space: normal !important;
	height: auto !important;
	min-height: 2.5rem;
	line-height: 1.3 !important;
	padding: .65rem 1rem !important;
	letter-spacing: .12em !important;
}

body.is-site-auth .form > h1:empty,
body.is-site-register .form > h1:empty {
	display: none;
}

body.is-site-auth hr.divider,
body.is-site-register hr.divider {
	margin: .4rem 0 !important;
	border-color: rgba(223, 198, 131, .16) !important;
}

body.is-site-auth .form-group,
body.is-site-auth .space-elements,
body.is-site-register .form-group,
body.is-site-register .space-elements {
	margin-bottom: .42rem !important;
}

body.is-site-auth .space-elements,
body.is-site-register .space-elements {
	gap: .42rem !important;
}

body.is-site-scene:not(.is-site-auth):not(.is-site-register) .layout-page {
	background: rgba(4, 3, 8, .18) !important;
}

/* Brand logo — one mark, no flash of the old webp */
.menu-heading-logo a img + img,
.menu-heading-logo a img.xl\:hidden,
.menu-heading-logo a img.h-8 {
	display: none !important;
}

.menu-heading-logo a,
.menu-heading-logo a.block {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: auto !important;
	height: auto !important;
	max-width: 12rem !important;
	max-height: 5rem !important;
	margin: .35rem auto .15rem !important;
}

.dark .menu-heading-logo a img,
.menu-heading-logo a img,
.menu-heading-logo a img.hidden,
.menu-heading-logo a img.h-14,
.menu-heading-logo a img.xl\:block,
img.site-brand-logo__img {
	display: block !important;
	opacity: 1 !important;
	visibility: visible !important;
	width: auto !important;
	height: auto !important;
	max-width: 11.5rem !important;
	max-height: 5rem !important;
	object-fit: contain !important;
	margin: 0 auto;
	filter: none !important;
	mix-blend-mode: normal !important;
	animation: none !important;
	transform: none !important;
}

html.dark body.is-site-scene .menu-heading-logo a img,
html.dark body.is-site-scene .dark .menu-heading-logo a img,
body.is-site-scene .menu-heading-logo a img {
	width: auto !important;
	height: auto !important;
	max-width: 11.5rem !important;
	max-height: 5rem !important;
}

@media (max-width: 1100px) {
	.site-scene__img,
	.reg-scene__img {
		object-position: 36% 38%;
	}
}

@media (max-width: 900px) {
	body.is-site-scene .layout-menu {
		background: rgba(8, 10, 14, .78) !important;
	}
	body.is-site-auth .layout-content,
	body.is-site-register .layout-content {
		padding: 4rem .75rem 1rem !important;
	}
	body.is-site-auth .box,
	body.is-site-register .box {
		padding: .9rem 1rem .85rem !important;
	}
}
