/*
	不弃网页登录 · 首页样式
	现代深色渐变 + 极光光效 + 玻璃拟态
*/

/* ---------- Reset & Base ---------- */
html, body {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
	background: linear-gradient(160deg, #0b1026 0%, #151b3d 45%, #1d1440 100%);
	background-attachment: fixed;
	color: #fff;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

a {
	color: inherit;
	text-decoration: none;
}

/* ---------- 极光背景 ---------- */
.aurora {
	position: fixed;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

.blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	opacity: 0.55;
	will-change: transform;
}

.blob-a {
	width: 46vmax;
	height: 46vmax;
	top: -12vmax;
	left: -8vmax;
	background: radial-gradient(circle, rgba(99,102,241,.85), transparent 65%);
	animation: drift-a 26s ease-in-out infinite alternate;
}

.blob-b {
	width: 40vmax;
	height: 40vmax;
	bottom: -14vmax;
	right: -6vmax;
	background: radial-gradient(circle, rgba(168,85,247,.7), transparent 65%);
	animation: drift-b 32s ease-in-out infinite alternate;
}

.blob-c {
	width: 34vmax;
	height: 34vmax;
	top: 34%;
	left: 48%;
	background: radial-gradient(circle, rgba(34,211,238,.5), transparent 65%);
	animation: drift-c 22s ease-in-out infinite alternate;
}

@keyframes drift-a {
	0%   { transform: translate(0, 0) scale(1); }
	50%  { transform: translate(9vmax, 7vmax) scale(1.15); }
	100% { transform: translate(3vmax, 12vmax) scale(0.95); }
}

@keyframes drift-b {
	0%   { transform: translate(0, 0) scale(1); }
	50%  { transform: translate(-10vmax, -6vmax) scale(1.12); }
	100% { transform: translate(-4vmax, -10vmax) scale(0.9); }
}

@keyframes drift-c {
	0%   { transform: translate(0, 0) scale(1); }
	50%  { transform: translate(-8vmax, 5vmax) scale(1.2); }
	100% { transform: translate(6vmax, -4vmax) scale(0.92); }
}

.grid-fade {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse 90% 70% at 50% 45%, #000 20%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 45%, #000 20%, transparent 75%);
}

/* ---------- 星尘粒子 ---------- */
#stardust {
	position: fixed;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

/* ---------- 主卡片 ---------- */
#wrapper {
	position: relative;
	z-index: 2;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 6vh 20px 110px;
	box-sizing: border-box;
}

#hero {
	width: 100%;
	display: flex;
	justify-content: center;
}

.card-glass {
	position: relative;
	width: 100%;
	max-width: 460px;
	padding: 56px 40px 48px;
	box-sizing: border-box;
	text-align: center;
	border-radius: 28px;
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.14);
	backdrop-filter: blur(22px) saturate(150%);
	-webkit-backdrop-filter: blur(22px) saturate(150%);
	box-shadow:
		0 30px 80px rgba(2,6,32,.55),
		inset 0 1px 0 rgba(255,255,255,.12);
	overflow: hidden;
}

/* 卡片顶部流光 */
.shine {
	position: absolute;
	top: -40%;
	left: -20%;
	width: 140%;
	height: 90%;
	background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.14) 45%, transparent 60%);
	transform: rotate(4deg);
	animation: shine-move 7s ease-in-out infinite;
	pointer-events: none;
}

@keyframes shine-move {
	0%, 55%, 100% { transform: translateX(-22%) rotate(4deg); }
	70%          { transform: translateX(22%) rotate(4deg); }
}

/* ---------- Logo ---------- */
.icon {
	margin-bottom: 26px;
}

.logo {
	width: 92px;
	height: 92px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid rgba(255,255,255,.28);
	box-shadow:
		0 0 0 8px rgba(255,255,255,.06),
		0 0 42px rgba(129,140,248,.55);
	display: inline-block;
}

/* ---------- 标题 ---------- */
.site-name {
	margin: 0 0 14px;
	font-size: 34px;
	font-weight: 700;
	letter-spacing: 2px;
	line-height: 1.3;
	background: linear-gradient(100deg, #e9ecff 0%, #c7d2fe 45%, #c4b5fd 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	text-shadow: 0 4px 30px rgba(129,140,248,.35);
}

.slogan {
	margin: 0 0 34px;
	font-size: 15px;
	letter-spacing: 1px;
	color: rgba(255,255,255,.72);
}

/* ---------- 按钮 ---------- */
.actions {
	display: flex;
	justify-content: center;
	gap: 18px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 128px;
	height: 46px;
	padding: 0 26px;
	border-radius: 999px;
	font-size: 15px;
	letter-spacing: 2px;
	transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease;
	user-select: none;
}

.btn-login {
	color: #fff;
	background: linear-gradient(120deg, #6366f1 0%, #8b5cf6 55%, #a855f7 100%);
	box-shadow: 0 10px 30px rgba(99,102,241,.42);
}

.btn-login:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 40px rgba(139,92,246,.55);
}

.btn-reg {
	color: rgba(255,255,255,.92);
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.28);
}

.btn-reg:hover {
	transform: translateY(-3px);
	background: rgba(255,255,255,.14);
	border-color: rgba(255,255,255,.45);
	box-shadow: 0 12px 30px rgba(2,6,32,.35);
}

/* ---------- Footer ---------- */
#footer {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 26px 20px 30px;
	text-align: center;
	z-index: 2;
}

#footer .copyright {
	margin: 6px 0;
	font-size: 12.5px;
	letter-spacing: 1px;
	color: rgba(255,255,255,.45);
}

#footer .copyright a {
	border-bottom: 1px dotted rgba(255,255,255,.4);
	transition: color .2s ease;
}

#footer .copyright a:hover {
	color: rgba(255,255,255,.9);
}

/* ---------- 入场动画 ---------- */
body.is-preload .card-glass {
	opacity: 0;
	transform: translateY(26px) scale(.98);
}

body:not(.is-preload) .card-glass {
	opacity: 1;
	transform: translateY(0) scale(1);
	transition: opacity .8s ease, transform .8s cubic-bezier(.22,.9,.35,1);
}

#footer {
	opacity: 0;
	transition: opacity 1.2s ease .5s;
}

body:not(.is-preload) #footer {
	opacity: 1;
}

/* ---------- 移动端适配 ---------- */
@media (max-width: 520px) {
	.card-glass {
		padding: 44px 24px 40px;
		border-radius: 22px;
	}

	.site-name {
		font-size: 27px;
	}

	.logo {
		width: 78px;
		height: 78px;
	}

	.btn {
		min-width: 108px;
		height: 42px;
		font-size: 14px;
	}

	.slogan {
		font-size: 13.5px;
	}
}
