/* 全局样式重置 */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Microsoft YaHei", sans-serif;
}

body {
	background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%), 
	            url('../images/psychology-bg.svg') center/cover no-repeat;
	background-attachment: fixed;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	position: relative;
	overflow-x: hidden;
}

/* 心理元素浮动动画 */
body::after {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: 
		radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
		radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
		radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.06) 1.5px, transparent 1.5px),
		radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
		radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.07) 2px, transparent 2px);
	background-size: 200px 200px, 150px 150px, 180px 180px, 120px 120px, 160px 160px;
	z-index: -1;
	animation: psychologyParticles 25s linear infinite;
	pointer-events: none;
}

@keyframes psychologyParticles {
	0% {
		transform: translateY(0px) rotate(0deg);
		opacity: 0.3;
	}
	25% {
		transform: translateY(-20px) rotate(90deg);
		opacity: 0.6;
	}
	50% {
		transform: translateY(-10px) rotate(180deg);
		opacity: 0.4;
	}
	75% {
		transform: translateY(-30px) rotate(270deg);
		opacity: 0.7;
	}
	100% {
		transform: translateY(0px) rotate(360deg);
		opacity: 0.3;
	}
}

/* 背景动画层 */
body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url('../images/psychology-bg.svg') center/cover no-repeat;
	opacity: 0.7;
	z-index: -2;
	animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
	0%, 100% {
		transform: translateY(0px) scale(1) rotate(0deg);
		opacity: 0.7;
		filter: hue-rotate(0deg) brightness(1);
	}
	25% {
		transform: translateY(-8px) scale(1.01) rotate(1deg);
		opacity: 0.6;
		filter: hue-rotate(10deg) brightness(1.1);
	}
	50% {
		transform: translateY(-15px) scale(1.03) rotate(0deg);
		opacity: 0.5;
		filter: hue-rotate(20deg) brightness(1.2);
	}
	75% {
		transform: translateY(-8px) scale(1.01) rotate(-1deg);
		opacity: 0.6;
		filter: hue-rotate(10deg) brightness(1.1);
	}
}

/* 主容器 */
.container {
	display: flex;
	width: 900px;
	background-color: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(15px);
	border-radius: 20px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 
	            0 0 0 1px rgba(255, 255, 255, 0.2),
	            inset 0 1px 0 rgba(255, 255, 255, 0.3);
	overflow: hidden;
	animation: containerFloat 15s ease-in-out infinite;
	border: 1px solid rgba(255, 255, 255, 0.3);
	position: relative;
}

/* 容器内心理元素装饰 */
.container::before {
	content: '🧠 💭 🌟 ✨ 🔮 💫';
	position: absolute;
	top: -30px;
	left: 0;
	width: 100%;
	height: 100%;
	font-size: 20px;
	opacity: 0.1;
	z-index: 0;
	pointer-events: none;
	animation: psychologySymbols 30s linear infinite;
	white-space: nowrap;
	overflow: hidden;
}

@keyframes psychologySymbols {
	0% {
		transform: translateX(-100%);
		opacity: 0;
	}
	10% {
		opacity: 0.1;
	}
	90% {
		opacity: 0.1;
	}
	100% {
		transform: translateX(100%);
		opacity: 0;
	}
}

@keyframes containerFloat {
	0%, 100% {
		transform: translateY(0px) scale(1);
		box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 
		            0 0 0 1px rgba(255, 255, 255, 0.2),
		            inset 0 1px 0 rgba(255, 255, 255, 0.3);
	}
	25% {
		transform: translateY(-3px) scale(1.005);
		box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18), 
		            0 0 0 1px rgba(255, 255, 255, 0.25),
		            inset 0 1px 0 rgba(255, 255, 255, 0.4);
	}
	50% {
		transform: translateY(-6px) scale(1.01);
		box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2), 
		            0 0 0 1px rgba(255, 255, 255, 0.3),
		            inset 0 1px 0 rgba(255, 255, 255, 0.5);
	}
	75% {
		transform: translateY(-3px) scale(1.005);
		box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18), 
		            0 0 0 1px rgba(255, 255, 255, 0.25),
		            inset 0 1px 0 rgba(255, 255, 255, 0.4);
	}
}

/* 左右分栏通用 */
.form-section {
	padding: 40px;
}

/* 左侧：背景/介绍 */
.left-section {
	flex: 1;
	background: linear-gradient(135deg, rgba(60, 55, 241, 0.9) 0%, rgba(59, 130, 246, 0.8) 50%, rgba(147, 51, 234, 0.7) 100%);
	backdrop-filter: blur(8px);
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: relative;
	overflow: hidden;
}

/* 心理学图案背景 */
.left-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: 
		radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
		radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
		radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 30%);
	animation: leftSectionGlow 12s ease-in-out infinite;
}

/* 心理元素装饰层 */
.left-section::after {
	content: '🧠';
	position: absolute;
	top: 20px;
	right: 20px;
	font-size: 30px;
	opacity: 0.2;
	animation: brainPulse 4s ease-in-out infinite;
}

@keyframes brainPulse {
	0%, 100% {
		transform: scale(1) rotate(0deg);
		opacity: 0.2;
	}
	50% {
		transform: scale(1.2) rotate(5deg);
		opacity: 0.4;
	}
}

@keyframes leftSectionGlow {
	0%, 100% {
		opacity: 0.3;
		transform: scale(1) rotate(0deg);
	}
	33% {
		opacity: 0.5;
		transform: scale(1.05) rotate(1deg);
	}
	66% {
		opacity: 0.7;
		transform: scale(1.1) rotate(-1deg);
	}
}

.left-section .logo {
	width: 60px;
	margin-bottom: 20px;
}

.left-section h2 {
	font-size: 24px;
	margin-bottom: 10px;
	position: relative;
	z-index: 3;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
	animation: textGlow 8s ease-in-out infinite;
}

.left-section h2::before {
	content: '✨';
	position: absolute;
	left: -35px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 20px;
	animation: sparkle 3s ease-in-out infinite;
}

.left-section h2::after {
	content: '💫';
	position: absolute;
	right: -35px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 18px;
	animation: sparkle 3s ease-in-out infinite 1.5s;
}

@keyframes sparkle {
	0%, 100% {
		opacity: 0.3;
		transform: translateY(-50%) scale(1);
	}
	50% {
		opacity: 1;
		transform: translateY(-50%) scale(1.3);
	}
}

.left-section p {
	opacity: 0.9;
	position: relative;
	z-index: 3;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
	animation: textFloat 6s ease-in-out infinite;
}

@keyframes textFloat {
	0%, 100% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-2px);
	}
}

@keyframes textGlow {
	0%, 100% {
		text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
		color: #fff;
	}
	25% {
		text-shadow: 0 2px 8px rgba(255, 255, 255, 0.3), 
		             0 2px 4px rgba(0, 0, 0, 0.3);
		color: #f0f8ff;
	}
	50% {
		text-shadow: 0 2px 12px rgba(255, 255, 255, 0.4), 
		             0 2px 4px rgba(0, 0, 0, 0.3);
		color: #e6f3ff;
	}
	75% {
		text-shadow: 0 2px 8px rgba(255, 255, 255, 0.3), 
		             0 2px 4px rgba(0, 0, 0, 0.3);
		color: #f0f8ff;
	}
}

/* 右侧：表单区域 */
.right-section {
	flex: 1;
	padding: 40px;
}

/* 切换按钮 */
.tab-buttons {
	display: flex;
	gap: 20px;
	margin-bottom: 30px;
}

.tab-btn {
	background: transparent;
	border: none;
	font-size: 16px;
	padding: 5px 0;
	cursor: pointer;
	color: #999;
	border-bottom: 2px solid transparent;
}

.tab-btn.active {
	color: #333;
	border-bottom: 2px solid #ff8c00;
}

/* 表单通用 */
.form {
	display: none;
	animation: fadeIn 0.3s ease;
}

.form.active {
	display: block;
}

.form h3 {
	margin-bottom: 20px;
	font-size: 20px;
}

.form input {
	width: 100%;
	padding: 12px;
	margin: 10px 0;
	border: 1px solid #ddd;
	border-radius: 4px;
}

/* 复选框与文字的布局修复 */
.checkbox-wrapper {
	display: flex;
	align-items: center;
}

.checkbox-wrapper input {
	width: auto;
	/* 关键：取消复选框的100%宽度 */
	margin: 0 8px 0 0;
	/* 调整复选框与文字的间距 */
	padding: 0;
	/* 清除内边距 */
}

.checkbox-wrapper label {
	margin: 0;
	/* 清除标签的外边距 */
	line-height: 1;
	/* 确保垂直对齐 */
}

/* 额外选项容器 */
.extra {
	font-size: 14px;
	color: #666;
	margin: 10px 0;
}

.login-extra {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.register-extra {
	display: flex;
	justify-content: flex-start;
	align-items: center;
}

.extra a {
	color: #3c37f1;
	text-decoration: none;
}

.extra a:hover {
	text-decoration: underline;
}

/* 按钮 */
.btn {
	width: 100%;
	padding: 12px;
	background: #ff8c00;
	border: none;
	color: #fff;
	font-size: 16px;
	border-radius: 4px;
	cursor: pointer;
	margin-top: 20px;
}

.btn:hover {
	background: #e67e00;
}

.btn:disabled {
	background: #ccc;
	cursor: not-allowed;
}

/* 验证码输入框容器 */
.verify-code-wrapper {
	display: flex;
	gap: 10px;
	margin: 10px 0;
}

.verify-code-wrapper input {
	flex: 1;
	margin: 0;
}

.send-code-btn {
	padding: 12px 20px;
	background: #3b82f6;
	border: none;
	color: #fff;
	font-size: 14px;
	border-radius: 4px;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.3s ease;
}

.send-code-btn:hover:not(:disabled) {
	background: #2563eb;
}

.send-code-btn:disabled {
	background: #ccc;
	cursor: not-allowed;
}

.send-code-btn.countdown {
	background: #94a3b8;
	cursor: not-allowed;
}

/* 心理元素浮动装饰 */
.psychology-elements {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 1;
	overflow: hidden;
}

.floating-element {
	position: absolute;
	font-size: 24px;
	opacity: 0.6;
	animation: floatPsychology 15s ease-in-out infinite;
	pointer-events: none;
}

@keyframes floatPsychology {
	0%, 100% {
		transform: translateY(0px) rotate(0deg) scale(1);
		opacity: 0.3;
	}
	25% {
		transform: translateY(-20px) rotate(90deg) scale(1.1);
		opacity: 0.7;
	}
	50% {
		transform: translateY(-40px) rotate(180deg) scale(1.2);
		opacity: 0.9;
	}
	75% {
		transform: translateY(-20px) rotate(270deg) scale(1.1);
		opacity: 0.7;
	}
}

/* 心理名言样式 */
.psychology-quote {
	margin-bottom: 25px;
	padding: 15px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	border-left: 3px solid rgba(255, 255, 255, 0.3);
	position: relative;
	animation: quoteGlow 8s ease-in-out infinite;
}

.quote-icon {
	font-size: 20px;
	margin-bottom: 8px;
	animation: iconPulse 3s ease-in-out infinite;
}

.quote-text {
	font-size: 14px;
	font-style: italic;
	margin: 0;
	opacity: 0.9;
	line-height: 1.4;
}

@keyframes quoteGlow {
	0%, 100% {
		background: rgba(255, 255, 255, 0.1);
		border-left-color: rgba(255, 255, 255, 0.3);
	}
	50% {
		background: rgba(255, 255, 255, 0.15);
		border-left-color: rgba(255, 255, 255, 0.5);
	}
}

@keyframes iconPulse {
	0%, 100% {
		transform: scale(1);
		opacity: 0.8;
	}
	50% {
		transform: scale(1.2);
		opacity: 1;
	}
}

/* 心理统计数据样式 */
.psychology-stats {
	display: flex;
	justify-content: space-between;
	margin-top: 25px;
	gap: 15px;
}

.stat-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 12px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	flex: 1;
	animation: statFloat 6s ease-in-out infinite;
	position: relative;
	overflow: hidden;
}

.stat-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	animation: statShine 4s ease-in-out infinite;
}

.stat-number {
	font-size: 18px;
	font-weight: bold;
	margin-bottom: 4px;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.stat-label {
	font-size: 12px;
	opacity: 0.8;
	color: #fff;
}

@keyframes statFloat {
	0%, 100% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-3px);
	}
}

@keyframes statShine {
	0% {
		left: -100%;
	}
	100% {
		left: 100%;
	}
}

/* 动画：淡入效果 */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* 响应式设计增强 */
@media (max-width: 768px) {
	.container {
		width: 95%;
		flex-direction: column;
		max-width: 400px;
	}
	
	.floating-element {
		font-size: 18px;
	}
	
	.psychology-stats {
		flex-direction: column;
		gap: 10px;
	}
	
	.stat-item {
		flex-direction: row;
		justify-content: space-between;
		padding: 8px 12px;
	}
	
	.left-section h2::before,
	.left-section h2::after {
		display: none;
	}
}

/* 弹窗样式 */
.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(5px);
	animation: fadeIn 0.3s ease;
}

.modal.show {
	display: flex;
	justify-content: center;
	align-items: center;
}

.modal-content {
	background-color: #fff;
	padding: 40px;
	border-radius: 15px;
	width: 90%;
	max-width: 450px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	position: relative;
	animation: slideDown 0.3s ease;
}

@keyframes slideDown {
	from {
		transform: translateY(-50px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.modal-content h3 {
	margin-bottom: 25px;
	font-size: 22px;
	color: #333;
	text-align: center;
}

.modal-content input {
	width: 100%;
	padding: 12px;
	margin: 10px 0;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.modal-content .error {
	color: #ef4444;
	font-size: 12px;
	margin-top: -5px;
	margin-bottom: 5px;
}

.close {
	position: absolute;
	top: 15px;
	right: 20px;
	font-size: 28px;
	font-weight: bold;
	color: #999;
	cursor: pointer;
	transition: color 0.3s ease;
}

.close:hover {
	color: #333;
}