* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html,
body {
	height: 100%;
	font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
}

.login-page {
	width: 100%;
	height: 100%;
	overflow-x: hidden;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: 48px;
	box-sizing: border-box;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.login-header {
	width: 100%;
	max-width: 1200px;
	height: 56px;
	display: flex;
	align-items: center;
	padding: 0 24px;
	box-sizing: border-box;
}

.login-logo {
	height: 40px;
	width: auto;
	max-width: 220px;
	display: block;
	object-fit: contain;
}

.title-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin-top: 24px;
	margin-bottom: 72px;
}

.title-row {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.title-container .title {
	font-size: 36px;
	color: #001643;
	margin-top: 4px;
	font-weight: bold;
	line-height: 1.2;
}

.title-container .title-linear {
	background: linear-gradient(-90deg, #a242fe 0%, #1670ff 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	margin-top: 0;
}

.title-container .margin-no {
	margin-top: 0;
}

.title-sub {
	color: #001643;
	font-size: 15px;
	text-align: center;
	margin-top: 12px;
	font-weight: 400;
}

.login-card {
	width: 860px;
	height: 420px;
	box-shadow: 2px 0 6px rgba(0, 21, 41, 0.2);
	border: 1px solid #eaeced;
	border-radius: 10px;
	display: flex;
	overflow: hidden;
	background: #fff;
	margin-bottom: 40px;
}

.login-bg {
	flex: 1;
	height: 100%;
	box-sizing: border-box;
	background-color: rgb(250, 250, 250);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	border-bottom-left-radius: 10px;
	border-top-left-radius: 10px;
}

.login-bg-caption {
	position: absolute;
	top: 36px;
	left: 40px;
	z-index: 1;
}

.login-bg-caption h2 {
	color: #000931;
	font-size: 20px;
	font-weight: bold;
	margin-bottom: 8px;
}

.login-bg-caption p {
	color: #6b80a7;
	font-size: 12px;
}

.login-bg-img {
	width: 100%;
	height: 420px;
	display: block;
	object-fit: cover;
}

.login-form-panel {
	flex: 1;
	height: 100%;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #fff;
	border-bottom-right-radius: 10px;
	border-top-right-radius: 10px;
}

.form-center-box {
	width: 320px;
	text-align: center;
}

.top-log-title {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
}

.top-log-title span {
	font-size: 26px;
	font-weight: 700;
	color: #333333;
}

.top-desc {
	font-size: 12px;
	color: #7c94bf;
}

.form-fields {
	margin-top: 20px;
	text-align: left;
}

.form-item {
	margin-bottom: 16px;
}

.input-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.input-prefix {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	z-index: 1;
}

.input-prefix img {
	width: 18px;
	height: 20px;
}

.login-input {
	width: 100%;
	line-height: 40px;
	height: 40px;
	border: 1px solid #9ab5ed;
	border-radius: 4px;
	padding: 0 12px 0 40px;
	font-size: 14px;
	color: #333;
	outline: none;
	background: #fff;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.login-input:focus {
	border-color: #387bfb !important;
	box-shadow: 0 0 0 3px rgba(56, 123, 251, 0.12);
}

.login-input::placeholder {
	color: #a0aec0;
}

.captcha-row {
	display: flex;
	gap: 12px;
	align-items: center;
}

.captcha-row .login-input {
	flex: 1;
	padding-left: 12px;
}

.captcha-box {
	flex: 0 0 120px;
	height: 40px;
	border: 1px solid #9ab5ed;
	border-radius: 4px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f8fafc;
	cursor: pointer;
}

.captcha-box img {
	height: 100%;
	width: 100%;
	object-fit: cover;
	display: block;
}

.error-message {
	color: #dc2626;
	font-size: 13px;
	min-height: 20px;
	margin: 4px 0 8px;
	text-align: left;
}

.login-btn-wrap {
	width: 100%;
	box-sizing: border-box;
	margin-top: 8px;
}

.login-submit {
	width: 100%;
	height: 40px;
	border: none;
	border-radius: 4px;
	background-color: #387bfb;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 2px;
	cursor: pointer;
	transition: background-color 0.2s, opacity 0.2s;
}

.login-submit:hover {
	background-color: #2f6ae0;
}

.login-submit:active {
	opacity: 0.92;
}

.login-extra-link {
	margin-top: 16px;
	text-align: center;
	font-size: 14px;
}

.login-extra-link a {
	color: #387bfb;
	text-decoration: none;
}

.login-extra-link a:hover {
	text-decoration: underline;
}

@media (min-width: 992px) and (max-width: 1200px) {
	.login-card {
		width: 90%;
		max-width: 860px;
	}
}

@media (min-width: 769px) {
	.title-row {
		flex-direction: row;
		gap: 16px;
	}

	.title-container {
		margin-top: 36px;
		margin-bottom: 72px;
	}
}

/* 中等宽度及以下：单栏，避免双栏表单过窄 */
@media (max-width: 991px) {
	.login-header {
		height: 64px;
		padding: 0 16px;
	}

	.title-container {
		margin-top: 28px;
		margin-bottom: 28px;
		padding: 0 16px;
	}

	.title-container .title {
		font-size: 28px;
	}

	.title-sub {
		font-size: 14px;
	}

	.login-card {
		width: 90%;
		max-width: 420px;
		height: auto;
		flex-direction: column;
	}

	.login-bg {
		display: none;
	}

	.login-form-panel {
		border-radius: 15px;
		padding: 32px 0;
	}

	.form-center-box {
		width: 90%;
		max-width: 320px;
	}
}

/* 矮屏：压缩标题间距与卡片高度 */
@media (max-height: 800px) and (min-width: 992px) {
	.title-container {
		margin-top: 20px;
		margin-bottom: 28px;
	}

	.title-container .title {
		font-size: 32px;
	}

	.title-sub {
		font-size: 14px;
		margin-top: 8px;
	}

	.login-card {
		height: 360px;
	}

	.login-bg-img {
		height: 360px;
	}

	.login-bg-caption {
		top: 28px;
		left: 32px;
	}

	.login-bg-caption h2 {
		font-size: 18px;
	}
}

@media (max-height: 680px) and (min-width: 992px) {
	.login-header {
		height: 48px;
	}

	.title-container {
		margin-top: 12px;
		margin-bottom: 16px;
	}

	.title-container .title {
		font-size: 28px;
	}

	.title-sub {
		font-size: 13px;
		margin-top: 6px;
	}

	.login-card {
		height: 320px;
		margin-bottom: 24px;
	}

	.login-bg-img {
		height: 320px;
	}

	.login-bg-caption {
		top: 20px;
		left: 28px;
	}

	.login-bg-caption h2 {
		font-size: 16px;
		margin-bottom: 4px;
	}

	.form-fields {
		margin-top: 12px;
	}

	.form-item {
		margin-bottom: 12px;
	}

	.top-log-title span {
		font-size: 22px;
	}
}

/* 矮屏 + 单栏：再压一点纵向间距 */
@media (max-height: 800px) and (max-width: 991px) {
	.title-container {
		margin-top: 16px;
		margin-bottom: 16px;
	}

	.login-form-panel {
		padding: 24px 0;
	}
}

