/* 耳纹AI - 科技风登录页面样式 */

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

body.login-page {
	min-height: 100vh;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
	background: #0a0e27;
	overflow-x: hidden;
}

/* 背景效果 */
.login-bg {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	overflow: hidden;
}

.login-bg .bg-gradient {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #0a0e27 0%, #1a2744 50%, #0d1525 100%);
}

.login-bg .bg-particles {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: 
		radial-gradient(circle at 20% 80%, rgba(255, 140, 0, 0.08) 0%, transparent 50%),
		radial-gradient(circle at 80% 20%, rgba(0, 150, 255, 0.08) 0%, transparent 50%),
		radial-gradient(circle at 40% 40%, rgba(255, 140, 0, 0.05) 0%, transparent 40%);
}

#particles-canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* 登录容器 */
.login-container {
	position: relative;
	z-index: 1;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

/* 登录盒子 */
.login-box {
	width: 100%;
	max-width: 420px;
	background: rgba(255, 255, 255, 0.03);
	backdrop-filter: blur(20px);
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 
		0 25px 50px -12px rgba(0, 0, 0, 0.5),
		0 0 100px -20px rgba(255, 140, 0, 0.1),
		0 0 100px -20px rgba(0, 150, 255, 0.1);
	overflow: hidden;
	animation: boxFadeIn 0.6s ease-out;
}

@keyframes boxFadeIn {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* 登录头部 */
.login-header {
	padding: 40px 40px 30px;
	text-align: center;
	background: linear-gradient(180deg, rgba(255, 140, 0, 0.1) 0%, transparent 100%);
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
}

.logo-img {
	width: 60px;
	height: 60px;
	border-radius: 12px;
	object-fit: contain;
}

.logo-text h1 {
	font-size: 28px;
	font-weight: 700;
	background: linear-gradient(135deg, #ff8c00 0%, #0096ff 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin: 0;
	letter-spacing: 2px;
}

.logo-text p {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.5);
	margin: 5px 0 0;
	letter-spacing: 3px;
	text-transform: uppercase;
}

/* 登录内容区 */
.login-content {
	padding: 35px 40px 40px;
}

.login-title {
	font-size: 20px;
	font-weight: 500;
	color: #fff;
	text-align: center;
	margin-bottom: 30px;
	letter-spacing: 2px;
}

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

.input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.input-icon {
	position: absolute;
	left: 16px;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.4);
	font-size: 16px;
	z-index: 1;
	transition: color 0.3s ease;
}

.input-wrapper:focus-within .input-icon {
	color: #0096ff;
}

.input-wrapper input {
	width: 100%;
	height: 52px;
	padding: 0 16px 0 48px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	color: #fff;
	font-size: 15px;
	outline: none;
	transition: all 0.3s ease;
}

.input-wrapper input::placeholder {
	color: rgba(255, 255, 255, 0.3);
}

.input-wrapper input:focus {
	background: rgba(255, 255, 255, 0.08);
	border-color: #0096ff;
	box-shadow: 0 0 0 3px rgba(0, 150, 255, 0.15), 0 0 20px rgba(0, 150, 255, 0.1);
}

.input-wrapper input:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.05) inset !important;
	-webkit-text-fill-color: #fff !important;
}

/* 验证码 */
.verify-wrapper {
	gap: 10px;
}

.verify-wrapper input {
	padding-left: 48px;
	flex: 1;
}

.verify-img {
	height: 52px;
	border-radius: 10px;
	cursor: pointer;
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: all 0.3s ease;
}

.verify-img:hover {
	transform: scale(1.02);
	box-shadow: 0 0 15px rgba(255, 140, 0, 0.3);
}

/* 记住我 */
.remember-me {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding-left: 0;
}

.remember-me .checkbox-inline {
	color: rgba(255, 255, 255, 0.6);
	font-size: 14px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	padding-left: 20px;
	position: relative;
	z-index: 10;
}

.remember-me input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0;
	margin-left: -20px;
	accent-color: #ff8c00;
	cursor: pointer;
	position: relative;
	z-index: 11;
}

/* 登录按钮 */
.login-btn {
	width: 100%;
	height: 52px;
	background: linear-gradient(135deg, #ff8c00 0%, #ff6a00 100%);
	border: none;
	border-radius: 10px;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 3px;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.login-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s ease;
}

.login-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 30px rgba(255, 140, 0, 0.4), 0 0 40px rgba(255, 140, 0, 0.2);
}

.login-btn:hover::before {
	left: 100%;
}

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

/* 提示信息 */
.demo-tip {
	margin-top: 20px;
	text-align: center;
	font-size: 13px;
}

/* 登录底部 */
.login-footer {
	padding: 20px 40px;
	text-align: center;
	background: rgba(0, 0, 0, 0.2);
	border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.login-footer p {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.3);
	margin: 0;
}

/* 响应式 */
@media (max-width: 480px) {
	.login-box {
		max-width: 100%;
		border-radius: 16px;
	}
	
	.login-header {
		padding: 30px 25px 25px;
	}
	
	.logo-img {
		width: 50px;
		height: 50px;
	}
	
	.logo-text h1 {
		font-size: 24px;
	}
	
	.login-content {
		padding: 25px;
	}
	
	.input-wrapper input {
		height: 48px;
		font-size: 14px;
	}
	
	.login-btn {
		height: 48px;
		font-size: 15px;
	}
	
	.login-footer {
		padding: 15px 25px;
	}
}

/* 加载动画 */
.loader {
	display: none;
}
