:root {
	--primary-blue: #2563eb;
	--primary-blue-hover: #1d4ed8;
	--primary-blue-active: #1e40af;
	--primary-blue-glow: rgba(37, 99, 235, 0.35);
	--bg-card: #ffffff;
	--bg-input: #f8fafc;
	--border-input: #e2e8f0;
	--border-focus: #2563eb;
	--text-main: #0f172a;
	--text-muted: #64748b;
	--text-subtle: #94a3b8;
	--radius-card: 32px;
	--radius-inner: 24px;
	--radius-input: 14px;
}

*, *::before, *::after {
	box-sizing: border-box;
}

html, body {
	height: 100%;
	width: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
	-webkit-font-smoothing: antialiased;
}

body.login-page-clean {
	height: 100vh;
	width: 100vw;
	max-height: 100vh;
	background-color: #f0f6fc;
	background-image: 
		radial-gradient(circle at 10% 15%, rgba(56, 189, 248, 0.28) 0%, transparent 45%),
		radial-gradient(circle at 90% 85%, rgba(59, 130, 246, 0.30) 0%, transparent 45%),
		radial-gradient(circle at 50% 50%, rgba(248, 250, 252, 0.8) 0%, transparent 100%);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
	display: block;
}

/* Centered Screen Wrapper */
.login-screen-center {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	position: relative;
	z-index: 10;
}

/* Ambient glow container */
.ambient-glow-wrapper {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	overflow: hidden;
	pointer-events: none;
	z-index: 1;
}

.ambient-glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.6;
}
.ambient-glow-1 {
	width: 400px;
	height: 400px;
	background: #38bdf8;
	top: -60px;
	left: -60px;
	opacity: 0.55;
}
.ambient-glow-2 {
	width: 460px;
	height: 460px;
	background: #60a5fa;
	bottom: -80px;
	right: -80px;
	opacity: 0.6;
}
.ambient-glow-3 {
	width: 320px;
	height: 320px;
	background: #93c5fd;
	top: 40%;
	left: 50%;
	transform: translate(-50%, -50%);
	opacity: 0.45;
}

/* Main Container Card (Modern Frosted Glassmorphism) */
.login-card-container {
	width: 100%;
	max-width: 960px;
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(28px) saturate(190%);
	-webkit-backdrop-filter: blur(28px) saturate(190%);
	border-radius: var(--radius-card);
	border: 1px solid rgba(255, 255, 255, 0.85);
	box-shadow: 
		0 30px 65px -15px rgba(37, 99, 235, 0.16),
		0 15px 30px -10px rgba(15, 23, 42, 0.07),
		inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.95);
	padding: 14px;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	min-height: 560px;
	max-height: 92vh;
	position: relative;
	transition: all 0.3s ease;
}

/* Left Column: Visual Banner with 3D Building Store Illustration */
.login-visual-panel {
	flex: 1 1 48%;
	max-width: 48%;
	background: linear-gradient(145deg, #38bdf8 0%, #2563eb 50%, #1e40af 100%);
	border-radius: var(--radius-inner);
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

/* Atmospheric Blue Overlay (Nuansa Biru Lebih Terasa & Kuat) */
.login-visual-panel::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(160deg, rgba(56, 189, 248, 0.28) 0%, rgba(37, 99, 235, 0.35) 50%, rgba(29, 78, 216, 0.45) 100%);
	pointer-events: none;
	z-index: 10;
	border-radius: inherit;
}

.login-visual-panel,
.login-visual-panel * {
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	-webkit-user-drag: none;
	-khtml-user-drag: none;
	-moz-user-drag: none;
	-o-user-drag: none;
	user-drag: none;
}

.login-visual-watermark {
	position: absolute;
	bottom: 38px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 25;
	pointer-events: none;
	user-select: none;
}

.login-visual-watermark span {
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.6px;
	color: rgba(255, 255, 255, 0.95);
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
	background: rgba(15, 23, 42, 0.4);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	padding: 4px 14px;
	border-radius: 9999px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	display: inline-flex;
	align-items: center;
}

.login-visual-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.5s ease;
	-webkit-user-drag: none;
	user-drag: none;
}

.login-visual-panel:hover .login-visual-img {
	transform: scale(1.02);
}

/* Dynamic Login Carousel */
.login-carousel {
	width: 100%;
	height: 100%;
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-radius: var(--radius-inner);
	cursor: grab;
	user-select: none;
	-webkit-user-select: none;
}

.login-carousel:active,
.login-carousel.is-dragging {
	cursor: grabbing !important;
}

.login-carousel .carousel-inner {
	width: 100%;
	height: 100%;
	position: relative;
	overflow: hidden;
}

.login-carousel .carousel-item {
	width: 100%;
	height: 100%;
}

.login-picture-wrap {
	width: 100%;
	height: 100%;
	display: block;
}

.login-carousel .carousel-item img,
.login-picture-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* Custom modern pill/dots indicators */
.login-carousel .carousel-indicators {
	position: absolute;
	right: 0;
	bottom: 16px;
	left: 0;
	z-index: 20;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0;
	margin: 0;
	gap: 6px;
	list-style: none;
}

.login-carousel .carousel-indicators [data-bs-target] {
	box-sizing: content-box;
	flex: 0 1 auto;
	width: 8px;
	height: 8px;
	padding: 0;
	margin: 0;
	border-radius: 4px;
	border: none;
	background-color: rgba(255, 255, 255, 0.6);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	cursor: pointer;
	opacity: 0.65;
	transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-carousel .carousel-indicators [data-bs-target].active {
	width: 26px;
	background-color: #ffffff;
	opacity: 1;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Right Column: Form Panel */
.login-form-panel {
	flex: 1 1 52%;
	padding: 32px 42px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.login-header-meta {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	margin-bottom: 14px;
}

.login-badge-tag {
	background: #eff6ff;
	color: #2563eb;
	padding: 5px 14px;
	border-radius: 9999px;
	font-weight: 600;
	font-size: 0.78rem;
	border: 1px solid #dbeafe;
	display: inline-flex;
	align-items: center;
	box-shadow: 0 1px 2px rgba(37, 99, 235, 0.05);
}

.login-live-clock {
	background: #f1f5f9;
	color: #64748b;
	padding: 4px 12px;
	border-radius: 9999px;
	font-weight: 500;
	font-size: 0.74rem;
	letter-spacing: 0.2px;
	border: 1px solid #e2e8f0;
	display: inline-flex;
	align-items: center;
	font-variant-numeric: tabular-nums;
	line-height: 1.4;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.login-welcome-title {
	font-size: 1.7rem;
	font-weight: 800;
	color: var(--text-main);
	margin: 0 0 4px 0;
	letter-spacing: -0.4px;
	white-space: nowrap;
}

.login-welcome-subtitle {
	font-size: 0.92rem;
	color: var(--text-muted);
	margin: 0 0 22px 0;
	font-weight: 500;
}

/* Form Styles */
.form-group-clean {
	margin-bottom: 16px;
	position: relative;
}

.clean-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.clean-input {
	width: 100%;
	background: rgba(255, 255, 255, 0.65);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1.5px solid rgba(226, 232, 240, 0.85);
	border-radius: var(--radius-input);
	padding: 13px 16px;
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--text-main);
	font-family: inherit;
	transition: all 0.2s ease-in-out;
	outline: none;
}

.clean-input::placeholder {
	color: var(--text-subtle);
	font-weight: 400;
}

.clean-input:focus {
	background: rgba(255, 255, 255, 0.95);
	border-color: var(--primary-blue);
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.clean-input-wrapper.has-toggle .clean-input {
	padding-right: 46px;
}

.password-toggle-btn {
	position: absolute;
	right: 14px;
	background: none;
	border: none;
	color: var(--text-subtle);
	cursor: pointer;
	padding: 4px;
	font-size: 1.05rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease;
}

.password-toggle-btn:hover {
	color: var(--primary-blue);
}

/* Form Utility Links (Centered below button) */
.login-options-row {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 18px;
	margin-bottom: 6px;
	font-size: 0.88rem;
}

.recovery-link {
	color: var(--text-muted);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
}

.recovery-link:hover {
	color: var(--primary-blue);
	text-decoration: underline;
}

/* Submit Button - Vibrant Blue Gradient */
.btn-submit-clean {
	width: 100%;
	background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
	border: none;
	border-radius: var(--radius-input);
	padding: 14px;
	color: #ffffff;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.3px;
	cursor: pointer;
	box-shadow: 0 10px 24px -4px var(--primary-blue-glow);
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.btn-submit-clean:hover {
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
	transform: translateY(-2px);
	box-shadow: 0 14px 28px -4px rgba(37, 99, 235, 0.45);
}

.btn-submit-clean:active {
	transform: translateY(0);
	box-shadow: 0 6px 16px -2px rgba(37, 99, 235, 0.35);
}

.btn-submit-clean:disabled {
	opacity: 0.75;
	cursor: not-allowed;
	transform: none;
}

/* Bottom Footer */
.login-footer-text {
	text-align: center;
	font-size: 0.78rem;
	color: var(--text-subtle);
	margin-top: 16px;
	margin-bottom: 0;
}

.login-footer-text a {
	color: var(--text-muted);
	text-decoration: none;
	font-weight: 600;
}

.login-footer-text a:hover {
	color: var(--primary-blue);
}

/* Alert Styling */
.clean-alert {
	border-radius: 12px;
	padding: 10px 14px;
	font-size: 0.88rem;
	font-weight: 500;
	margin-bottom: 16px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.clean-alert-danger {
	background-color: #fef2f2;
	border: 1px solid #fee2e2;
	color: #dc2626;
}

/* Custom Recovery Modal */
.clean-modal-dialog {
	max-width: 420px;
	width: 90%;
}

.clean-modal-content {
	border: 1px solid rgba(226, 232, 240, 0.9);
	border-radius: 28px !important;
	box-shadow: 0 25px 60px -10px rgba(15, 23, 42, 0.25);
	padding: 32px 28px 24px 28px;
	background: #ffffff;
	text-align: center;
}

.modal-backdrop.show {
	background-color: rgba(15, 23, 42, 0.5) !important;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.recovery-modal-icon {
	width: 72px;
	height: 72px;
	margin: 0 auto 18px auto;
	border-radius: 22px;
	background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
	color: #2563eb;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.85rem;
	box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.2);
}

.recovery-modal-title {
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--text-main);
	margin-bottom: 8px;
}

.recovery-modal-desc {
	font-size: 0.92rem;
	color: var(--text-muted);
	line-height: 1.55;
	margin-bottom: 24px;
}

.recovery-modal-desc strong {
	color: var(--text-main);
}

/* Mobile Responsive Optimization */
@media (max-width: 900px) {
	html, body {
		overflow-y: auto !important;
		height: auto !important;
		min-height: 100vh;
	}

	body.login-page-clean {
		height: auto;
		min-height: 100vh;
		display: block;
	}

	.login-screen-center {
		height: auto;
		min-height: 100vh;
		padding: max(16px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)) 16px;
		display: flex;
		align-items: center;
		justify-content: center;
	}

/* Mobile Responsive: Form on Top, Banner Slider Below Footer */
@media (max-width: 900px) {
	html, body {
		overflow-y: auto !important;
		height: auto !important;
		min-height: 100vh;
	}

	body.login-page-clean {
		height: auto;
		min-height: 100vh;
		display: block;
	}

	.login-screen-center {
		height: auto;
		min-height: 100vh;
		padding: max(16px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)) 16px;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.login-card-container {
		width: 100%;
		max-width: 440px;
		display: flex;
		flex-direction: column;
		min-height: auto;
		max-height: none;
		border-radius: 24px;
		padding: 22px 18px 18px 18px;
		margin: auto;
		background: rgba(255, 255, 255, 0.76);
		backdrop-filter: blur(28px) saturate(190%);
		-webkit-backdrop-filter: blur(28px) saturate(190%);
		border: 1px solid rgba(255, 255, 255, 0.85);
		box-shadow: 
			0 25px 50px -10px rgba(37, 99, 235, 0.15),
			0 10px 20px -5px rgba(0, 0, 0, 0.04),
			inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.95);
	}

	/* 1. Banner Slider on Top */
	.login-visual-panel {
		order: 1;
		width: 100%;
		max-width: 100%;
		height: 195px;
		min-height: 195px;
		border-radius: 18px;
		overflow: hidden;
		position: relative;
		margin-bottom: 16px;
		box-shadow: 0 6px 18px -4px rgba(37, 99, 235, 0.12);
		background: linear-gradient(180deg, #e0f2fe 0%, #bfdbfe 100%);
	}

	.login-visual-watermark {
		display: flex !important;
		justify-content: center !important;
		align-items: center !important;
		position: absolute;
		bottom: 26px;
		left: 0;
		right: 0;
		z-index: 25;
	}

	.login-visual-watermark span {
		font-size: 0.68rem;
		padding: 3px 12px;
	}

	.login-carousel {
		position: absolute;
		inset: 0;
	}

	.login-carousel .carousel-item img,
	.login-visual-img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: center 25%;
		image-rendering: -webkit-optimize-contrast;
	}

	.login-carousel .carousel-indicators {
		bottom: 10px;
		gap: 5px;
	}

	.login-carousel .carousel-indicators [data-bs-target] {
		width: 10px;
		height: 3px;
		border-radius: 2px;
	}

	.login-carousel .carousel-indicators [data-bs-target].active {
		width: 18px;
	}

	/* 2. Form Panel Below Banner */
	.login-form-panel {
		order: 2;
		width: 100%;
		padding: 0;
		display: flex;
		flex-direction: column;
	}

	.login-content-wrapper {
		width: 100%;
		display: flex;
		flex-direction: column;
	}

	.login-header-group {
		margin-bottom: 16px;
		text-align: center;
	}

	.login-header-meta {
		margin-bottom: 10px;
		justify-content: center;
		align-items: center;
	}

	.login-live-clock {
		font-size: 0.72rem;
		padding: 4px 12px;
		line-height: 1.2;
		border-radius: 99px;
	}

	.login-welcome-title {
		text-align: center;
		font-size: clamp(1.2rem, 5vw, 1.45rem);
		font-weight: 800;
		line-height: 1.25;
		margin: 0 0 6px 0;
		letter-spacing: -0.3px;
		white-space: nowrap;
	}

	.login-welcome-subtitle {
		text-align: center;
		font-size: clamp(0.68rem, 3.2vw, 0.8rem);
		line-height: 1.4;
		margin: 0 auto;
		color: var(--text-muted);
		max-width: 100%;
		white-space: nowrap;
		letter-spacing: -0.15px;
	}

	.clean-alert {
		margin-top: 14px;
		margin-bottom: 0;
		padding: 10px 14px;
		font-size: 0.86rem;
	}

	.form-login-clean {
		width: 100%;
		display: flex;
		flex-direction: column;
		gap: 12px;
		margin-top: 16px;
	}

	.form-group-clean {
		margin-bottom: 0;
	}

	.clean-input {
		font-size: 16px !important;
		padding: 12px 16px;
		min-height: 48px;
	}

	.password-toggle-btn {
		right: 12px;
		width: 34px;
		height: 34px;
	}

	.btn-submit-clean {
		padding: 13px;
		font-size: 0.96rem;
		min-height: 48px;
	}

	.recovery-link {
		font-size: 0.84rem;
		text-align: center;
		margin-top: 2px;
	}

	.login-footer-text {
		margin-top: 16px;
		margin-bottom: 4px;
		text-align: center;
		font-size: 0.76rem;
	}
}

@media (max-width: 440px) {
	.login-screen-center {
		padding: 12px 10px 20px 10px;
	}

	.login-card-container {
		padding: 20px 14px 14px 14px;
		border-radius: 22px;
	}

	.login-welcome-title {
		font-size: clamp(1.08rem, 5.2vw, 1.25rem);
		white-space: nowrap;
	}

	.login-welcome-subtitle {
		font-size: clamp(0.65rem, 3.1vw, 0.76rem);
		white-space: nowrap;
		max-width: 100%;
		letter-spacing: -0.2px;
	}

	.login-visual-panel {
		height: 170px;
		min-height: 170px;
		border-radius: 16px;
	}
}

@media (max-height: 700px) and (min-width: 901px) {
	.login-card-container {
		min-height: 520px;
		max-height: 88vh;
	}

	.login-form-panel {
		padding: 24px 32px;
	}
}
