/* 登录页面现代化样式 - 基于用户截图优化 */
body {
	font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
	margin: 0;
	padding: 0;
	color: #2c3e50;
	background: linear-gradient(135deg, #4A90E2 0%, #5DADE2 50%, #85C1E9 100%);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
}

/* 链接样式 */
a:link, a:visited {
	text-decoration: none;
	color: #4A90E2;
	transition: all 0.3s ease;
}

a:hover {
	text-decoration: none;
	color: #357ABD;
	transform: translateY(-1px);
}

a:active {
	text-decoration: none;
	color: #2E5D8A;
}

/* 顶部导航栏 */
.top, .d1 {
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 60px;
	z-index: 1000;
	display: flex;
	align-items: center;
	padding: 0 20px;
}

.d11 {
	display: flex;
	align-items: center;
	height: 100%;
}

.d7 {
	color: rgba(255, 255, 255, 0.9)!important;
	font-weight: 500;
	margin-left: 10px;
}

.pc {
	height: 60px;
	background: transparent;
}

/* 主要内容区域 */
.p9 {
	width: 100%;
	max-width: 480px;
	margin: 0 auto;
	padding: 36px 20px 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: 1;
	min-height: 0;
}

/* Logo和标题区域 - 保留原始Logo图片 */
.p5 {
	width: 78px;
	height: 52px;
	background-image: url(../image/logo7.gif);
	background-repeat: no-repeat;
	background-position: 0px -56px;
	margin: 0 auto 20px;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

.p5:hover {
	transform: scale(1.05);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.p6 {
	font-size: 24px;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.95);
	text-align: center;
	margin-bottom: 8px;
	line-height: 1.4;
}

.p4 {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.8);
	text-align: center;
	margin-bottom: 10px;
	line-height: 1.5;
}

/* 登录表单容器 */
.p1 {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(20px);
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
	padding: 40px;
	width: 100%;
	max-width: 400px;
	margin: 0 auto;
	transition: all 0.4s ease;
	animation: fadeInUp 0.8s ease-out;
}

.p1:hover {
	transform: translateY(-5px);
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

/* 头像图标区域 - 保留原始背景图片 */
.p2 {
	width: 99px;
	height: 102px;
	background-image: url(../image/logo7.gif);
	background-repeat: no-repeat;
	background-position: 0px -111px;
	margin: 0 auto 30px;
	border-radius: 50%;
	background-size: contain;
	box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
	transition: all 0.3s ease;
}

.p2:hover {
	transform: scale(1.05);
	box-shadow: 0 12px 35px rgba(74, 144, 226, 0.4);
}

/* 表单标题 */
.main-title {
	font-size: 26px;
	font-weight: 600;
	color: #2c3e50;
	text-align: center;
	margin-bottom: 30px;
	line-height: 1.3;
}

/* 表单项容器 */
.p3 {
	margin-bottom: 20px;
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

.pmob1, .pmob2 {
	position: relative;
}

/* 输入框样式 */
.input {
	width: 100%;
	padding: 16px 20px;
	font-size: 16px;
	border: 2px solid #e8f4f8;
	border-radius: 12px;
	background: #f8fafb;
	transition: all 0.3s ease;
	box-sizing: border-box;
	font-family: inherit;
	outline: none;
}

.input::placeholder {
	color: #a0aec0;
	font-weight: 400;
}

.input:hover {
	border-color: #4A90E2;
	background: #ffffff;
	box-shadow: 0 2px 8px rgba(74, 144, 226, 0.1);
}

.input:focus {
	border-color: #4A90E2;
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
	transform: translateY(-2px);
}

/* 登录按钮 */
.btn {
	width: 100%;
	height: 50px;
	background: linear-gradient(135deg, #4A90E2 0%, #5DADE2 100%);
	color: white;
	font-size: 16px;
	font-weight: 600;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
	margin-top: 10px;
	margin-bottom: 20px;
	position: relative;
	overflow: hidden;
}

.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.6s;
}

.btn:hover {
	background: linear-gradient(135deg, #357ABD 0%, #4A90E2 100%);
	box-shadow: 0 8px 25px rgba(74, 144, 226, 0.6);
	transform: translateY(-2px);
}

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

.btn:active {
	transform: translateY(0);
	box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.btn:disabled {
	background: #cbd5e0;
	color: #9ca3af;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

/* 发送验证码按钮 */
.send-code {
	position: absolute;
	top: 50%;
	right: 15px;
	transform: translateY(-50%);
	background: #4A90E2;
	color: white;
	border: none;
	border-radius: 8px;
	padding: 8px 16px;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.3s ease;
	z-index: 10;
}

.send-code:hover {
	background: #357ABD;
	transform: translateY(-50%) scale(1.05);
}

.send-code.disable {
	background: #cbd5e0;
	cursor: not-allowed;
	transform: translateY(-50%) scale(1);
}

/* 错误提示 */
.errorBox {
	background: linear-gradient(135deg, #fed7d7, #feb2b2);
	border: 1px solid #fc8181;
	border-radius: 10px;
	color: #c53030;
	padding: 12px 16px;
	margin-bottom: 15px;
	font-size: 14px;
	display: none;
	animation: shake 0.5s ease-in-out;
}

/* 底部版权信息 - 使用正常文档流 */
.copyright {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.7);
	text-align: center;
	line-height: 1.5;
	margin: 20px 0 10px 0;
	padding: 0 20px;
}

.foot_info {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.8);
	text-align: center;
	margin: 0 0 30px 0;
	padding: 0 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
	.p9 {
		padding: 0;
		flex: 1;
	}
	
	.p1 {
		padding: 30px 25px;
		margin: 20px auto;
	}
	
	.p6 {
		font-size: 20px;
	}
	
	.main-title {
		font-size: 22px;
	}
	
	.input {
		padding: 14px 18px;
		font-size: 15px;
	}
	
	.copyright, .foot_info {
		margin: 15px 0;
		padding: 0 15px;
	}
}

@media (max-width: 480px) {
	.p9 {
		padding: 0;
	}
	#login {
		margin: 10px;
	}
	#register {
		margin: 10px;
	}
	.p1 {
		padding: 0; /*25px 20px;*/
		border-radius: 16px;
	}
	
	.p6 {
		font-size: 18px;
		margin-bottom: 6px;
	}
	
	.p4 {
		font-size: 13px;
		margin-bottom: 30px;
	}
	
	.main-title {
		font-size: 20px;
		margin-bottom: 25px;
	}
	
	.input {
		padding: 12px 16px;
		font-size: 14px;
	}
	
	.btn {
		height: 46px;
		font-size: 15px;
	}
	
	.copyright, .foot_info {
		font-size: 11px;
		margin: 10px 0;
	}
}

/* 动画效果 */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(40px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-5px); }
	75% { transform: translateX(5px); }
}

/* Layer弹窗模式特殊样式 */
body.layer-mode {
	background: transparent;
	display: block;
	flex-direction: unset;
	min-height: auto;
}

.layer-mode .p1 {
	margin: 0;
	box-shadow: none;
	border: none;
	background: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(10px);
	animation: none;
}

.layer-mode .p9 {
	min-height: auto;
	padding: 0;
}

.layer-mode .p5, .layer-mode .p6, .layer-mode .p4, 
.layer-mode .copyright, .layer-mode .foot_info {
	display: none;
}

/* 自动填充样式 */
input:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 1000px #f8fafb inset !important;
	-webkit-text-fill-color: #2c3e50 !important;
}

input:-webkit-autofill:hover {
	-webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
}

input:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
}

/* 滚动条样式 */
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 4px;
}

::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.3);
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.5);
}