.login-page {
	background: linear-gradient(to right, #7f51d1, #d06ea7); /* ungu → pink */
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.custom-img-shadow {
	box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.5);
	border-radius: 50%;
	margin-bottom: 20px; /* tarik card ke atas */
	z-index: 2;
	position: relative;
}

.card {
	border-radius: 15px;
	overflow: hidden;
	background-color: #fff;
	position: relative;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.overlap-card {
	margin-top: -40px; /* sesuaikan agar card numpang setengah */
	z-index: 1;
	position: relative;
}

/* Header gambar v2 */
.login-header {
	position: relative;
	height: 250px;
	background: url("../../img/login/bg-header.jpg") no-repeat center center,
		linear-gradient(to right, #7f51d1, #d06ea7);
	background-size: cover;
	border-top-left-radius: 15px;
	border-top-right-radius: 15px;
	overflow: hidden;
}

/* Tambahkan warna gradasi di belakang area lengkung header */
.login-header::before {
	content: "";
	position: absolute;
	top: -2px;
	left: -2px;
	width: calc(100% + 4px);
	height: calc(100% + 4px);
	background: linear-gradient(to right, #7f51d1, #d06ea7);
	z-index: -1;
	border-top-left-radius: 15px;
	border-top-right-radius: 15px;
}

.login-header .header-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: none;
}

.login-header .header-text {
	position: absolute;
	bottom: 10px;
	width: 100%;
	text-align: center;
	color: #fff;
	font-weight: 600;
	font-size: 1.2rem;
}

.login-title {
	text-align: center;
	font-size: 1.5rem; /* lebih besar */
	margin-top: 0px;
	margin-bottom: 10px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.login-title .user-text {
	font-weight: 400; /* tidak bold */
	color: #4a235a; /* ungu gelap lembut */
}

.login-title .login-text {
	font-weight: 700; /* bold */
	background: linear-gradient(90deg, #d06ea7, #7f51d1);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent; /* efek gradasi pada teks LOGIN */
}

/* Ikon di input */
.icon-bg {
	background: linear-gradient(
		135deg,
		#d06ea7,
		#7f51d1
	); /* gradasi pink → ungu */
	border-top-right-radius: 5px;
	border-bottom-right-radius: 5px;
}

.icon-bg-inner {
	background: transparent;
	border: none;
}

.forgot-link {
	color: #b98adf; /* ungu lembut */
	font-size: 0.9rem;
	text-decoration: none;
	font-weight: 500;
	transition: 0.3s;
}

.forgot-link:hover {
	color: #7f51d1; /* ungu tua dari gradasi */
	text-decoration: underline;
}

/* Tombol login */
.btn-login {
	background: linear-gradient(135deg, #d06ea7, #7f51d1); /* pink → ungu */
	border: none;
	border-radius: 5px;
	color: #fff;
	font-weight: 600;
	letter-spacing: 0.5px;
	transition: 0.3s ease;
	box-shadow: 0 4px 10px rgba(127, 81, 209, 0.3); /* efek lembut */
}

.btn-login:hover {
	opacity: 0.9;
	transform: translateY(-1px);
	box-shadow: 0 6px 12px rgba(127, 81, 209, 0.4);
}

.btn-register {
	background: linear-gradient(135deg, #d06ea7, #7f51d1); /* pink → ungu */
	border: none;
	border-radius: 5px;
	color: #fff;
	font-weight: 600;
	letter-spacing: 0.5px;
	transition: 0.3s ease;
	box-shadow: 0 4px 10px rgba(127, 81, 209, 0.3); /* efek lembut */
}

.btn-register:hover {
	opacity: 0.9;
	transform: translateY(-1px);
	box-shadow: 0 6px 12px rgba(127, 81, 209, 0.4);
}

/* Footer text */
.login-footer {
	color: #fff;
	font-size: 10pt;
}

/* Tombol login */
.btn-register {
	background: linear-gradient(135deg, #d06ea7, #7f51d1); /* pink → ungu */
	border: none;
	border-radius: 5px;
	color: #fff;
	font-weight: 600;
	letter-spacing: 0.5px;
	transition: 0.3s ease;
	box-shadow: 0 4px 10px rgba(127, 81, 209, 0.3); /* efek lembut */
}

.btn-register:hover {
	opacity: 0.9;
	transform: translateY(-1px);
	box-shadow: 0 6px 12px rgba(127, 81, 209, 0.4);
}

/* Header gambar v2 */
.login-header-second {
	position: relative;
	height: 15px;
	background: linear-gradient(to right, #7f51d1, #d06ea7);
	background-size: cover;
	border-top-left-radius: 15px;
	border-top-right-radius: 15px;
	overflow: hidden;
}

/* Tambahkan warna gradasi di belakang area lengkung header */
.login-header-second::before {
	content: "";
	position: absolute;
	top: -2px;
	left: -2px;
	width: calc(100% + 4px);
	height: calc(100% + 4px);
	background: linear-gradient(to right, #7f51d1, #d06ea7);
	z-index: -1;
	border-top-left-radius: 15px;
	border-top-right-radius: 15px;
}

.login-header-second .header-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: none;
}

.login-header-second .header-text {
	position: absolute;
	bottom: 10px;
	width: 100%;
	text-align: center;
	color: #fff;
	font-weight: 600;
	font-size: 1.2rem;
}

.overlap-card {
	transition: all 0.3s ease;
}

#card-login,
#card-register {
	transition: opacity 0.3s ease;
}
#card-register[style*="display: none"] {
	opacity: 0;
}
#card-register {
	opacity: 1;
}

/* Perbaiki tinggi Select2 agar sejajar dengan input Bootstrap */
.select2-container .select2-selection--single {
	height: 38px !important; /* Sesuaikan dengan tinggi input bootstrap */
	padding: 5px 10px !important;
	border: 1px solid #ced4da !important;
	border-radius: 0.25rem !important;
}

/* Perbaiki posisi teks di tengah */
.select2-container--default
	.select2-selection--single
	.select2-selection__rendered {
	line-height: 28px !important;
	font-size: 1rem !important;
}

/* Perbaiki tinggi panah dropdown */
.select2-container--default
	.select2-selection--single
	.select2-selection__arrow {
	height: 36px !important;
	right: 10px;
}

/* Pastikan lebarnya full */
.select2-container {
	width: 100% !important;
}
