/* اسپلش برند اسکایرو — چیدمان عمودی مرتب */

.splash-screen {
	position: fixed;
	inset: 0;
	z-index: 300;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: linear-gradient(165deg, var(--brand-navy-dark) 0%, var(--brand-navy) 42%, #4a6fa5 100%);
	overflow: hidden;
	transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.splash-screen.splash-out {
	opacity: 0;
	transform: scale(1.03);
	pointer-events: none;
}

.splash-screen.hidden {
	display: none !important;
}

.splash-bg-glow {
	position: absolute;
	left: 50%;
	top: 42%;
	width: min(90vw, 360px);
	height: min(90vw, 360px);
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: radial-gradient(circle, rgba(38, 166, 154, 0.28) 0%, transparent 68%);
	pointer-events: none;
	animation: splashGlow 2.4s ease-in-out infinite;
}

.splash-center {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 320px;
	text-align: center;
}

.splash-logo-wrap {
	margin: 0;
}

.splash-logo-wrap.logo-frame {
	background: #ffffff !important;
	box-shadow: 0 10px 36px rgba(0, 0, 0, 0.22);
}

.splash-logo-wrap .logo-frame-img {
	display: block;
	max-width: 100%;
	max-height: 72px;
	width: auto;
	height: auto;
	background: #ffffff;
}

.splash-logo-anim {
	opacity: 0;
	transform: scale(0.92) translateY(10px);
	animation: splashLogoIn 0.85s var(--ease) 0.2s forwards;
}

.splash-spinner {
	width: 38px;
	height: 38px;
	margin-top: 22px;
	border: 3px solid rgba(255, 255, 255, 0.22);
	border-top-color: var(--brand-teal);
	border-right-color: rgba(77, 182, 172, 0.65);
	border-radius: 50%;
	animation: splashSpin 0.85s linear infinite;
}

.splash-tagline {
	margin: 16px 0 0;
	font-size: 13px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.82);
	min-height: 20px;
	opacity: 0;
	animation: splashFadeUp 0.5s var(--ease) 0.65s forwards;
}

.splash-bar {
	width: 120px;
	height: 3px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 4px;
	margin-top: 18px;
	overflow: hidden;
	opacity: 0;
	animation: splashFadeUp 0.4s ease 0.8s forwards;
}

.splash-bar i {
	display: block;
	height: 100%;
	width: 35%;
	background: linear-gradient(90deg, var(--brand-teal), #81d4fa);
	border-radius: 4px;
	animation: splashBar 1.4s ease-in-out infinite;
}

@keyframes splashGlow {
	0%, 100% { opacity: 0.65; transform: translate(-50%, -50%) scale(1); }
	50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}

@keyframes splashSpin {
	to { transform: rotate(360deg); }
}

@keyframes splashLogoIn {
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

@keyframes splashFadeUp {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes splashBar {
	0% { transform: translateX(-100%); }
	100% { transform: translateX(320%); }
}

.splash-screen.splash-error .splash-logo-anim {
	animation: none;
	opacity: 1;
	transform: none;
}

.splash-screen.splash-error .splash-spinner {
	display: none;
}

.splash-screen .splash-error-box {
	display: none;
	width: 100%;
	max-width: 340px;
	margin-top: 16px;
	text-align: center;
}

.splash-screen.splash-error .splash-error-box {
	display: block;
	animation: splashFadeUp 0.4s ease forwards;
}

.splash-error-box .alert {
	margin-bottom: 12px;
	text-align: right;
}

.splash-error-box .btn {
	margin-top: 8px;
}
