/* 全局样式重置 */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* 基础样式 */
body {
	margin: 0;
	padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	font-size: 16px;
	color: #333;
	background-color: #f5f7fa;
	overflow: hidden;
}

/* 登录容器 */
.login-container {
	display: flex;
	height: 100vh;
	overflow: hidden;
	position: relative;
}

/* 左侧品牌区域 */
.login-brand {
	width: 70%;
	background: linear-gradient(135deg, #5686fe 0%, #4a71d4 100%);
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	transition: all 0.5s ease;
}

.brand-content {
	position: relative;
	z-index: 2;
	color: white;
	text-align: center;
	max-width: 400px;
}

.brand-logo {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	background: white;
	padding: 15px;
	margin-bottom: 25px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	transition: transform 0.3s ease;
}

.brand-logo:hover {
	transform: scale(1.1);
}

.brand-title {
	font-size: 36px;
	font-weight: 700;
	letter-spacing: -1px;
}

.brand-description {
	font-size: 18px;
	opacity: 0.9;
	line-height: 1.5;
	margin-top: 0;
}

/* 装饰性图形 */
.brand-decoration {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	overflow: hidden;
}

/* 背景渐变 */
.login-brand::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(86, 134, 254, 0.2) 0%, rgba(74, 113, 212, 0.2) 100%);
	z-index: 0;
}

/* 网格背景 - 新增科技感元素 */
.login-brand::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: 
		linear-gradient(rgba(101, 200, 255, 0.1) 1px, transparent 1px),
		linear-gradient(90deg, rgba(101, 200, 255, 0.1) 1px, transparent 1px);
	background-size: 50px 50px;
	animation: gridMove 20s linear infinite;
	z-index: 1;
}

/* 基础装饰元素样式 */
.decoration-element {
	position: absolute;
}

/* 三角形装饰元素 - 增强科技感 */
.decoration-triangle {
	width: 0;
	height: 0;
	border-left: 35px solid transparent;
	border-right: 35px solid transparent;
	border-bottom: 60px solid rgba(101, 200, 255, 0.3);
	filter: drop-shadow(0 0 20px rgba(101, 200, 255, 0.5)) blur(1px);
	animation: rotateFloat 12s ease-in-out infinite;
}

/* 线条装饰元素 - 增强科技感 */
.decoration-line {
	width: 250px;
	height: 3px;
	background: linear-gradient(90deg, transparent, rgba(101, 200, 255, 0.6), transparent);
	box-shadow: 0 0 15px rgba(101, 200, 255, 0.5);
	animation: lineMove 10s ease-in-out infinite;
	filter: blur(1px);
}

/* 装饰元素定义 */
.decoration-1 {
	top: 10%;
	left: 10%;
	animation-delay: 0s;
	transform: rotate(0deg);
}

.decoration-2 {
	top: 70%;
	right: 15%;
	animation-delay: 2s;
	transform: rotate(45deg);
}

.decoration-3 {
	top: 40%;
	left: 70%;
	animation-delay: 4s;
	transform: rotate(90deg);
}

.decoration-4 {
	top: 25%;
	right: 20%;
	animation-delay: 1s;
	transform: rotate(135deg);
}

.decoration-5 {
	top: 55%;
	left: 15%;
	animation-delay: 3s;
	transform: rotate(180deg);
}

.decoration-6 {
	top: 80%;
	left: 30%;
	animation-delay: 5s;
	transform: rotate(225deg);
}

.decoration-7 {
	top: 15%;
	right: 30%;
	animation-delay: 2.5s;
	transform: rotate(270deg);
}

/* 新增科技感装饰元素 */
.decoration-8 {
	top: 30%;
	left: 20%;
	animation-delay: 1.5s;
	transform: rotate(315deg);
}

.decoration-9 {
	top: 60%;
	right: 25%;
	animation-delay: 3.5s;
	transform: rotate(60deg);
}

/* 动画定义 - 增强科技感 */
@keyframes float {
	0%, 100% {
		transform: translateY(0px) translateX(0px) scale(1) rotate(0deg);
		opacity: 0.5;
		box-shadow: 
			0 0 30px rgba(101, 200, 255, 0.4),
			inset 0 0 30px rgba(101, 200, 255, 0.2),
			0 0 60px rgba(86, 134, 254, 0.3);
	}
	25% {
		transform: translateY(-45px) translateX(25px) scale(1.15) rotate(90deg);
		opacity: 0.9;
		box-shadow: 
			0 0 45px rgba(101, 200, 255, 0.6),
			inset 0 0 45px rgba(101, 200, 255, 0.3),
			0 0 90px rgba(86, 134, 254, 0.5);
	}
	50% {
		transform: translateY(-25px) translateX(-25px) scale(1) rotate(180deg);
		opacity: 1;
		box-shadow: 
			0 0 55px rgba(101, 200, 255, 0.7),
			inset 0 0 55px rgba(101, 200, 255, 0.4),
			0 0 110px rgba(86, 134, 254, 0.6);
	}
	75% {
		transform: translateY(-55px) translateX(15px) scale(1.15) rotate(270deg);
		opacity: 0.8;
		box-shadow: 
			0 0 40px rgba(101, 200, 255, 0.5),
			inset 0 0 40px rgba(101, 200, 255, 0.25),
			0 0 80px rgba(86, 134, 254, 0.4);
	}
}

@keyframes floatRotate {
	0%, 100% {
		transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
		opacity: 0.6;
		box-shadow: 
			0 0 25px rgba(101, 200, 255, 0.4),
			0 0 50px rgba(86, 134, 254, 0.3);
	}
	25% {
		transform: translateY(-40px) translateX(20px) rotate(150deg) scale(1.2);
		opacity: 0.95;
		box-shadow: 
			0 0 40px rgba(101, 200, 255, 0.6),
			0 0 80px rgba(86, 134, 254, 0.5);
	}
	50% {
		transform: translateY(-25px) translateX(-20px) rotate(300deg) scale(1);
		opacity: 1;
		box-shadow: 
			0 0 50px rgba(101, 200, 255, 0.7),
			0 0 100px rgba(86, 134, 254, 0.6);
	}
	75% {
		transform: translateY(-50px) translateX(15px) rotate(450deg) scale(1.2);
		opacity: 0.85;
		box-shadow: 
			0 0 35px rgba(101, 200, 255, 0.5),
			0 0 70px rgba(86, 134, 254, 0.4);
	}
}

@keyframes rotate {
	0% {
		transform: rotate(0deg) translateY(0px) scale(1);
		box-shadow: 
			0 0 30px rgba(101, 200, 255, 0.4),
			inset 0 0 30px rgba(101, 200, 255, 0.2);
	}
	50% {
		transform: rotate(180deg) translateY(-30px) scale(1.1);
		box-shadow: 
			0 0 45px rgba(101, 200, 255, 0.6),
			inset 0 0 45px rgba(101, 200, 255, 0.3);
	}
	100% {
		transform: rotate(360deg) translateY(0px) scale(1);
		box-shadow: 
			0 0 30px rgba(101, 200, 255, 0.4),
			inset 0 0 30px rgba(101, 200, 255, 0.2);
	}
}

/* 新增动画 - 旋转漂浮 */
@keyframes rotateFloat {
	0%, 100% {
		transform: rotate(0deg) translateY(0px) translateX(0px) scale(1);
		opacity: 0.6;
	}
	25% {
		transform: rotate(120deg) translateY(-40px) translateX(15px) scale(1.2);
		opacity: 0.95;
	}
	50% {
		transform: rotate(240deg) translateY(-25px) translateX(-15px) scale(1);
		opacity: 1;
	}
	75% {
		transform: rotate(360deg) translateY(-45px) translateX(10px) scale(1.2);
		opacity: 0.85;
	}
}

/* 新增动画 - 线条移动 */
@keyframes lineMove {
	0%, 100% {
		transform: translateX(-250px) rotate(0deg) scaleX(0.5);
		opacity: 0;
		box-shadow: 0 0 15px rgba(101, 200, 255, 0.5);
	}
	50% {
		transform: translateX(250px) rotate(0deg) scaleX(1);
		opacity: 0.9;
		box-shadow: 0 0 25px rgba(101, 200, 255, 0.8);
	}
}

/* 新增动画 - 网格移动 */
@keyframes gridMove {
	0% {
		transform: translate(0, 0);
	}
	100% {
		transform: translate(50px, 50px);
	}
}

/* 新增动画 - 三角形出现 */
@keyframes appear {
	0% {
		opacity: 0;
		transform: rotate(0deg) scale(0);
		filter: drop-shadow(0 0 0px rgba(101, 200, 255, 0)) blur(1px);
	}
	100% {
		opacity: 0.6;
		transform: rotate(0deg) scale(1);
		filter: drop-shadow(0 0 15px rgba(101, 200, 255, 0.5)) blur(1px);
	}
}

/* 新增动画 - 三角形旋转 */
@keyframes rotateTriangle {
	0% {
		transform: rotate(0deg) scale(1);
	}
	100% {
		transform: rotate(360deg) scale(1);
	}
}

/* 新增动画 - 三角形随机位置变换 */
@keyframes floatMove {
	0% {
		transform: translate(0, 0) rotate(0deg) scale(1);
	}
	25% {
		transform: translate(20px, -20px) rotate(90deg) scale(1.1);
	}
	50% {
		transform: translate(-15px, 25px) rotate(180deg) scale(0.9);
	}
	75% {
		transform: translate(25px, 10px) rotate(270deg) scale(1.15);
	}
	100% {
		transform: translate(0, 0) rotate(360deg) scale(1);
	}
}

/* 新增动画 - 三角形随机亮度闪烁 */
@keyframes blinkRandom {
	0% {
		opacity: 0.2;
		filter: drop-shadow(0 0 8px rgba(101, 200, 255, 0.2)) blur(1px);
	}
	20% {
		opacity: 0.8;
		filter: drop-shadow(0 0 25px rgba(101, 200, 255, 0.7)) blur(1px);
	}
	40% {
		opacity: 0.4;
		filter: drop-shadow(0 0 15px rgba(101, 200, 255, 0.4)) blur(1px);
	}
	60% {
		opacity: 1;
		filter: drop-shadow(0 0 30px rgba(101, 200, 255, 0.9)) blur(1px);
	}
	80% {
		opacity: 0.5;
		filter: drop-shadow(0 0 18px rgba(101, 200, 255, 0.5)) blur(1px);
	}
	100% {
		opacity: 0.2;
		filter: drop-shadow(0 0 8px rgba(101, 200, 255, 0.2)) blur(1px);
	}
}

/* 右侧登录表单区域 */
.login-form-container {
	width: 30%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	background-color: #f5f7fa;
	transition: all 0.5s ease;
}

/* 登录表单 */
.login-form {
	width: 100%;
	max-width: 400px;
}

.form-header {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 30px;
}

.form-logo {
	width: 48px;
	height: 48px;
	border-radius: 6px;
	object-fit: contain;
}

.form-header-text {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.form-title {
	font-size: 28px;
	font-weight: 700;
	color: #333;
	margin-bottom: 3px;
	line-height: 1.2;
}

.form-subtitle {
	font-size: 14px;
	color: #666;
	margin-bottom: 0;
	line-height: 1.2;
}

/* 表单组 */
.form-group {
	margin-bottom: 25px;
}

.form-row {
	display: flex;
	gap: 15px;
	align-items: flex-start;
	margin-bottom: 25px;
}

.captcha-group {
	flex: 1;
	margin-bottom: 0;
}

/* 输入包装器 */
.input-wrapper {
	position: relative;
	width: 100%;
}

/* 表单输入 */
.form-input {
	width: 100%;
	height: 50px;
	padding: 12px 15px;
	border: 1px solid #e0e5ec;
	border-radius: 6px;
	font-size: 16px;
	color: #333;
	background-color: #fafafa;
	transition: all 0.3s ease;
	outline: none;
}

.form-input:focus {
	border-color: #5686fe;
	background-color: white;
	box-shadow: 0 0 0 4px rgba(86, 134, 254, 0.1);
}

.form-input::placeholder {
	color: #999;
}

/* 密码可见性切换 */
.password-toggle {
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	width: 24px;
	height: 24px;
	background: transparent;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* 自定义眼睛图标样式 */
.toggle-icon {
	position: relative;
	width: 20px;
	height: 14px;
	display: block;
	transition: all 0.3s ease;
}

/* 眼睛外框 */
.toggle-icon::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	border: 2px solid #999;
	border-radius: 7px;
	transition: all 0.3s ease;
}

/* 闭眼状态 - 添加遮挡线 */
.toggle-icon::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) rotate(45deg);
	width: 12px;
	height: 2px;
	background-color: #999;
	transition: all 0.3s ease;
}

/* 睁眼状态 - 眼睛外框变色 */
.password-toggle.active .toggle-icon::before {
	border-color: #5686fe;
}

/* 睁眼状态 - 移除遮挡线，显示瞳孔 */
.password-toggle.active .toggle-icon::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 6px;
	height: 6px;
	background-color: #5686fe;
	border-radius: 50%;
	opacity: 1;
	scale: 1;
}

/* 验证码图片 */
.captcha-image-wrapper {
	margin-top: 0;
	display: flex;
	align-items: center;
}

.captcha-image {
	width: 120px;
	height: 50px;
	border: 1px solid #e0e5ec;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s ease;
	background-color: #fafafa;
}

.captcha-image:hover {
	border-color: #5686fe;
	transform: scale(1.05);
}

/* 登录按钮 */
.login-btn {
	width: 100%;
	height: 50px;
	border: none;
	border-radius: 6px;
	background: linear-gradient(135deg, #5686fe 0%, #4a71d4 100%);
	color: white;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(86, 134, 254, 0.3);
}

.login-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(86, 134, 254, 0.4);
}

.login-btn:active {
	transform: translateY(0);
}

/* 按钮加载状态 */
.login-btn.loading {
	opacity: 0.8;
	cursor: not-allowed;
}

.login-btn.loading .btn-text {
	display: none;
}

.login-btn.loading .btn-loading {
	display: block;
}

.btn-text {
	display: block;
	transition: all 0.3s ease;
}

.btn-loading {
	display: none;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

/* 加载动画 */
.loading-spinner {
	width: 24px;
	height: 24px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-top: 3px solid white;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* 表单页脚 */
.form-footer {
	margin-top: 30px;
	text-align: center;
	font-size: 14px;
	color: #999;
}

.form-footer p {
	margin: 0;
	display: inline-block;
}

.form-footer p:not(:last-child)::after {
	content: " | ";
	margin: 0 5px;
	color: #999;
}

.form-footer .footer-link {
	color: #999;
	text-decoration: none;
	transition: color 0.3s ease;
}

.form-footer .footer-link:hover {
	color: #5686fe;
	text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 1024px) {
	.login-brand {
		width: 70%;
	}
	
	.login-form-container {
		width: 30%;
	}
}

@media (max-width: 768px) {
	.login-container {
		flex-direction: column;
	}
	
	.login-brand {
		width: 100%;
		height: 300px;
		padding: 30px;
	}
	
	.login-form-container {
		width: 100%;
		height: auto;
		padding: 30px 20px;
		min-height: calc(100vh - 300px);
	}
	
	.brand-logo {
		margin-bottom: 0;
		padding: 5px;
	}
	
	.brand-title {
		font-size: 30px;
	}
	
	.brand-description {
		margin-top: 0;
	}
	
	.form-row {
		flex-direction: row;
		gap: 10px;
	}
	
	.captcha-group {
		flex: 1;
		margin-bottom: 0;
	}
	
	.captcha-image-wrapper {
		margin-top: 0;
		align-self: flex-start;
	}
	
	.captcha-image {
		width: 120px;
		height: 50px;
	}
}

/* 右侧表单区域底部备案和版权信息样式 */
.form-container-footer {
	margin-top: auto;
	padding: 0;
	text-align: center;
	width: 100%;
}

.form-container-footer .footer-beian {
	margin-bottom: 5px;
}

.form-container-footer .footer-beian span {
	display: inline-block;
	margin: 0 5px;
	font-size: 13px;
	color: #999;
}

.form-container-footer .footer-link {
	color: #999;
	text-decoration: none;
	transition: color 0.3s ease;
}

.form-container-footer .footer-link:hover {
	color: #5686fe;
}

.form-container-footer .footer-copyright {
	font-size: 13px;
	color: #999;
}

.form-container-footer .footer-copyright p {
	margin: 0;
}

/* 确保登录表单区域为flex容器，让页脚在底部，表单垂直居中 */
.login-form-container {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.login-form {
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex: 1;
	width: 100%;
}

/* 确保表单内部元素正常对齐 */
.login-form > * {
	width: 100%;
}

@media (max-width: 480px) {
	.login-brand {
		height: 250px;
		padding: 20px;
	}
	
	.brand-logo {
		width: 80px;
		height: 80px;
	}
	
	.brand-title {
		font-size: 28px;
	}
	
	.brand-description {
		font-size: 16px;
	}
	
	.form-title {
		font-size: 24px;
	}
	
	.form-input {
		height: 45px;
		font-size: 15px;
	}
	
	.login-btn {
		height: 45px;
		font-size: 15px;
	}
	
	.form-row {
		flex-direction: row;
		gap: 10px;
	}
	
	.captcha-group {
		flex: 1;
		margin-bottom: 0;
	}
	
	.captcha-image-wrapper {
		margin-top: 0;
		align-self: flex-start;
	}
	
	.captcha-image {
		width: 100px;
		height: 45px;
	}
	
	/* 小屏幕设备右侧表单底部适配 */
	.form-container-footer {
		padding: 0;
	}
	
	.form-container-footer .footer-beian span {
		display: block;
		margin: 5px 0;
	}
	
	.form-container-footer .beian-separator {
		display: none;
	}
	
	/* 小屏幕设备表单垂直居中 */
	.login-form {
		justify-content: center;
		align-items: center;
	}
}