* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}

html, body {
	height: 100%;
	font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
		"Helvetica Neue", "Microsoft YaHei", sans-serif;
}

body {
	background: url('/static/image/library.jpg') no-repeat center bottom;
	background-size: cover;
	background-attachment: fixed;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 20px;
	position: relative;
	overflow-x: hidden;
	overflow-y: auto;
}
/* 微信浏览器专属样式 */
.wechat-browser {
	
}
/* 半透明遮罩层 */
.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(180deg, rgba(0, 30, 60, 0.35) 0%,
		rgba(0, 30, 60, 0.55) 100%);
	z-index: 1;
}
/* 登录卡片容器 */
.login-container {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 400px;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-radius: 20px;
	padding: 36px 28px 28px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}
/* Logo区域 */
.logo-section {
	text-align: center;
	margin-bottom: 30px;
}

.logo-section img {
	width: 88px;
	height: 88px;
	object-fit: contain;
	border-radius: 20%;
	box-shadow: 0 4px 16px rgba(0, 51, 102, 0.15);
}

.logo-section .school-name {
	margin-top: 14px;
	font-size: 22px;
	font-weight: 700;
	color: #003366;
	letter-spacing: 1px;
}

.logo-section .system-title {
	margin-top: 6px;
	font-size: 14px;
	color: #667788;
	letter-spacing: 2px;
}
/* 输入框区域 */
.form-group {
	margin-bottom: 18px;
	position: relative;
}

.form-group .input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.form-group .input-icon {
	position: absolute;
	left: 16px;
	width: 20px;
	height: 20px;
	color: #8899aa;
	pointer-events: none;
}

.form-group input {
	width: 100%;
	height: 50px;
	border: 1.5px solid #e0e6ed;
	border-radius: 12px;
	padding: 0 16px 0 48px;
	font-size: 16px;
	color: #333;
	background: #f8fafc;
	outline: none;
	transition: all 0.25s ease;
	-webkit-appearance: none;
}

.form-group input::placeholder {
	color: #aab5c0;
	font-size: 15px;
}

.form-group input:focus {
	border-color: #004488;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(0, 68, 136, 0.1);
}

.init-pwd-tip {
	margin-top: 6px;
	font-size: 12px;
	color: #667788;
}
/* 密码显示切换 */
.toggle-password {
	position: absolute;
	right: 8px;
	width: 44px;
	height: 44px;
	color: #8899aa;
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.toggle-password:active {
	color: #004488;
}

.eye-icon-open, .eye-icon-close {
	width: 20px;
	height: 20px;
}

.eye-icon-close {
	display: none;
}
/* 登录按钮 */
.login-btn {
	width: 100%;
	height: 50px;
	background: linear-gradient(135deg, #004488 0%, #0066aa 100%);
	color: #fff;
	border: none;
	border-radius: 12px;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: 4px;
	cursor: pointer;
	margin-top: 8px;
	transition: all 0.25s ease;
	box-shadow: 0 6px 20px rgba(0, 68, 136, 0.3);
}

.login-btn:active {
	transform: scale(0.98);
	box-shadow: 0 3px 10px rgba(0, 68, 136, 0.25);
}

.login-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.loading-spinner {
	display: inline-block;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
	vertical-align: middle;
	margin-right: 8px;
	display: none;
}

@
keyframes spin {to { transform:rotate(360deg);
	
}

}
/* 链接区域 */
.link-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 18px;
	padding: 0 4px;
}

.link-row a {
	color: #004488;
	text-decoration: none;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 4px;
	transition: opacity 0.2s;
	min-height: 44px;
	padding: 0 8px;
}

.link-row a:active {
	opacity: 0.6;
}

.link-row .divider {
	width: 1px;
	height: 14px;
	background: #d0d8e0;
}
/* 底部版权 */
.copyright {
	position: relative;
	z-index: 2;
	color: rgba(255, 255, 255, 0.9);
	text-align: center;
	margin-top: 24px;
	font-size: 13px;
	line-height: 1.6;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.copyright .icp {
	opacity: 0.75;
	font-size: 12px;
}
/* Toast提示 */
.toast {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(0, 0, 0, 0.8);
	color: #fff;
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 14px;
	z-index: 9999;
	opacity: 0;
	transition: opacity 0.3s;
	pointer-events: none;
	width: max-content;      
	max-width: 80vw;         
	text-align: center;
}

.toast.show {
	opacity: 1;
}
/* ========== 弹窗公共样式 ========== */
.modal-mask {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.modal-wrap {
	width: 100%;
	max-width: 360px;
	background: #fff;
	border-radius: 16px;
	padding: 28px 24px;
}

.modal-title {
	font-size: 18px;
	font-weight: 600;
	color: #003366;
	text-align: center;
	margin-bottom: 20px;
}

.modal-desc {
	font-size: 14px;
	color: #666;
	margin-bottom: 16px;
	line-height: 1.5;
}

.modal-input {
	width: 100%;
	height: 48px;
	border: 1.5px solid #e0e6ed;
	border-radius: 10px;
	padding: 0 16px;
	font-size: 16px;
	outline: none;
	margin-bottom: 14px;
}

.modal-input:focus {
	border-color: #004488;
	box-shadow: 0 0 0 3px rgba(0, 68, 136, 0.1);
}

.modal-btn-row {
	display: flex;
	gap: 12px;
	margin-top: 10px;
}

.modal-cancel, .modal-submit {
	flex: 1;
	height: 46px;
	border-radius: 10px;
	font-size: 16px;
	border: none;
	cursor: pointer;
}

.modal-cancel {
	background: #f0f2f5;
	color: #333;
}

.modal-submit {
	background: #004488;
	color: #fff;
}

.tip-link {
	text-align: center;
	display: block;
	margin: 8px 0 10px;
	color: #004488;
	font-size: 14px;
	cursor: pointer;
}

.code-row {
	display: flex;
	gap: 10px;
}

.code-row .modal-input {
	flex: 1;
	margin-bottom: 14px;
}

.get-code-btn {
	white-space: nowrap;
	height: 48px;
	border: 1px solid #004488;
	background: #fff;
	color: #004488;
	border-radius: 10px;
	padding: 0 12px;
	font-size: 14px;
	cursor: pointer;
}

.get-code-btn:disabled {
	color: #999;
	border-color: #ccc;
	cursor: not-allowed;
}
/* 小屏幕适配 */
@media ( max-width : 360px) {
	.login-container {
		padding: 28px 20px 22px;
	}
	.logo-section img {
		width: 76px;
		height: 76px;
	}
	.logo-section .school-name {
		font-size: 19px;
	}
}
/* 横屏适配 */
@media ( max-height : 500px) and (orientation: landscape) {
	body {
		padding: 10px;
	}
	.login-container {
		padding: 20px 24px;
	}
	.logo-section {
		margin-bottom: 16px;
	}
	.logo-section img {
		width: 60px;
		height: 60px;
	}
	.logo-section .school-name {
		font-size: 18px;
		margin-top: 8px;
	}
	.logo-section .system-title {
		display: none;
	}
	.form-group {
		margin-bottom: 12px;
	}
	.form-group input {
		height: 44px;
	}
	.login-btn {
		height: 44px;
	}
	.copyright {
		margin-top: 12px;
	}
}