/* ================================================================
   RFF BOOT LOADER V1
   Corevia QSR / Raja Fast Food

   Covers Frappe Desk boot splash and ERPNext login-success splash
   without modifying framework core files.
   ================================================================ */

body > .centered.splash {
	position: fixed !important;
	inset: 0 !important;
	z-index: 2147483000 !important;

	display: block !important;

	width: 100vw !important;
	height: 100vh !important;

	transform: none !important;

	background: #050506 !important;
	overflow: hidden !important;

	pointer-events: none !important;
}

/*
 * Framework supplies its logo as this image.
 * Hide the bitmap itself and reuse the box as the outer ring.
 */
body > .centered.splash > img {
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;

	display: block !important;

	width: 62px !important;
	height: 62px !important;
	min-width: 62px !important;
	min-height: 62px !important;
	max-width: 62px !important;
	max-height: 62px !important;

	margin: -31px 0 0 -31px !important;
	padding: 0 !important;

	object-fit: none !important;
	object-position: 9999px 9999px !important;

	opacity: 1 !important;
	color: transparent !important;
	font-size: 0 !important;
	text-indent: -9999px !important;

	border: 3px solid rgba(255, 212, 0, .16) !important;
	border-top-color: #ffd400 !important;
	border-right-color: #ffd400 !important;
	border-radius: 50% !important;

	background: transparent !important;

	box-shadow:
		0 0 0 1px rgba(255, 212, 0, .04),
		0 0 26px rgba(255, 212, 0, .10) !important;

	animation:
		rff-boot-ring-outer .82s linear infinite !important;
}

/* Inner counter-rotating yellow ring. */
body > .centered.splash::before {
	content: "" !important;

	position: absolute !important;
	top: 50% !important;
	left: 50% !important;

	display: block !important;

	width: 38px !important;
	height: 38px !important;

	margin: -19px 0 0 -19px !important;

	border: 3px solid rgba(255, 212, 0, .12) !important;
	border-bottom-color: #ffd400 !important;
	border-left-color: #ffd400 !important;
	border-radius: 50% !important;

	box-sizing: border-box !important;

	animation:
		rff-boot-ring-inner .66s linear infinite !important;
}

/* No letters / framework logo: only a small RFF-yellow center. */
body > .centered.splash::after {
	content: "" !important;

	position: absolute !important;
	top: 50% !important;
	left: 50% !important;

	display: block !important;

	width: 8px !important;
	height: 8px !important;

	margin: -4px 0 0 -4px !important;

	border-radius: 50% !important;

	background: #ffd400 !important;

	box-shadow:
		0 0 10px rgba(255, 212, 0, .55),
		0 0 24px rgba(255, 212, 0, .20) !important;
}

@keyframes rff-boot-ring-outer {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

@keyframes rff-boot-ring-inner {
	from {
		transform: rotate(360deg);
	}

	to {
		transform: rotate(0deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	body > .centered.splash > img,
	body > .centered.splash::before {
		animation-duration: 1.8s !important;
	}
}
