/* ------------------------
🌑 GLOBAL BASE
-------------------------*/
body {
	background: none;
	font-family: "Inter", sans-serif;
	height: 100vh;
	margin: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	overflow: hidden;
	transition: 0.4s ease-in-out;
}

/* Motion Parallax Layer */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	background: var(--bg-image, url("../../../assets/brand/jln-toll-bgt.jpeg"))
		no-repeat center/cover;
	filter: brightness(0.94) contrast(1.05) blur(1px);
	transform: translate(var(--mx, 0), var(--my, 0)) scale(1.05);
	transition: transform 0.15s ease-out;
	z-index: -2;
}

/* Gradient Cinematic Overlay */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	background: linear-gradient(
		135deg,
		rgba(0, 0, 0, 0.6) 0%,
		rgba(0, 0, 0, 0.25) 50%,
		rgba(0, 0, 0, 0.05) 100%
	);
	z-index: -1;
}

/* ------------------------
📌 LOGIN CARD (Glass Dynamic Glow)
-------------------------*/
.login-container {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	width: 100%;
	padding-right: 60px;
	z-index: 2;
}

.login-card {
	width: 380px;
	padding: 35px;
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(14px);
	border: 1px solid rgba(255, 255, 255, 0.25);
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
	animation: slide-up 0.6s ease-out;
	transition: box-shadow 0.4s ease, transform 0.3s;
}

.login-card:hover {
	box-shadow: 0 24px 55px rgba(0, 0, 0, 0.55);
	transform: translateY(-4px);
}

/* Title Fade */
.login-card h3,
.login-card p {
	animation: fadein 1s ease-out forwards;
}

/* ------------------------
🔘 BUTTON
-------------------------*/
.btn-login {
	background: rgba(0, 0, 0, 0.85);
	color: #fff;
	font-weight: 600;
	padding: 12px;
	border-radius: 14px;
	transition: all 0.35s ease;
	backdrop-filter: blur(10px);
}

.btn-login:hover {
	background: rgba(255, 255, 255, 0.12);
	transform: translateY(-4px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

/* ------------------------
🌗 DARK/LIGHT MODE SWITCH
-------------------------*/
.theme-toggle {
	position: fixed;
	top: 20px;
	left: 20px;
	background: rgba(255, 255, 255, 0.25);
	backdrop-filter: blur(12px);
	padding: 10px 14px;
	border-radius: 50px;
	cursor: pointer;
	color: white;
	font-size: 14px;
	transition: 0.3s;
}

.dark {
	--bg-filter: brightness(0.7) contrast(1.18);
	color: white;
}

.light {
	--bg-filter: brightness(1.1) contrast(1.02);
	color: #222;
}

/* ------------------------
📱 MOBILE BOTTOM SHEET MODE
-------------------------*/
@media (max-width: 768px) {
	body::before {
		transform: scale(1.3);
		filter: brightness(0.65) blur(2px);
	}

	.login-container {
		justify-content: center;
		padding-right: 0;
	}

	.login-card {
		width: 100%;
		max-width: 430px;
		border-radius: 25px 25px 0 0;
		position: fixed;
		bottom: 0;
		padding: 45px;
		animation: slide-up-bottom 0.6s ease-out;
	}
}

/* ------------------------
🎬 ANIMATIONS
-------------------------*/
@keyframes slide-up {
	0% {
		transform: translateY(60px);
		opacity: 0;
	}
	100% {
		transform: translateY(0);
		opacity: 1;
	}
}

@keyframes slide-up-bottom {
	0% {
		transform: translateY(100px);
		opacity: 0;
	}
	100% {
		transform: translateY(0);
		opacity: 1;
	}
}

@keyframes fadein {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}
.login-card p.text-muted {
	color: #ffffff !important;
	opacity: 0.85;
	text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}
/* ----------------------------------
 🏢 COMPANY LOGO POSITIONING & STYLE
-----------------------------------*/
.branding-logo {
	position: fixed;
	top: 25px;
	left: 35px;
	z-index: 10;
	padding: 10px 16px;
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(10px);
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
	transition: 0.35s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.branding-logo img {
	height: 48px;
	filter: brightness(1.1) contrast(1.12);
	transition: 0.3s ease;
}

/* Hover Interaction */
.branding-logo:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.branding-logo:hover img {
	transform: scale(1.05);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
	.branding-logo {
		top: 14px;
		left: 14px;
		padding: 6px 10px;
	}

	.branding-logo img {
		height: 36px;
	}
}
/* ------------------------
💎 HERO TEXT - Extended Width & Better Typography
-------------------------*/
.hero-text {
	position: fixed;
	left: 60px;
	top: 50%;
	transform: translateY(-50%);

	/* Adaptive premium font size */
	font-size: clamp(28px, 4vw, 50px);
	font-weight: 800;

	/* 🔥 Width now reaches near login card */
	max-width: 48vw;

	color: white;
	line-height: 1.22;
	letter-spacing: -0.6px;

	text-shadow: 0px 6px 28px rgba(0, 0, 0, 0.85);
	filter: drop-shadow(0px 4px 18px rgba(0, 0, 0, 0.6));

	opacity: 0.95;
	z-index: 6;
	transition: opacity 0.9s ease, transform 0.6s ease;
}

/* Smooth fade transition */
#rotate-text {
	display: inline-block;
	transition: opacity 0.9s ease, transform 0.6s ease;
}

/* Make fade animated */
.fade-out {
	opacity: 0;
	transform: translateY(-18px);
}

.fade-in {
	opacity: 1;
	transform: translateY(0px);
}

/* Responsive for Tablet */
@media (max-width: 1024px) {
	.hero-text {
		max-width: 55vw;
	}
}

/* Mobile - center text */
@media (max-width: 768px) {
	.hero-text {
		left: 18px;
		top: 30%;
		max-width: 85vw;
		text-align: left;
	}
}
