* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Microsoft Yahei', sans-serif;
}

body {
	background-color: #f5f5f5;
	background-image: url('../img/铜梁龙舞-8.webp');
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
}

.container {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	padding: 20px;
	background-color: rgba(0, 0, 0, 0.5);
}

.auth-box {
	width: 100%;
	max-width: 450px;
	background-color: white;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	overflow: hidden;
}

.auth-header {
	background-color: #c81623;
	color: white;
	padding: 20px;
	text-align: center;
}

.auth-header h1 {
	font-size: 24px;
	margin-bottom: 5px;
}

.auth-header p {
	font-size: 14px;
	opacity: 0.9;
}

.auth-tabs {
	display: flex;
	border-bottom: 1px solid #eee;
}

.tab-btn {
	flex: 1;
	padding: 15px;
	text-align: center;
	background: none;
	border: none;
	font-size: 16px;
	font-weight: 500;
	color: #666;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
}

.tab-btn.active {
	color: #c81623;
}

.tab-btn.active::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 100%;
	height: 3px;
	background-color: #c81623;
}

.auth-forms {
	padding: 30px;
}

.form {
	display: none;
}

.form.active {
	display: block;
	animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	color: #333;
	font-weight: 500;
}

.form-control {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 16px;
	transition: border-color 0.3s ease;
}

.form-control:focus {
	outline: none;
	border-color: #c81623;
	box-shadow: 0 0 0 3px rgba(200, 22, 35, 0.1);
}

.form-options {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	font-size: 14px;
}

.remember-me {
	display: flex;
	align-items: center;
	color: #666;
}

.remember-me input {
	margin-right: 8px;
}

.forgot-password {
	color: #c81623;
	text-decoration: none;
}

.forgot-password:hover {
	text-decoration: underline;
}

.submit-btn {
	width: 100%;
	padding: 14px;
	background-color: #c81623;
	color: white;
	border: none;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.submit-btn:hover {
	background-color: #a0121e;
}

.submit-btn:active {
	transform: scale(0.98);
}

.divider {
	display: flex;
	align-items: center;
	margin: 25px 0;
	color: #999;
	font-size: 14px;
}

.divider::before,
.divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background-color: #eee;
}

.divider::before {
	margin-right: 10px;
}

.divider::after {
	margin-left: 10px;
}

.social-login {
	display: flex;
	gap: 15px;
}

.social-btn {
	flex: 1;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	background-color: white;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
}

.social-btn:hover {
	background-color: #f8f8f8;
}

.social-icon {
	font-size: 20px;
}

.wechat {
	color: #07c160;
}

.qq {
	color: #12b7f5;
}

.weibo {
	color: #e6162d;
}

.form-footer {
	text-align: center;
	margin-top: 20px;
	font-size: 14px;
	color: #666;
}

.form-footer a {
	color: #c81623;
	text-decoration: none;
}

.form-footer a:hover {
	text-decoration: underline;
}

.error-message {
	color: #c81623;
	font-size: 14px;
	margin-top: 5px;
	display: none;
}

.form-control.error {
	border-color: #c81623;
}

@media (max-width: 480px) {
	.auth-box {
		margin: 10px;
	}

	.auth-forms {
		padding: 20px;
	}

	.social-login {
		flex-direction: column;
	}
}
/* ============ 平板端适配 ============ */
@media (max-width: 900px) {
    .auth-box {
        width: 92%;
        max-width: 460px;
        padding: 30px 24px;
    }
}

@media (max-width: 600px) {
    .auth-box {
        padding: 24px 16px;
    }
    .auth-header h1 {
        font-size: 24px;
    }
    .social-login {
        flex-wrap: wrap;
    }
}
