html,
body {
	min-height: 100%;
}

body {
	margin: 0;
	color: #16233c;
	font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
	background:
		linear-gradient(120deg, rgba(55, 137, 218, 0.08) 0%, rgba(255, 255, 255, 0) 34%),
		linear-gradient(250deg, rgba(123, 166, 220, 0.07) 0%, rgba(255, 255, 255, 0) 32%),
		linear-gradient(180deg, #f7fbff 0%, #ffffff 48%, #f8fbff 100%);
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	background:
		linear-gradient(rgba(28, 90, 169, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(28, 90, 169, 0.04) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 88%);
	pointer-events: none;
}

.login-page {
	position: relative;
	z-index: 1;
	min-height: 100vh;
	padding: 34px 28px 64px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.login-shell {
	position: relative;
	width: min(1480px, 100%);
	min-height: min(80vh, 760px);
	display: grid;
	grid-template-columns: minmax(600px, 1.12fr) minmax(430px, 0.88fr);
	overflow: hidden;
	border-radius: 26px;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(255, 255, 255, 0.78);
	box-shadow: 0 28px 70px rgba(60, 86, 126, 0.11);
	backdrop-filter: blur(18px);
}

.login-hero {
	position: relative;
	min-height: 760px;
	padding: 48px 58px;
	box-sizing: border-box;
	color: #14376a;
	background:
		linear-gradient(150deg, rgba(246, 251, 255, 0.98) 0%, rgba(225, 240, 255, 0.96) 58%, rgba(239, 244, 250, 0.94) 100%),
		#f0f7ff;
	overflow: hidden;
}

.login-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0) 44%),
		linear-gradient(rgba(38, 113, 191, 0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(38, 113, 191, 0.05) 1px, transparent 1px);
	background-size: auto, 42px 42px, 42px 42px;
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 86%);
	pointer-events: none;
}

.login-hero::after {
	content: "";
	position: absolute;
	left: 54px;
	right: 54px;
	bottom: 36px;
	height: 1px;
	background: linear-gradient(90deg, rgba(34, 115, 202, 0.24), rgba(34, 115, 202, 0));
	pointer-events: none;
}

.login-bg-copy {
	position: relative;
	z-index: 3;
	max-width: 690px;
}

.login-bg-kicker {
	display: inline-flex;
	align-items: center;
	height: 38px;
	padding: 0 24px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.64);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
	color: #2e6fb5;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0;
}

.login-bg-copy h1 {
	margin: 36px 0 0;
	font-size: clamp(38px, 3.8vw, 52px);
	line-height: 1.08;
	font-weight: 900;
	letter-spacing: 0;
	text-shadow: none;
}

.login-bg-copy p {
	max-width: 520px;
	margin: 20px 0 0;
	color: #58718e;
	font-size: 18px;
	line-height: 1.7;
	font-weight: 700;
	letter-spacing: 0;
}

.hero-chip-row {
	position: absolute;
	left: 58px;
	bottom: 58px;
	z-index: 4;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	max-width: 420px;
}

.hero-chip-row span {
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding: 0 18px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.78);
	border: 1px solid rgba(129, 167, 210, 0.2);
	color: #315f90;
	font-size: 14px;
	font-weight: 800;
	box-shadow: 0 10px 22px rgba(63, 111, 159, 0.08);
}

.login-bg-img {
	position: absolute;
	z-index: 2;
	right: -18px;
	bottom: 34px;
	width: min(62%, 650px);
	max-height: 67%;
	object-fit: contain;
	filter: drop-shadow(0 26px 44px rgba(72, 102, 145, 0.16));
}

.login-form {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 760px;
	padding: 58px 64px;
	box-sizing: border-box;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.96)),
		#fff;
}

.form-center {
	width: 100%;
	display: flex;
	justify-content: center;
	text-align: left;
}

.form-center-box {
	width: min(100%, 520px);
}

.top-log-title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-bottom: 12px;
}

.top-log {
	width: 86px;
	height: 86px;
	border-radius: 20px;
	padding: 10px;
	box-sizing: border-box;
	background: linear-gradient(145deg, #2f8be8 0%, #1f66c6 100%);
	box-shadow: 0 16px 26px rgba(35, 105, 190, 0.18);
	object-fit: contain;
}

.top-log-copy {
	min-width: 0;
	flex: 0 1 auto;
}

.top-log-title span {
	display: block;
	color: #101a34;
	font-size: clamp(22px, 2.1vw, 28px);
	line-height: 1.18;
	font-weight: 900;
	letter-spacing: 0;
	white-space: nowrap;
}

.top-log-title small {
	display: block;
	margin-top: 6px;
	color: #b5bdcb;
	font-size: 13px;
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: 0;
}

.lang-switch {
	margin: 10px auto 36px;
	display: flex;
	width: fit-content;
	align-items: center;
	gap: 0;
	padding: 4px;
	border-radius: 8px;
	background: #f1f3f8;
}

.lang-chip {
	min-width: 58px;
	height: 30px;
	border: 0;
	border-radius: 7px;
	background: transparent;
	color: #7d8798;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0;
	cursor: pointer;
	transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.lang-chip.is-active {
	background: linear-gradient(135deg, #237bd7 0%, #1d64bd 100%);
	color: #fff;
	box-shadow: 0 10px 18px rgba(35, 98, 216, 0.22);
}

.form-stack {
	margin-top: 0;
}

.layui-form-item {
	margin-bottom: 16px;
}

.layui-input-wrap {
	height: 56px;
	display: flex;
	align-items: center;
	position: relative;
	border-radius: 14px;
	border: 0;
	background: #f5f6fa;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
	overflow: hidden;
}

.layui-input-prefix {
	position: static;
	flex: 0 0 58px;
	width: 58px;
	height: 56px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #5b6577;
	text-align: center;
	box-sizing: border-box;
}

.layui-input-prefix i {
	display: block;
	font-size: 23px;
	line-height: 1;
}

.layui-input {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	height: 56px;
	line-height: 56px;
	padding: 0 18px 0 0 !important;
	box-sizing: border-box;
	border: 0;
	border-radius: 14px;
	background: transparent;
	color: #17233c;
	font-size: 15px;
}

.layui-input-affix {
	line-height: 56px;
}

.layui-input::placeholder {
	color: #b7bfce;
}

.tab-log-verification {
	width: 100%;
	display: grid;
	grid-template-columns: 1fr 122px 82px;
	gap: 12px;
	align-items: center;
	margin-bottom: 20px;
}

.verification-text {
	min-width: 0;
}

.verification-img {
	width: 122px;
	height: 56px;
	box-sizing: border-box;
	border: 0;
	border-radius: 12px;
	background: #f2f4f8;
	overflow: hidden;
	cursor: pointer;
	display: block;
	object-fit: contain;
	object-position: center;
	image-rendering: -webkit-optimize-contrast;
	image-rendering: crisp-edges;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.captcha-refresh {
	height: 56px;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: #7d8798;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
	white-space: nowrap;
}

.captcha-refresh i {
	font-size: 16px;
}

.captcha-refresh:hover,
.forgot-link:hover,
.login-footer a:hover {
	color: #0b78df;
}

.captcha-refresh:disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

.login-options {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 4px 0 26px;
	min-height: 26px;
}

.remember-cehcked {
	color: #5f6b7d;
	font-size: 14px;
}

.forgot-link {
	color: #738098;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.login-alert {
	padding: 12px 16px;
	border-radius: 12px;
	color: #fff;
	line-height: 1.7;
}

.login-btn {
	width: 100%;
	box-sizing: border-box;
}

.login-btn > .layui-btn {
	width: 100%;
	height: 58px;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(100deg, #1d86dd 0%, #2569cf 100%);
	box-shadow: 0 18px 30px rgba(34, 102, 214, 0.2);
	font-size: 18px;
	font-weight: 900;
	letter-spacing: 0;
}

.login-btn > .layui-btn:hover {
	opacity: 0.96;
}

.layui-checkbox[lay-skin=primary] span {
	color: #5f6b7d;
}

.layui-checkbox[lay-skin=primary]:hover i,
.layui-form-checked[lay-skin=primary] i {
	border-color: #0b78df !important;
}

.layui-form-checked[lay-skin=primary] i {
	background-color: #0b78df;
}

.login-footer {
	position: absolute;
	left: 50%;
	bottom: 18px;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 24px;
	color: #758197;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

.login-footer span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.login-footer a {
	color: #758197;
	text-decoration: none;
}

html[lang="en"] .login-bg-copy h1 {
	font-size: clamp(38px, 3.5vw, 48px);
}

html[lang="en"] .login-bg-copy p {
	font-size: 18px;
	line-height: 1.75;
}

@media (max-width: 1320px) {
	.login-shell {
		grid-template-columns: minmax(520px, 1fr) minmax(420px, 0.88fr);
		min-height: 700px;
	}

	.login-hero,
	.login-form {
		min-height: 700px;
	}

	.login-hero {
		padding: 44px 48px;
	}

	.login-bg-copy h1 {
		font-size: clamp(38px, 3.8vw, 50px);
	}

	.login-bg-copy p {
		font-size: 18px;
	}

	.login-bg-img {
		width: min(62%, 600px);
		right: -42px;
	}
}

@media (max-width: 1080px) {
	.login-page {
		padding: 24px 18px 62px;
	}

	.login-shell {
		grid-template-columns: 1fr;
		width: min(620px, 100%);
		min-height: auto;
	}

	.login-hero {
		display: none;
	}

	.login-form {
		min-height: auto;
		padding: 76px 42px 46px;
	}
}

@media (max-width: 768px) {
	.login-page {
		align-items: stretch;
		padding: 16px 14px 66px;
		overflow-y: auto;
	}

	.login-shell {
		border-radius: 22px;
	}

	.login-form {
		padding: 62px 22px 30px;
	}

	.top-log-title {
		justify-content: flex-start;
		gap: 14px;
	}

	.top-log {
		width: 62px;
		height: 62px;
		border-radius: 16px;
	}

	.top-log-title span {
		font-size: clamp(18px, 4vw, 23px);
	}

	.lang-switch {
		margin-bottom: 28px;
	}

	.tab-log-verification {
		grid-template-columns: 1fr 116px;
	}

	.captcha-refresh {
		grid-column: 1 / -1;
		width: 100%;
		height: 42px;
		background: #f5f6fa;
	}

	.login-footer {
		width: 100%;
		justify-content: center;
		gap: 14px;
		font-size: 12px;
	}
}

@media (max-width: 440px) {
	.login-form {
		padding-left: 16px;
		padding-right: 16px;
	}

	.top-log-title span {
		font-size: 15px;
	}

	.top-log-title {
		gap: 10px;
	}

	.top-log {
		width: 44px;
		height: 44px;
		border-radius: 12px;
		padding: 6px;
	}

	.top-log-title small {
		font-size: 12px;
	}

	.tab-log-verification {
		grid-template-columns: 1fr;
	}

	.verification-img {
		width: 100%;
	}

	.login-options {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}

	.login-footer {
		flex-wrap: wrap;
		row-gap: 6px;
	}
}
