/* --- RESET & CƠ BẢN --- */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Open Sans", sans-serif;
	color: #fff;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	overflow: hidden; /* Ngăn cuộn trang để hiệu ứng trái tim đẹp hơn */
}

section {
	position: relative;
	height: 100vh;
	width: 100%;
	background: url("../img/img-login.png");
	background-size: cover;
	background-position: center center;
}

/* --- FORM ĐĂNG NHẬP --- */
.form-container {
	position: absolute;
	width: 90%;
	max-width: 340px; /* Độ rộng vừa phải, không bị to quá */
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(0, 0, 0, 0.65); /* Nền tối mờ chuyên nghiệp */
	padding: 25px 30px;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 221, 0.4); /* Bóng xanh đặc trưng của bạn */
	backdrop-filter: blur(8px); /* Hiệu ứng kính mờ */
	border: 1px solid rgba(255, 255, 255, 0.1);
}

	.form-container img {
		width: 65px;
		height: 65px;
		display: block;
		margin: 0 auto 15px auto;
	}

.control input {
	width: 100%;
	display: block;
	padding: 10px 12px;
	color: #222;
	border: none;
	margin: 12px 0;
	border-radius: 8px;
	font-size: 14px;
	outline: none;
}

.control button {
	width: 100%;
	height: 40px;
	border-radius: 8px;
	background: #000;
	color: white;
	font-weight: 600;
	border: none;
	margin-top: 5px;
	cursor: pointer;
	font-size: 14px;
	transition: all 0.3s ease;
}

	.control button:hover {
		background: #fff;
		border: 2px solid #DD0000;
		color: #DD0000;
	}

.link {
	text-align: center;
	margin-top: 15px;
}

	.link a {
		text-decoration: none;
		color: #fff;
		opacity: .7;
		font-size: 0.85em;
	}

		.link a:hover {
			opacity: 1;
			color: #DD0000;
		}

footer {
	position: absolute;
	bottom: 0;
	width: 100%;
	text-align: center;
	padding: 10px 0;
	color: #fff;
	background-color: rgba(0, 0, 0, 0.5);
	font-size: 0.8em;
}

/* --- HIỆU ỨNG TRÁI TIM --- */
#heart-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(255, 255, 255, 0.95);
	display: none; /* JS sẽ đổi sang 'flex' khi thành công */
	justify-content: center;
	align-items: center;
	z-index: 99999;
	flex-direction: column;
}

.heart-logo {
	font-size: 100px;
	color: #DD0000;
	filter: drop-shadow(0 0 10px rgba(221, 0, 0, 0.3));
	animation: heartbeat 0.8s infinite;
}

.heart-text {
	margin-top: 20px;
	font-weight: bold;
	color: #333;
	font-size: 1.2rem;
}

@keyframes heartbeat {
	0% {
		transform: scale(1);
	}

	15% {
		transform: scale(1.3);
	}

	30% {
		transform: scale(1);
	}

	45% {
		transform: scale(1.15);
	}

	60% {
		transform: scale(1);
	}
}
