:root {
	--primary-color: #9C2C2C;
	--secondary-color: #F5F0E1;
	--text-color: #333;
	--light-text: #666;
	--bg-opacity: 0.9;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
	background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/地图.jpg') no-repeat center center fixed;
	background-size: cover;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	color: var(--text-color);
	line-height: 1.6;
}

.login-container {
	width: 100%;
	max-width: 500px;
	padding: 20px;
	perspective: 1000px;
}

.login-form {
	background-color: rgba(255, 255, 255, var(--bg-opacity));
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	backdrop-filter: blur(8px);
	padding: 40px;
	animation: formEntrance 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
	transform-origin: center;
	transition: all 0.3s ease;
}

@keyframes formEntrance {
	0% {
		opacity: 0;
		transform: translateY(50px) rotateX(30deg);
	}

	100% {
		opacity: 1;
		transform: translateY(0) rotateX(0);
	}
}

.login-form:hover {
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
	transform: translateY(-5px);
}

.form-header {
	text-align: center;
	margin-bottom: 30px;
	position: relative;
	animation: headerFadeIn 1.2s ease-out both;
}

@keyframes headerFadeIn {
	0% {
		opacity: 0;
		transform: scale(0.8);
	}

	100% {
		opacity: 1;
		transform: scale(1);
	}
}

.form-header h2 {
	color: var(--primary-color);
	font-size: 28px;
	font-weight: 600;
	margin-bottom: 10px;
	letter-spacing: 1px;
}

.form-header::after {
	content: '';
	display: block;
	width: 60px;
	height: 3px;
	background: var(--primary-color);
	margin: 15px auto;
	border-radius: 3px;
	animation: lineExpand 0.8s 0.3s ease-out both;
}

@keyframes lineExpand {
	0% {
		width: 0;
		opacity: 0;
	}

	100% {
		width: 60px;
		opacity: 1;
	}
}

.form-group {
	margin-bottom: 25px;
	position: relative;
	animation: formGroupFadeIn 0.6s ease-out both;
	animation-delay: calc(var(--order) * 0.1s);
}

@keyframes formGroupFadeIn {
	0% {
		opacity: 0;
		transform: translateX(-20px);
	}

	100% {
		opacity: 1;
		transform: translateX(0);
	}
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	color: var(--text-color);
	font-weight: 500;
	font-size: 15px;
	transition: all 0.3s;
}

.form-control {
	width: 100%;
	padding: 14px 15px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 16px;
	transition: all 0.3s;
	background-color: rgba(255, 255, 255, 0.8);
}

.form-control:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(139, 35, 35, 0.2);
	outline: none;
	transform: translateY(-2px);
}

.btn {
	width: 100%;
	padding: 14px;
	background-color: var(--primary-color);
	color: white;
	border: none;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s;
	letter-spacing: 1px;
	text-transform: uppercase;
	position: relative;
	overflow: hidden;
	animation: btnFadeIn 0.8s 0.6s ease-out both;
}

@keyframes btnFadeIn {
	0% {
		opacity: 0;
		transform: translateY(20px);
	}

	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

.btn:hover {
	background-color: var(--secondary-color);
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(139, 35, 35, 0.3);
}

.btn:active {
	transform: translateY(0);
}

.btn::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 5px;
	height: 5px;
	background: rgba(255, 255, 255, 0.5);
	opacity: 0;
	border-radius: 100%;
	transform: scale(1, 1) translate(-50%, -50%);
	transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
	animation: ripple 0.6s ease-out;
}

@keyframes ripple {
	0% {
		transform: scale(0, 0);
		opacity: 0.5;
	}

	100% {
		transform: scale(20, 20);
		opacity: 0;
	}
}

.form-footer {
	text-align: center;
	margin-top: 25px;
	color: var(--light-text);
	font-size: 14px;
	animation: footerFadeIn 1s 0.8s ease-out both;
}

@keyframes footerFadeIn {
	0% {
		opacity: 0;
		transform: translateY(10px);
	}

	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

.form-footer a {
	color: var(--primary-color);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s;
}

.form-footer a:hover {
	color: var(--secondary-color);
	text-decoration: underline;
}

@media (max-width: 576px) {
	.login-form {
		padding: 30px 20px;
	}

	.form-header h2 {
		font-size: 24px;
	}
}
