/* ============================================================
   loginv2.css — Modern Light Login + 3D Center Scene
   浅色现代 + 中间3D旋绕 + 可见极光
   ============================================================ */

/* ---------- Reset & Base ---------- */
body.login-page {
	margin: 0;
	padding: 0;
	min-height: 100vh;
	overflow-x: hidden;
	background: #f4f6fb;
	font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
	color: #1a1a2e;
	-webkit-font-smoothing: antialiased;
}

body.login-page * {
	box-sizing: border-box;
}

/* ---------- 浅色装饰背景 ---------- */
.login-bg-layer {
	position: fixed;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
	background:
		linear-gradient(135deg, #fafbfd 0%, #f0f3f9 45%, #fce8ec 100%);
}

/* 柔和色块 */
.login-blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.7;
}

.login-blob-1 {
	width: 55vw;
	height: 55vw;
	max-width: 600px;
	max-height: 600px;
	top: -15%;
	left: -10%;
	background: radial-gradient(circle, rgba(255, 180, 190, 0.45) 0%, rgba(255, 220, 225, 0.1) 70%);
	animation: blob-float-1 14s ease-in-out infinite alternate;
}

.login-blob-2 {
	width: 45vw;
	height: 45vw;
	max-width: 500px;
	max-height: 500px;
	bottom: -10%;
	right: -5%;
	background: radial-gradient(circle, rgba(216, 39, 62, 0.12) 0%, rgba(255, 200, 210, 0.08) 70%);
	animation: blob-float-2 16s ease-in-out infinite alternate;
}

.login-blob-3 {
	display: none;
}

/* 极光 — 浅色背景下高可见度 */
.login-aurora {
	position: absolute;
	border-radius: 50%;
	filter: blur(50px);
	pointer-events: none;
}

.login-aurora-1 {
	width: 50vw;
	height: 45vh;
	top: 10%;
	left: 25%;
	background: linear-gradient(120deg,
		rgba(255, 120, 150, 0.55) 0%,
		rgba(255, 180, 200, 0.35) 45%,
		rgba(200, 220, 255, 0.2) 80%,
		transparent 100%);
	animation: aurora-flow-1 9s ease-in-out infinite alternate;
	transform: rotate(-12deg);
}

.login-aurora-2 {
	width: 40vw;
	height: 40vh;
	top: 30%;
	left: 35%;
	background: linear-gradient(160deg,
		transparent 0%,
		rgba(255, 90, 120, 0.45) 25%,
		rgba(255, 150, 170, 0.3) 55%,
		rgba(180, 200, 255, 0.2) 80%,
		transparent 100%);
	animation: aurora-flow-2 11s ease-in-out infinite alternate;
	transform: rotate(8deg);
}

.login-aurora-3 {
	width: 35vw;
	height: 50vh;
	bottom: 5%;
	left: 30%;
	background: linear-gradient(200deg,
		rgba(255, 100, 130, 0.4) 0%,
		rgba(255, 200, 210, 0.25) 50%,
		transparent 85%);
	animation: aurora-flow-3 8s ease-in-out infinite alternate;
}

@keyframes aurora-flow-1 {
	0%   { transform: rotate(-12deg) translateX(0) scaleY(1); opacity: 0.7; }
	100% { transform: rotate(-8deg) translateX(4%) scaleY(1.12); opacity: 1; }
}

@keyframes aurora-flow-2 {
	0%   { transform: rotate(8deg) translateY(0); opacity: 0.65; }
	100% { transform: rotate(12deg) translateY(-4%); opacity: 0.95; }
}

@keyframes aurora-flow-3 {
	0%   { transform: translateX(0); opacity: 0.6; }
	100% { transform: translateX(-5%); opacity: 0.9; }
}

/* 星空点缀 */
.login-stars {
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(2px 2px at 15% 20%, rgba(216, 39, 62, 0.35) 0%, transparent 100%),
		radial-gradient(1.5px 1.5px at 30% 55%, rgba(100, 130, 200, 0.3) 0%, transparent 100%),
		radial-gradient(2px 2px at 50% 15%, rgba(216, 39, 62, 0.25) 0%, transparent 100%),
		radial-gradient(1.5px 1.5px at 65% 40%, rgba(150, 170, 220, 0.35) 0%, transparent 100%),
		radial-gradient(2px 2px at 80% 65%, rgba(216, 39, 62, 0.2) 0%, transparent 100%),
		radial-gradient(1.5px 1.5px at 42% 78%, rgba(100, 130, 200, 0.25) 0%, transparent 100%),
		radial-gradient(2px 2px at 72% 22%, rgba(255, 150, 170, 0.4) 0%, transparent 100%),
		radial-gradient(1.5px 1.5px at 88% 45%, rgba(216, 39, 62, 0.2) 0%, transparent 100%);
	animation: stars-pulse 5s ease-in-out infinite alternate;
}

@keyframes stars-pulse {
	0%   { opacity: 0.6; }
	100% { opacity: 1; }
}

/* 旧装饰圆环隐藏 */
.login-ring,
.login-dots {
	display: none;
}

/* ---------- 主布局 ---------- */
.login-universe {
	position: relative;
	z-index: 1;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

@keyframes blob-float-1 {
	0%   { transform: translate(0, 0) scale(1); }
	100% { transform: translate(3%, 5%) scale(1.06); }
}

@keyframes blob-float-2 {
	0%   { transform: translate(0, 0) scale(1); }
	100% { transform: translate(-4%, -3%) scale(1.08); }
}

.login-layout {
	flex: 1;
	display: flex;
	align-items: stretch;
	min-height: calc(100vh - 50px);
}

/* ---------- 中间 3D 场景 ---------- */
.login-center-scene {
	flex: 1;
	min-width: 280px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
	padding: 20px 10px;
}

.login-3d-stage {
	width: 100%;
	max-width: 420px;
	height: 420px;
	display: flex;
	align-items: center;
	justify-content: center;
	perspective: 900px;
	perspective-origin: 50% 50%;
}

.login-orbit-system {
	position: relative;
	width: 300px;
	height: 300px;
	transform-style: preserve-3d;
	animation: system-tilt 16s ease-in-out infinite alternate;
}

@keyframes system-tilt {
	0%   { transform: rotateX(8deg) rotateY(-12deg); }
	100% { transform: rotateX(12deg) rotateY(18deg); }
}

/* 核心光球 */
.login-core-glow {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 140px;
	height: 140px;
	margin: -70px 0 0 -70px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 150, 170, 0.5) 0%, rgba(216, 39, 62, 0.15) 60%, transparent 75%);
	animation: core-pulse 4s ease-in-out infinite alternate;
}

.login-core-sphere {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 56px;
	height: 56px;
	margin: -28px 0 0 -28px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #ff8fa3 0%, #d8273e 50%, #a01830 100%);
	box-shadow:
		0 0 30px rgba(216, 39, 62, 0.5),
		0 0 60px rgba(255, 120, 150, 0.3),
		inset -4px -4px 12px rgba(0, 0, 0, 0.15);
	animation: core-spin 12s linear infinite;
}

@keyframes core-pulse {
	0%   { transform: scale(1); opacity: 0.7; }
	100% { transform: scale(1.15); opacity: 1; }
}

@keyframes core-spin {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}

/* 轨道环 */
.login-orbit-wrap {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	transform-style: preserve-3d;
}

.login-orbit-ring {
	position: absolute;
	top: 50%;
	left: 50%;
	border-radius: 50%;
	border: 2px solid transparent;
	transform-style: preserve-3d;
}

.login-orbit-wrap-1 {
	animation: orbit-spin-y 14s linear infinite;
}

.login-orbit-wrap-1 .login-orbit-ring {
	width: 220px;
	height: 220px;
	margin: -110px 0 0 -110px;
	border-color: rgba(216, 39, 62, 0.35);
	box-shadow: 0 0 12px rgba(216, 39, 62, 0.15);
	transform: rotateX(72deg);
}

.login-orbit-wrap-1 .login-orbit-node {
	width: 12px;
	height: 12px;
	margin: -110px 0 0 -6px;
	background: #d8273e;
	box-shadow: 0 0 10px rgba(216, 39, 62, 0.6);
	transform: rotateX(72deg) translateY(-110px);
}

.login-orbit-wrap-2 {
	animation: orbit-spin-y 10s linear infinite reverse;
}

.login-orbit-wrap-2 .login-orbit-ring {
	width: 170px;
	height: 170px;
	margin: -85px 0 0 -85px;
	border-color: rgba(255, 120, 150, 0.4);
	box-shadow: 0 0 10px rgba(255, 120, 150, 0.2);
	transform: rotateX(55deg) rotateY(45deg);
}

.login-orbit-wrap-2 .login-orbit-node {
	width: 10px;
	height: 10px;
	margin: -85px 0 0 -5px;
	background: #ff6b8a;
	box-shadow: 0 0 8px rgba(255, 107, 138, 0.6);
	transform: rotateX(55deg) rotateY(45deg) translateY(-85px);
}

.login-orbit-wrap-3 {
	animation: orbit-spin-z 18s linear infinite;
}

.login-orbit-wrap-3 .login-orbit-ring {
	width: 270px;
	height: 270px;
	margin: -135px 0 0 -135px;
	border: 1px dashed rgba(100, 130, 200, 0.3);
	transform: rotateX(85deg);
}

.login-orbit-wrap-3 .login-orbit-node {
	width: 8px;
	height: 8px;
	margin: -135px 0 0 -4px;
	background: #8ba4e8;
	box-shadow: 0 0 8px rgba(139, 164, 232, 0.5);
	transform: rotateX(85deg) translateY(-135px);
}

.login-orbit-node {
	position: absolute;
	top: 50%;
	left: 50%;
	border-radius: 50%;
	transform-style: preserve-3d;
}

@keyframes orbit-spin-y {
	from { transform: rotateY(0deg); }
	to   { transform: rotateY(360deg); }
}

@keyframes orbit-spin-z {
	from { transform: rotateZ(0deg); }
	to   { transform: rotateZ(360deg); }
}

/* 浮动立方体 */
.login-float-cube {
	position: absolute;
	border: 1.5px solid rgba(216, 39, 62, 0.4);
	background: rgba(255, 255, 255, 0.5);
	backdrop-filter: blur(4px);
	transform-style: preserve-3d;
	animation: cube-orbit ease-in-out infinite;
}

.login-float-cube-1 {
	width: 22px;
	height: 22px;
	top: 5%;
	right: 10%;
	animation-duration: 7s;
}

.login-float-cube-2 {
	width: 16px;
	height: 16px;
	bottom: 15%;
	left: 8%;
	animation-duration: 9s;
	animation-delay: -3s;
	border-color: rgba(100, 130, 200, 0.4);
}

.login-float-cube-3 {
	width: 14px;
	height: 14px;
	top: 20%;
	left: 5%;
	animation-duration: 8s;
	animation-delay: -1s;
}

.login-float-cube-4 {
	width: 18px;
	height: 18px;
	bottom: 8%;
	right: 15%;
	animation-duration: 10s;
	animation-delay: -5s;
	border-color: rgba(255, 120, 150, 0.5);
}

@keyframes cube-orbit {
	0%, 100% {
		transform: translateY(0) rotate(45deg) rotateX(0deg);
		opacity: 0.6;
	}
	50% {
		transform: translateY(-24px) rotate(90deg) rotateX(180deg);
		opacity: 1;
	}
}

/* 中间标签 */
.login-center-label {
	text-align: center;
	margin-top: 8px;
	animation: showcase-enter 1s ease-out 0.4s both;
}

.login-center-tag {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 20px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 3px;
	color: #d8273e;
	background: rgba(255, 255, 255, 0.8);
	border: 1px solid rgba(216, 39, 62, 0.15);
	box-shadow: 0 2px 12px rgba(216, 39, 62, 0.08);
}

.login-center-label p {
	margin: 10px 0 0;
	font-size: 13px;
	color: #9ca3af;
	letter-spacing: 2px;
}

/* ---------- 左侧展示区 ---------- */
.login-showcase {
	flex: 0 1 480px;
	max-width: 520px;
	display: flex;
	align-items: center;
	padding: 60px 50px 60px 70px;
	position: relative;
}

.login-showcase-inner {
	max-width: 560px;
	animation: showcase-enter 0.8s ease-out both;
}

@keyframes showcase-enter {
	from { opacity: 0; transform: translateX(-20px); }
	to   { opacity: 1; transform: translateX(0); }
}

.login-showcase-logo {
	display: inline-block;
	margin-bottom: 28px;
}

.login-showcase-logo img {
	max-height: 48px;
	width: auto;
}

.login-showcase-tag {
	display: inline-block;
	padding: 5px 16px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 2px;
	color: #d8273e;
	margin-bottom: 20px;
	background: rgba(216, 39, 62, 0.08);
}

.login-showcase-title {
	font-size: 40px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 16px;
	color: #1a1a2e;
	letter-spacing: -0.5px;
}

.login-showcase-title em {
	font-style: normal;
	color: #d8273e;
}

.login-showcase-desc {
	font-size: 15px;
	line-height: 1.8;
	color: #6b7280;
	margin: 0 0 36px;
	max-width: 440px;
}

/* 功能列表 — 卡片式 */
.login-feature-list {
	list-style: none;
	margin: 0 0 36px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.login-feature-list li {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 18px 20px;
	background: rgba(255, 255, 255, 0.75);
	border: 1px solid rgba(0, 0, 0, 0.04);
	border-radius: 14px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
	transition: transform 0.25s, box-shadow 0.25s;
}

.login-feature-list li:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.login-feature-icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	border-radius: 10px;
	background: linear-gradient(135deg, #e8455c, #d8273e);
	box-shadow: 0 4px 12px rgba(216, 39, 62, 0.25);
}

.login-feature-list li strong {
	display: block;
	font-size: 15px;
	color: #1a1a2e;
	margin-bottom: 4px;
	font-weight: 600;
}

.login-feature-list li p {
	margin: 0;
	font-size: 13px;
	color: #9ca3af;
	line-height: 1.5;
}

/* 数据统计 */
.login-stats {
	display: flex;
	gap: 24px;
}

.login-stat-item {
	flex: 1;
	text-align: center;
	padding: 20px 16px;
	background: rgba(255, 255, 255, 0.7);
	border-radius: 14px;
	border: 1px solid rgba(0, 0, 0, 0.04);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.login-stat-num {
	display: block;
	font-size: 24px;
	font-weight: 700;
	color: #d8273e;
	margin-bottom: 4px;
}

.login-stat-label {
	font-size: 12px;
	color: #9ca3af;
}

/* ---------- 右侧表单区 ---------- */
.login-form-panel {
	width: 460px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 50px 40px 20px;
}

.login-card-scene {
	width: 100%;
	max-width: 400px;
	animation: card-enter 0.8s ease-out 0.15s both;
}

@keyframes card-enter {
	from { opacity: 0; transform: translateY(24px); }
	to   { opacity: 1; transform: translateY(0); }
}

.login-card {
	position: relative;
}

.login-card-glow {
	display: none;
}

.login-card-face {
	position: relative;
	padding: 40px 36px 36px;
	border-radius: 20px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.05);
	box-shadow:
		0 4px 6px rgba(0, 0, 0, 0.02),
		0 20px 50px rgba(0, 0, 0, 0.06);
}

.login-card-header {
	text-align: center;
	margin-bottom: 32px;
}

.login-card-tag {
	display: inline-block;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 2px;
	color: #d8273e;
	margin-bottom: 10px;
}

.login-card-title {
	font-size: 26px;
	font-weight: 700;
	margin: 0 0 8px;
	color: #1a1a2e;
}

.login-card-desc {
	font-size: 14px;
	color: #9ca3af;
	margin: 0;
}

/* ---------- 表单元素 ---------- */
.login-form {
	margin: 0;
}

.login-field {
	margin-bottom: 20px;
}

.login-field-label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: #374151;
	margin-bottom: 8px;
}

.login-field-box {
	display: flex;
	align-items: center;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 0 14px 0 12px;
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.login-field-box:focus-within {
	border-color: #d8273e;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(216, 39, 62, 0.1);
}

.login-field-box:focus-within .login-field-icon {
	color: #d8273e;
	background: rgba(216, 39, 62, 0.1);
}

.login-field-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin-right: 10px;
	border-radius: 8px;
	color: #9ca3af;
	background: rgba(0, 0, 0, 0.03);
	transition: color 0.2s, background 0.2s;
}

.login-field-icon svg {
	width: 18px;
	height: 18px;
	display: block;
}

.login-input {
	flex: 1;
	background: transparent;
	border: none;
	outline: none;
	color: #1a1a2e;
	font-size: 14px;
	padding: 13px 0;
	font-family: inherit;
}

.login-input::placeholder {
	color: #c4c9d4;
}

.login-field-code {
	gap: 10px;
}

.login-input-code {
	flex: 1;
	min-width: 0;
}

.login-authcode {
	height: 38px;
	border-radius: 8px;
	cursor: pointer;
	flex-shrink: 0;
	border: 1px solid #e5e7eb;
}

/* 选项行 */
.login-options {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
	font-size: 13px;
}

.login-remember {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #6b7280;
	cursor: pointer;
}

.login-remember input[type="checkbox"] {
	accent-color: #d8273e;
	width: 16px;
	height: 16px;
}

.login-forget {
	color: #d8273e;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s;
}

.login-forget:hover {
	color: #b81e34;
}

/* 提交按钮 */
.login-submit {
	position: relative;
	width: 100%;
	padding: 14px;
	border: none;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	cursor: pointer;
	overflow: hidden;
	background: linear-gradient(135deg, #e8455c 0%, #d8273e 100%);
	box-shadow: 0 4px 16px rgba(216, 39, 62, 0.3);
	transition: transform 0.2s, box-shadow 0.2s;
	font-family: inherit;
}

.login-submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 24px rgba(216, 39, 62, 0.35);
}

.login-submit:active {
	transform: translateY(0);
}

.login-submit-text {
	position: relative;
	z-index: 1;
}

.login-submit-shine {
	display: none;
}

/* 注册链接 */
.login-register {
	text-align: center;
	margin-top: 20px;
	font-size: 14px;
	color: #9ca3af;
}

.login-register a {
	color: #d8273e;
	text-decoration: none;
	font-weight: 600;
	margin-left: 4px;
}

.login-register a:hover {
	text-decoration: underline;
}

/* 社交登录 */
.login-social {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 24px 0 16px;
}

.login-social-line {
	flex: 1;
	height: 1px;
	background: #e5e7eb;
}

.login-social-text {
	font-size: 12px;
	color: #c4c9d4;
	white-space: nowrap;
}

.login-social-btns {
	display: flex;
	justify-content: center;
	gap: 16px;
}

.login-social-btn img {
	height: 36px;
	border-radius: 8px;
	transition: transform 0.2s, opacity 0.2s;
	opacity: 0.9;
	border: 1px solid #e5e7eb;
}

.login-social-btn:hover img {
	transform: scale(1.05);
	opacity: 1;
}

/* ---------- 页脚 ---------- */
.login-footer {
	text-align: center;
	padding: 16px;
	font-size: 12px;
	color: #9ca3af;
	position: relative;
	z-index: 1;
}

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

.login-footer a:hover {
	text-decoration: underline;
}

.login-footer-sep {
	margin: 0 10px;
	opacity: 0.5;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
	.login-showcase {
		flex: 0 1 400px;
		max-width: 420px;
		padding: 50px 30px 50px 40px;
	}

	.login-3d-stage {
		max-width: 340px;
		height: 360px;
	}

	.login-orbit-system {
		width: 260px;
		height: 260px;
	}
}

@media (max-width: 960px) {
	.login-layout {
		flex-direction: column;
		min-height: auto;
	}

	.login-center-scene {
		order: 2;
		min-height: 360px;
		padding: 10px 20px 20px;
	}

	.login-3d-stage {
		max-width: 320px;
		height: 320px;
	}

	.login-showcase {
		order: 1;
		flex: none;
		max-width: 100%;
		padding: 40px 30px 10px;
		justify-content: center;
		text-align: center;
	}

	.login-form-panel {
		order: 3;
		width: 100%;
		padding: 10px 24px 40px;
	}

	.login-showcase-inner {
		max-width: 100%;
	}

	.login-showcase-desc {
		max-width: 100%;
	}

	.login-feature-list li {
		text-align: left;
	}

	.login-stats {
		justify-content: center;
	}

	.login-aurora-1 { left: 10%; }
	.login-aurora-2 { left: 20%; }
}

@media (max-width: 480px) {
	.login-showcase-title {
		font-size: 28px;
	}

	.login-card-face {
		padding: 32px 24px 28px;
	}

	.login-stats {
		gap: 12px;
	}

	.login-stat-num {
		font-size: 20px;
	}

	.login-stat-item {
		padding: 16px 10px;
	}
}
