/* login-nova: 登录页 — 浅绿到浅蓝渐变背景 + 高对比正文与磨砂卡片 */

:root {
	--ln-bg-mint: #8ad4a4;
	--ln-bg-sky: #59cee8;
	--ln-ink: #14324a;
	--ln-ink-muted: rgba(20, 50, 74, 0.72);
	--ln-ink-soft: rgba(20, 50, 74, 0.52);
}

html {
	scroll-behavior: smooth;
}

body.login-nova-page {
	margin: 0;
	min-height: 100vh;
	overflow-x: hidden;
	background: linear-gradient(142deg, var(--ln-bg-mint) 0%, var(--ln-bg-sky) 100%);
	color: var(--ln-ink);
	font-family: ui-sans-serif, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	-webkit-font-smoothing: antialiased;
}

body.login-nova-page::before,
body.login-nova-page::after {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

/* 柔光高光层，让渐变更有层次 */
body.login-nova-page::before {
	background:
		radial-gradient(ellipse 85% 65% at 14% 20%, rgba(255, 255, 255, 0.42), transparent 58%),
		radial-gradient(ellipse 70% 55% at 86% 78%, rgba(255, 255, 255, 0.28), transparent 52%),
		linear-gradient(142deg, var(--ln-bg-mint) 0%, var(--ln-bg-sky) 100%);
}

body.login-nova-page::after {
	opacity: 0.35;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
	mix-blend-mode: soft-light;
}

.ln-clear {
	clear: both;
}

/* 主栅格 */
.ln-shell {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(320px, 440px);
	gap: clamp(24px, 4vw, 56px);
	align-items: stretch;
	min-height: calc(100vh - 140px);
	max-width: 1280px;
	margin: 0 auto;
	padding: clamp(20px, 4vw, 48px) clamp(18px, 3vw, 40px) 56px;
	box-sizing: border-box;
}

.ln-aside {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(12px, 2vw, 28px) 0;
}

.ln-aside::before {
	content: "";
	position: absolute;
	left: -12px;
	top: 12%;
	bottom: 12%;
	width: 3px;
	border-radius: 999px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.95), rgba(20, 90, 100, 0.35));
	opacity: 0.95;
}

.ln-kicker {
	margin: 0 0 12px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.38em;
	text-transform: uppercase;
	color: rgba(20, 50, 74, 0.48);
}

.ln-title {
	margin: 0 0 18px;
	font-size: clamp(2.1rem, 4.2vw, 3.25rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.03em;
	background: linear-gradient(118deg, #0d3d38 8%, #145a7a 55%, #0a5c52 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.ln-desc {
	margin: 0 0 28px;
	max-width: 34em;
	font-size: 15px;
	line-height: 1.75;
	color: var(--ln-ink-muted);
}

.ln-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}

.ln-stats li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	color: var(--ln-ink);
	background: rgba(255, 255, 255, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.75);
	backdrop-filter: blur(10px);
	box-shadow: 0 4px 18px rgba(20, 50, 74, 0.08);
}

.ln-stats li::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: linear-gradient(135deg, #2a9d8f, #2180a8);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.ln-rail-text {
	position: relative;
	margin-top: auto;
	padding-top: 36px;
	overflow: hidden;
	font-size: clamp(3.5rem, 12vw, 7rem);
	font-weight: 900;
	line-height: 0.85;
	letter-spacing: -0.06em;
	color: rgba(20, 50, 74, 0.07);
	user-select: none;
	pointer-events: none;
	white-space: nowrap;
}

.ln-rail-text span {
	display: inline-block;
	animation: ln-drift 22s linear infinite;
}

@keyframes ln-drift {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

.ln-panel {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px 0 24px;
}

.ln-card {
	position: relative;
	width: 100%;
	max-width: 420px;
	padding: clamp(26px, 4vw, 36px);
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid rgba(255, 255, 255, 0.95);
	box-shadow:
		0 24px 60px rgba(20, 50, 74, 0.14),
		0 0 0 1px rgba(89, 206, 232, 0.18) inset,
		0 1px 0 rgba(255, 255, 255, 0.9) inset;
	backdrop-filter: blur(18px);
	transform: rotate(-1.2deg);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.ln-card:hover {
	transform: rotate(0deg) translateY(-2px);
	box-shadow:
		0 32px 72px rgba(20, 50, 74, 0.18),
		0 0 0 1px rgba(138, 212, 164, 0.35) inset;
}

.ln-card::after {
	content: "";
	position: absolute;
	inset: -1px;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(135deg, rgba(89, 206, 232, 0.55), rgba(138, 212, 164, 0.45), transparent 62%);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
	opacity: 0.75;
}

.ln-card-head {
	margin-bottom: 22px;
}

.ln-card-head h2 {
	margin: 0 0 8px;
	font-size: 1.45rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--ln-ink);
}

.ln-card-head p {
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
	color: var(--ln-ink-soft);
}

.ln-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.ln-field label {
	display: block;
	margin-bottom: 7px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(20, 50, 74, 0.45);
}

.ln-field input[type="text"],
.ln-field input[type="password"] {
	width: 100%;
	box-sizing: border-box;
	padding: 14px 16px;
	font-size: 15px;
	color: var(--ln-ink);
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(20, 50, 74, 0.12);
	border-radius: 14px;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.ln-field input::placeholder {
	color: rgba(20, 50, 74, 0.38);
}

.ln-field input:focus {
	border-color: rgba(89, 206, 232, 0.85);
	box-shadow: 0 0 0 3px rgba(89, 206, 232, 0.22);
	background: #fff;
}

.ln-captcha {
	display: flex;
	align-items: stretch;
	gap: 10px;
}

.ln-captcha input {
	flex: 1;
	min-width: 0;
}

.ln-captcha img.authcode {
	width: 160px;
	height: 46px;
	object-fit: cover;
	border-radius: 12px;
	cursor: pointer;
	border: 1px solid rgba(20, 50, 74, 0.12);
	background: rgba(255, 255, 255, 0.9);
	flex-shrink: 0;
}

.ln-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 2px;
}

.ln-meta .ln-remember {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--ln-ink-muted);
	cursor: pointer;
	user-select: none;
}

.ln-meta .ln-remember input {
	width: 16px;
	height: 16px;
	accent-color: #2180a8;
	cursor: pointer;
}

.ln-meta a.ln-forgot {
	font-size: 13px;
	font-weight: 600;
	color: #1a6b8c;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color 0.2s, border-color 0.2s;
}

.ln-meta a.ln-forgot:hover {
	color: #0d4d66;
	border-bottom-color: rgba(13, 77, 102, 0.45);
}

.ln-submit-wrap {
	margin-top: 6px;
}

.ln-submit {
	width: 100%;
	padding: 15px 20px;
	border: none;
	border-radius: 14px;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: #0c2a32;
	cursor: pointer;
	background: linear-gradient(105deg, var(--ln-bg-mint) 0%, var(--ln-bg-sky) 100%);
	box-shadow: 0 14px 36px rgba(20, 90, 110, 0.28);
	transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.ln-submit:hover {
	transform: translateY(-1px);
	filter: brightness(1.03);
	box-shadow: 0 18px 44px rgba(20, 90, 110, 0.34);
}

.ln-submit:active {
	transform: translateY(0);
}

.ln-register {
	margin-top: 18px;
	text-align: center;
	font-size: 13px;
	color: var(--ln-ink-soft);
}

.ln-register a {
	margin-left: 6px;
	font-weight: 700;
	color: #0d5c52;
	text-decoration: none;
	border-bottom: 1px solid rgba(13, 92, 82, 0.35);
}

.ln-register a:hover {
	color: #094038;
	border-bottom-color: rgba(9, 64, 56, 0.55);
}

.ln-third {
	margin-top: 22px;
	padding-top: 22px;
	border-top: 1px solid rgba(20, 50, 74, 0.1);
}

.ln-third-title {
	position: relative;
	text-align: center;
	margin-bottom: 14px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: rgba(20, 50, 74, 0.38);
}

.ln-third-title::before,
.ln-third-title::after {
	content: "";
	position: absolute;
	top: 50%;
	width: calc(50% - 72px);
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(20, 50, 74, 0.14));
}

.ln-third-title::before {
	left: 0;
}

.ln-third-title::after {
	right: 0;
	transform: scaleX(-1);
}

.ln-third-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.ln-third-btns a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 18px;
	border-radius: 12px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	color: var(--ln-ink);
	border: 1px solid rgba(20, 50, 74, 0.12);
	background: rgba(255, 255, 255, 0.65);
	transition: background 0.2s, transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.ln-third-btns a:hover {
	background: rgba(255, 255, 255, 0.92);
	transform: translateY(-1px);
	border-color: rgba(89, 206, 232, 0.45);
	box-shadow: 0 8px 22px rgba(20, 50, 74, 0.1);
}

.ln-third-btns a.ln-qq {
	border-color: rgba(36, 173, 255, 0.35);
}

.ln-third-btns a.ln-wx {
	border-color: rgba(7, 193, 96, 0.4);
}

.ln-third-btns .third-icon {
	width: 18px;
	height: 18px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.ln-third-btns .qq-icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2324adff'%3E%3Cpath d='M12 2C6.48 2 2 6.15 2 10.5c0 2.5 1.5 4.5 3.5 5.5-.2 1.1-.7 2.8-2.2 3.5 0 0 2.1.2 4.2-1.8 1 .3 2.1.5 3.5.5 5.52 0 10-4.15 10-8.5S17.52 2 12 2z'/%3E%3C/svg%3E");
}

.ln-third-btns .wechat-icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2307c160'%3E%3Cpath d='M8.5 9.5a1.2 1.2 0 110-2.4 1.2 1.2 0 010 2.4zm5.5 0a1.2 1.2 0 110-2.4 1.2 1.2 0 010 2.4z'/%3E%3Cpath d='M12 2C6.9 2 2.5 5.5 2.5 9.8c0 2.2 1.3 4.1 3.3 5.2-.1.6-.4 1.8-1.3 2.3 0 0 1.8.1 3.6-1.2.8.2 1.6.3 2.4.3 5.1 0 9.5-3.5 9.5-7.8S17.1 2 12 2z'/%3E%3C/svg%3E");
}

@media (max-width: 960px) {
	.ln-shell {
		grid-template-columns: 1fr;
		min-height: auto;
	}

	.ln-aside::before {
		display: none;
	}

	.ln-aside {
		padding-bottom: 0;
		text-align: center;
	}

	.ln-desc {
		margin-left: auto;
		margin-right: auto;
	}

	.ln-stats {
		justify-content: center;
	}

	.ln-rail-text {
		display: none;
	}

	.ln-panel {
		padding-top: 8px;
	}

	.ln-card {
		transform: none;
		max-width: 480px;
		margin: 0 auto;
	}

	.ln-card:hover {
		transform: translateY(-2px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ln-rail-text span {
		animation: none;
	}

	.ln-card {
		transition: none;
	}
}
