* { margin: 0; padding: 0; box-sizing: border-box; }

body {
	width: 100%;
	height: 100vh;
	overflow: hidden;
	background: #0a0e27;
	font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 粒子画布 */
#particles-canvas {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
}

/* 网格线背景 */
.grid-bg {
	position: fixed;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background-image:
		linear-gradient(rgba(0, 195, 255, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 195, 255, 0.03) 1px, transparent 1px);
	background-size: 60px 60px;
	z-index: 1;
	animation: gridMove 20s linear infinite;
}
@keyframes gridMove {
	0% { background-position: 0 0; }
	100% { background-position: 60px 60px; }
}

/* 光晕效果 */
.glow-orb {
	position: fixed;
	border-radius: 50%;
	filter: blur(80px);
	z-index: 1;
	animation: orbFloat 8s ease-in-out infinite;
}
.glow-orb.orb1 {
	width: 400px; height: 400px;
	background: radial-gradient(circle, rgba(0, 195, 255, 0.15), transparent);
	top: -100px; right: -100px;
	animation-delay: 0s;
}
.glow-orb.orb2 {
	width: 350px; height: 350px;
	background: radial-gradient(circle, rgba(0, 255, 136, 0.1), transparent);
	bottom: -80px; left: -80px;
	animation-delay: -4s;
}
@keyframes orbFloat {
	0%, 100% { transform: translate(0, 0); }
	50% { transform: translate(30px, -30px); }
}

/* 登录容器 */
.login-wrapper {
	position: relative;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100vh;
}

/* 登录卡片 */
.login-card {
	position: relative;
	width: 420px;
	padding: 50px 40px 40px;
	background: rgba(10, 14, 39, 0.75);
	border: 1px solid rgba(0, 195, 255, 0.15);
	border-radius: 16px;
	backdrop-filter: blur(20px);
	box-shadow:
		0 0 40px rgba(0, 195, 255, 0.05),
		inset 0 0 40px rgba(0, 195, 255, 0.02);
	overflow: hidden;
	animation: cardFadeIn 0.8s ease-out;
}
@keyframes cardFadeIn {
	from { opacity: 0; transform: translateY(30px) scale(0.95); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 卡片顶部光线 */
.login-card::before {
	content: '';
	position: absolute;
	top: 0; left: -50%;
	width: 200%; height: 2px;
	background: linear-gradient(90deg, transparent, #00c3ff, #00ff88, #00c3ff, transparent);
	animation: scanLine 3s linear infinite;
}
@keyframes scanLine {
	0% { transform: translateX(-50%); }
	100% { transform: translateX(50%); }
}

/* 卡片角标 */
.login-card::after {
	content: '';
	position: absolute;
	top: 0; left: 0;
	width: 30px; height: 30px;
	border-top: 2px solid rgba(0, 195, 255, 0.5);
	border-left: 2px solid rgba(0, 195, 255, 0.5);
	border-radius: 16px 0 0 0;
}

.corner-br {
	position: absolute;
	bottom: 0; right: 0;
	width: 30px; height: 30px;
	border-bottom: 2px solid rgba(0, 195, 255, 0.5);
	border-right: 2px solid rgba(0, 195, 255, 0.5);
	border-radius: 0 0 16px 0;
}

/* Logo 和标题 */
.logo-title-wrap {
	text-align: center;
	margin-bottom: 35px;
}
.logo-title-wrap .logo {
	width: 56px;
	height: 56px;
	margin-bottom: 12px;
	border-radius: 14px;
	box-shadow: 0 0 20px rgba(0, 195, 255, 0.3);
	animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse {
	0%, 100% { box-shadow: 0 0 20px rgba(0, 195, 255, 0.3); }
	50% { box-shadow: 0 0 35px rgba(0, 195, 255, 0.5); }
}
.logo-title-wrap .title {
	font-size: 26px;
	font-weight: 600;
	letter-spacing: 3px;
	background: linear-gradient(135deg, #00c3ff, #00ff88);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 8px;
}
.logo-title-wrap .desc {
	font-size: 13px;
	color: rgba(180, 220, 255, 0.7);
	letter-spacing: 4px;
}

/* 输入框组 */
.input-group {
	position: relative;
	margin-bottom: 22px;
}
.input-group .input-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: rgba(0, 195, 255, 0.7);
	font-size: 16px;
	z-index: 2;
}
.input-group .layui-input {
	width: 100%;
	height: 46px;
	line-height: 46px;
	padding-left: 42px;
	padding-right: 15px;
	background: rgba(0, 195, 255, 0.05);
	border: 1px solid rgba(0, 195, 255, 0.15);
	border-radius: 8px;
	color: rgba(230, 240, 255, 0.95);
	font-size: 14px;
	transition: all 0.3s ease;
}
.input-group .layui-input::placeholder {
	color: rgba(180, 210, 255, 0.45);
}
.input-group .layui-input:focus {
	border-color: rgba(0, 195, 255, 0.5);
	background: rgba(0, 195, 255, 0.08);
	box-shadow: 0 0 20px rgba(0, 195, 255, 0.1);
}
.layui-form-danger:focus {
	box-shadow: 0 0 20px rgba(245, 108, 108, 0.15) !important;
	border-color: rgba(245, 108, 108, 0.5) !important;
	background: rgba(245, 108, 108, 0.05) !important;
}

/* 验证码行 */
.captcha-row {
	display: flex;
	gap: 12px;
}
.captcha-row .input-group {
	flex: 1;
	margin-bottom: 0;
}
.captcha-row .codeImage {
	height: 46px;
	border-radius: 8px;
	border: 1px solid rgba(0, 195, 255, 0.15);
	cursor: pointer;
	transition: all 0.3s ease;
	flex-shrink: 0;
}
.captcha-row .codeImage:hover {
	border-color: rgba(0, 195, 255, 0.4);
	box-shadow: 0 0 15px rgba(0, 195, 255, 0.1);
}

/* 记住密码 */
.remember-row {
	margin: 18px 0 24px;
}
.remember-row .layui-form-checkbox {
	margin: 0 !important;
}
.remember-row .layui-form-checkbox span {
	color: rgba(200, 220, 255, 0.6) !important;
	font-size: 13px;
}
.layui-form-checked[lay-skin=primary] i {
	border-color: #00c3ff !important;
	background-color: #00c3ff !important;
	color: #fff !important;
}

/* 登录按钮 */
.login-btn {
	width: 100%;
	height: 46px;
	line-height: 46px;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 6px;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	background: #5FB878;
	color: #fff;
	transition: all 0.3s ease;
	box-shadow: 0 4px 20px rgba(95, 184, 120, 0.3);
}
.login-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 30px rgba(95, 184, 120, 0.4);
}
.login-btn:active {
	transform: translateY(0);
}

/* 按钮流光 */
.login-btn::before {
	content: '';
	position: absolute;
	top: 0; left: -100%;
	width: 100%; height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
	transition: left 0.5s;
}
.login-btn:hover::before {
	left: 100%;
}

/* 底部信息 */
.footer-info {
	position: fixed;
	bottom: 20px;
	left: 0; right: 0;
	text-align: center;
	color: rgba(255, 255, 255, 0.15);
	font-size: 12px;
	letter-spacing: 1px;
	z-index: 10;
}

/* 覆盖 Layui 默认样式 */
.layui-form {
	width: auto !important;
	margin: 0 !important;
}
.layui-form-item {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
