@import url("css.css");

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; border: 0; vertical-align: baseline; }
html { box-sizing: border-box; font-size: 16px; }
body {
	color: #ffffff;
	font-family: "Source Sans Pro", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
	font-weight: 300;
	font-size: 1rem;
	line-height: 1.65;
	background: #1b1f22;
	-webkit-text-size-adjust: none;
}
input, button { font-family: inherit; outline: none; }
a { text-decoration: none; color: inherit; }

/* ===== 响应式根字号 ===== */
@media screen and (max-width: 480px) { html, body { min-width: 320px; } }

/* ===== 入场前禁用动画 ===== */
body.is-preload *, body.is-preload *::before, body.is-preload *::after {
	animation: none !important;
	transition: none !important;
}

/* ===== Wrapper: 居中 ===== */
#wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	width: 100%;
	padding: 1rem;
	position: relative;
	z-index: 3;
}

/* ===== 登录卡片 (强毛玻璃) ===== */
#login-card {
	width: 100%;
	max-width: 420px;
	background: rgba(255, 255, 255, 0.09);
	-webkit-backdrop-filter: blur(22px) saturate(160%);
	backdrop-filter: blur(22px) saturate(160%);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 10px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
	padding: 28px 28px 20px;
	color: #1f2d3d;
	text-align: left;
	transition: opacity 0.325s ease-in-out, transform 0.325s ease-in-out, filter 0.325s ease-in-out;
}
	body.is-preload #login-card { filter: blur(0.125rem); opacity: 0; transform: translateY(8px); }

	#login-card h2 {
		font-size: 20px;
		font-weight: 600;
		color: #ffffff;
		margin: 0 0 22px;
		letter-spacing: 1px;
		text-shadow: 0 1px 4px rgba(0,0,0,0.25);
	}

	/* 输入行 */
	.field {
		display: flex;
		align-items: center;
		margin-bottom: 14px;
		background: rgba(255, 255, 255, 0.15);
		border: 1px solid rgba(255, 255, 255, 0.25);
		border-radius: 4px;
		overflow: hidden;
	}
		.field-icon {
			flex: 0 0 42px;
			align-self: stretch;
			display: flex;
			align-items: center;
			justify-content: center;
			background: rgba(255, 255, 255, 0.25);
			color: #ffffff;
		}
			.field-icon svg { width: 18px; height: 18px; fill: currentColor; }
		.field input {
			flex: 1;
			min-width: 0;
			height: 42px;
			padding: 0 12px;
			background: transparent;
			font-size: 14px;
			color: #ffffff;
		}
			.field input::placeholder { color: rgba(255, 255, 255, 0.75); }
			.field input:focus { background: rgba(255, 255, 255, 0.12); }

	/* 验证码行 */
	.field-row { display: flex; gap: 10px; align-items: stretch; margin-bottom: 14px; }
		.field-row .field { flex: 1; margin-bottom: 0; }
		#captcha {
			flex: 0 0 110px;
			height: 42px;
			background: rgba(255, 255, 255, 0.9);
			border-radius: 4px;
			cursor: pointer;
			border: 1px solid rgba(255, 255, 255, 0.4);
		}

	/* 记住账号 */
	.remember {
		display: flex;
		justify-content: flex-end;
		align-items: center;
		font-size: 13px;
		color: rgba(255, 255, 255, 0.9);
		margin: 6px 0 16px;
		cursor: pointer;
	}
		.remember input { margin-right: 6px; accent-color: #2196f3; }

	/* 登录按钮 */
	#login-btn {
		width: 100%;
		height: 44px;
		border: 0;
		border-radius: 4px;
		background: #2196f3;
		color: #ffffff;
		font-size: 16px;
		font-weight: 600;
		letter-spacing: 4px;
		cursor: pointer;
		transition: background 0.2s ease-in-out;
	}
		#login-btn:hover { background: #1e88e5; }
		#login-btn:active { background: #1976d2; }

	/* 版权 */
	#login-card .copy {
		margin: 18px 0 0;
		text-align: center;
		font-size: 12px;
		color: rgba(255, 255, 255, 0.75);
	}
