:root {
	--bg-dark: #0a0f1a;
	--bg-card: #ffffff;
	--primary: #1a5fdc;
	--primary-dark: #1349b0;
	--primary-light: #e8f0fe;
	--accent: #f0a030;
	--accent-light: #fff8ed;
	--text-dark: #1a1a2e;
	--text-mid: #3d4f60;
	--text-light: #6b7d8e;
	--border: #e2e8f0;
	--border-focus: #1a5fdc;
	--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
	--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
	--shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
	--shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.18), 0 8px 20px rgba(0, 0, 0, 0.08);
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 18px;
	--radius-xl: 22px;
	--transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	--font-sans: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: var(--font-sans);
	background: var(--bg-dark);
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow-x: hidden;
	position: relative;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* 背景层 */
.bg-layer {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
}

.bg-gradient-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(120px);
	opacity: 0.35;
	animation: orbFloat 12s ease-in-out infinite;
}
.bg-gradient-orb.orb-1 {
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, #1a5fdc 0%, #0d3b8c 60%, transparent 100%);
	top: -15%;
	left: -10%;
	animation-delay: 0s;
	animation-duration: 14s;
}
.bg-gradient-orb.orb-2 {
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, #3b82f6 0%, #1e4fa8 55%, transparent 100%);
	bottom: -18%;
	right: -8%;
	animation-delay: -5s;
	animation-duration: 16s;
}
.bg-gradient-orb.orb-3 {
	width: 350px;
	height: 350px;
	background: radial-gradient(circle, #60a5fa 0%, #2563eb 50%, transparent 100%);
	top: 50%;
	left: 55%;
	animation-delay: -9s;
	animation-duration: 13s;
}

@keyframes orbFloat {
	0%,
	100% {
		transform: translate(0, 0) scale(1);
	}
	25% {
		transform: translate(40px, -30px) scale(1.08);
	}
	50% {
		transform: translate(-20px, 25px) scale(0.94);
	}
	75% {
		transform: translate(-35px, -15px) scale(1.04);
	}
}

.bg-grid {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
	background-size: 50px 50px;
	opacity: 0.7;
}

.particles-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
}
.particle {
	position: absolute;
	width: 3px;
	height: 3px;
	background: rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	animation: particleDrift linear infinite;
}
@keyframes particleDrift {
	0% {
		transform: translateY(0) translateX(0);
		opacity: 0;
	}
	10% {
		opacity: 0.8;
	}
	90% {
		opacity: 0.5;
	}
	100% {
		transform: translateY(-100vh) translateX(40px);
		opacity: 0;
	}
}

/* 主容器 */
.main-container {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 500px;
	padding: 20px;
}

/* 顶部导航标签（仅保留后台管理作为标题） */
.top-tabs {
	display: flex;
	gap: 0;
	margin-bottom: 18px;
	justify-content: center;
	position: relative;
}
.top-tab {
	padding: 10px 28px;
	font-size: 14px;
	font-weight: 500;
	border-radius: 25px;
	letter-spacing: 0.3px;
	user-select: none;
	color: #ffffff;
	background: rgba(26, 95, 220, 0.5);
	border: 1px solid rgba(26, 95, 220, 0.6);
	box-shadow: 0 0 20px rgba(26, 95, 220, 0.3);
	font-weight: 600;
	pointer-events: none;
	cursor: default;
}

/* 登录卡片 */
.login-card {
	background: var(--bg-card);
	border-radius: var(--radius-xl);
	padding: 40px 36px 36px;
	box-shadow: var(--shadow-xl);
	position: relative;
	overflow: hidden;
	transition: var(--transition);
}
.login-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #1a5fdc, #3b82f6, #60a5fa, #1a5fdc);
	background-size: 200% 100%;
	animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
	0%,
	100% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
}
.card-glow {
	position: absolute;
	top: -40px;
	right: -40px;
	width: 140px;
	height: 140px;
	background: radial-gradient(circle, rgba(26, 95, 220, 0.06) 0%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
}

.header-area {
	text-align: center;
	margin-bottom: 28px;
	position: relative;
}
.brand-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	background: linear-gradient(135deg, #1a5fdc, #3b82f6);
	border-radius: 14px;
	margin-bottom: 14px;
	box-shadow: 0 8px 24px rgba(26, 95, 220, 0.3);
}
.brand-icon svg {
	width: 28px;
	height: 28px;
	fill: #fff;
}
.platform-title {
	font-size: 22px;
	font-weight: 700;
	color: var(--text-dark);
	letter-spacing: 0.5px;
	margin-bottom: 4px;
	line-height: 1.3;
}
.platform-title .highlight {
	background: linear-gradient(135deg, #1a5fdc, #3b82f6);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}
.platform-subtitle {
	font-size: 13px;
	color: var(--text-light);
	font-weight: 400;
	letter-spacing: 1px;
}

.form-group {
	margin-bottom: 18px;
	position: relative;
}
.form-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--text-mid);
	margin-bottom: 6px;
	letter-spacing: 0.3px;
}
.form-label .label-icon {
	display: inline-block;
	width: 18px;
	text-align: center;
	margin-right: 4px;
	font-size: 13px;
}

.custom-select-wrapper {
	position: relative;
	width: 100%;
}
.custom-select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 100%;
	padding: 12px 40px 12px 15px;
	font-size: 14px;
	font-family: var(--font-sans);
	color: var(--text-dark);
	background: #f8fafc;
	border: 2px solid var(--border);
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: var(--transition);
	letter-spacing: 0.3px;
	outline: none;
	min-height: 46px;
	line-height: 1.4;
}
.custom-select:hover {
	border-color: #c4d5e8;
	background: #f1f5f9;
}
.custom-select:focus {
	border-color: var(--border-focus);
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(26, 95, 220, 0.1);
}
.custom-select-arrow {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	color: #8a9bb5;
	font-size: 11px;
	transition: var(--transition);
}
.custom-select:focus~.custom-select-arrow {
	color: var(--primary);
	transform: translateY(-50%) rotate(180deg);
}

.input-wrapper {
	position: relative;
}
.text-input {
	width: 100%;
	padding: 12px 15px;
	font-size: 14px;
	font-family: var(--font-sans);
	color: var(--text-dark);
	background: #f8fafc;
	border: 2px solid var(--border);
	border-radius: var(--radius-sm);
	transition: var(--transition);
	letter-spacing: 0.3px;
	outline: none;
	min-height: 46px;
	line-height: 1.4;
}
.text-input:hover {
	border-color: #c4d5e8;
	background: #f1f5f9;
}
.text-input:focus {
	border-color: var(--border-focus);
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(26, 95, 220, 0.1);
}
.text-input::placeholder {
	color: #b0bec5;
	letter-spacing: 0.2px;
}

.captcha-row {
	display: flex;
	gap: 12px;
	align-items: flex-end;
}
.captcha-row .form-group {
	flex: 1;
	margin-bottom: 0;
}
.captcha-display {
	flex-shrink: 0;
	width: 115px;
	height: 46px;
	border-radius: var(--radius-sm);
	cursor: pointer;
	border: 2px solid var(--border);
	transition: var(--transition);
	background: #f0f4f8;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
	user-select: none;
}
.captcha-display:hover {
	border-color: #c4d5e8;
	box-shadow: var(--shadow-sm);
}
.captcha-display canvas {
	display: block;
	border-radius: 4px;
}
.captcha-hint {
	position: absolute;
	bottom: 2px;
	right: 6px;
	font-size: 10px;
	color: #a0b4c8;
	pointer-events: none;
	letter-spacing: 0.5px;
}

.btn-login {
	width: 100%;
	padding: 13px 20px;
	font-size: 16px;
	font-weight: 600;
	font-family: var(--font-sans);
	letter-spacing: 0.8px;
	color: #ffffff;
	background: linear-gradient(135deg, #1a5fdc 0%, #2563eb 40%, #3b82f6 100%);
	border: none;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: var(--transition);
	box-shadow: 0 6px 20px rgba(26, 95, 220, 0.35);
	margin-top: 8px;
	position: relative;
	overflow: hidden;
	min-height: 48px;
}
.btn-login::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.25);
	transform: translate(-50%, -50%);
	transition: width 0.6s, height 0.6s;
}
.btn-login:hover {
	background: linear-gradient(135deg, #1b5ed8 0%, #1d4ed8 40%, #2563eb 100%);
	box-shadow: 0 10px 28px rgba(26, 95, 220, 0.45);
	transform: translateY(-2px);
}
.btn-login:active {
	transform: translateY(0);
	box-shadow: 0 4px 14px rgba(26, 95, 220, 0.3);
	transition: 0.1s;
}
.btn-login:active::after {
	width: 600px;
	height: 600px;
	transition: 0s;
}

/* 后台登陆按钮 (轮廓样式) */
.btn-backend-login {
	width: 100%;
	padding: 12px 20px;
	font-size: 15px;
	font-weight: 600;
	font-family: var(--font-sans);
	letter-spacing: 0.6px;
	color: var(--primary);
	background: transparent;
	border: 2px solid var(--primary);
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: var(--transition);
	margin-top: 14px;
	min-height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}
.btn-backend-login:hover {
	background: rgba(26, 95, 220, 0.05);
	border-color: #2563eb;
	color: #2563eb;
	box-shadow: 0 4px 12px rgba(26, 95, 220, 0.2);
}

/* 模态弹窗 */
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(10, 15, 26, 0.7);
	backdrop-filter: blur(8px);
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active {
	opacity: 1;
	visibility: visible;
}
.modal-dialog {
	background: #ffffff;
	border-radius: 20px;
	width: 90%;
	max-width: 420px;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
	overflow: hidden;
	transform: translateY(30px) scale(0.96);
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.active .modal-dialog {
	transform: translateY(0) scale(1);
}
.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 24px 10px;
	border-bottom: 1px solid #f0f2f5;
}
.modal-header h3 {
	font-size: 18px;
	font-weight: 700;
	color: #1a1a2e;
	letter-spacing: 0.3px;
}
.modal-close {
	font-size: 22px;
	font-weight: 300;
	color: #8a9bb5;
	cursor: pointer;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: 0.2s;
	line-height: 1;
}
.modal-close:hover {
	background: #f1f5f9;
	color: #1a1a2e;
}
.modal-body {
	padding: 20px 24px 10px;
}
.modal-body .form-group {
	margin-bottom: 16px;
}
.modal-body .captcha-row {
	display: flex;
	gap: 10px;
	align-items: flex-end;
}
.modal-body .captcha-display {
	width: 110px;
	height: 44px;
}
.modal-footer {
	padding: 10px 24px 22px;
	display: flex;
	gap: 12px;
	justify-content: flex-end;
}
.btn {
	padding: 10px 22px;
	border-radius: 25px;
	font-weight: 600;
	font-size: 14px;
	border: none;
	cursor: pointer;
	font-family: var(--font-sans);
	transition: 0.2s;
	letter-spacing: 0.4px;
}
.btn-cancel {
	background: #f1f5f9;
	color: #3d4f60;
}
.btn-cancel:hover {
	background: #e2e8f0;
}
.btn-login-modal {
	background: linear-gradient(135deg, #1a5fdc, #2563eb);
	color: #fff;
	box-shadow: 0 4px 14px rgba(26, 95, 220, 0.3);
}
.btn-login-modal:hover {
	background: linear-gradient(135deg, #1349b0, #1d4ed8);
	box-shadow: 0 6px 18px rgba(26, 95, 220, 0.4);
}

.footer-info {
	text-align: center;
	margin-top: 22px;
	color: rgba(255, 255, 255, 0.55);
	font-size: 12px;
	letter-spacing: 0.5px;
	line-height: 1.8;
}
.footer-info .footer-brand {
	font-weight: 600;
	color: rgba(255, 255, 255, 0.7);
	font-size: 13px;
	letter-spacing: 1px;
}
.footer-info .footer-divider {
	display: inline-block;
	width: 1px;
	height: 12px;
	background: rgba(255, 255, 255, 0.2);
	margin: 0 10px;
	vertical-align: middle;
}
.footer-version {
	display: inline-block;
	background: rgba(255, 255, 255, 0.08);
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 11px;
	letter-spacing: 0.8px;
	color: rgba(255, 255, 255, 0.6);
	margin-top: 6px;
}

.toast {
	position: fixed;
	top: 30px;
	left: 50%;
	transform: translateX(-50%) translateY(-120px);
	background: #1a1a2e;
	color: #fff;
	padding: 12px 24px;
	border-radius: 25px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.4px;
	z-index: 2000;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
	transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	pointer-events: none;
}
.toast.show {
	transform: translateX(-50%) translateY(0);
}
.toast.error {
	background: #dc3545;
}
.toast.success {
	background: #10b981;
}

@media (max-width: 540px) {
	.main-container {
		max-width: 100%;
		padding: 14px;
	}
	.login-card {
		padding: 28px 18px 24px;
		border-radius: var(--radius-lg);
	}
	.platform-title {
		font-size: 19px;
	}
	.brand-icon {
		width: 42px;
		height: 42px;
		border-radius: 11px;
		margin-bottom: 10px;
	}
	.brand-icon svg {
		width: 22px;
		height: 22px;
	}
	.custom-select,
	.text-input {
		padding: 10px 32px 10px 12px;
		font-size: 13px;
		min-height: 42px;
	}
	.captcha-display {
		width: 100px;
		height: 42px;
	}
	.btn-login {
		padding: 11px 16px;
		font-size: 15px;
		min-height: 44px;
	}
	.top-tab {
		padding: 8px 18px;
		font-size: 12px;
	}
	.captcha-row {
		gap: 8px;
	}
	.form-label {
		font-size: 12px;
	}
	.modal-dialog {
		max-width: 95%;
	}
}