/* 高端毛玻璃登录页 */
body.auth-page {
	height: auto;
	min-height: 100vh;
	min-height: 100dvh;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.auth-page {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding: 24px 16px 40px;
	padding-bottom: max(40px, env(safe-area-inset-bottom));
	position: relative;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	background: #0b1220;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.auth-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	background:
		radial-gradient(ellipse 80% 60% at 10% 20%, rgba(99, 102, 241, 0.45) 0%, transparent 55%),
		radial-gradient(ellipse 70% 50% at 90% 10%, rgba(14, 165, 233, 0.35) 0%, transparent 50%),
		radial-gradient(ellipse 60% 70% at 70% 90%, rgba(168, 85, 247, 0.3) 0%, transparent 55%),
		linear-gradient(165deg, #0f172a 0%, #1e1b4b 45%, #0c4a6e 100%);
}

.auth-bg::before,
.auth-bg::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.55;
	animation: authFloat 18s ease-in-out infinite;
}

.auth-bg::before {
	width: 320px;
	height: 320px;
	background: rgba(129, 140, 248, 0.5);
	top: -80px;
	right: -60px;
}

.auth-bg::after {
	width: 280px;
	height: 280px;
	background: rgba(56, 189, 248, 0.45);
	bottom: -40px;
	left: -40px;
	animation-delay: -9s;
}

@keyframes authFloat {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(24px, -20px) scale(1.08); }
}

.auth-wrap {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 420px;
	margin-top: auto;
	margin-bottom: auto;
	flex-shrink: 0;
}

.auth-brand {
	text-align: center;
	margin-bottom: 28px;
}

.auth-brand .logo {
	width: 72px;
	height: 72px;
	margin: 0 auto 14px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.22);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.auth-brand .logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.auth-brand h1 {
	margin: 0;
	font-size: 26px;
	font-weight: 600;
	color: #fff;
	letter-spacing: 0.02em;
}

.auth-brand p {
	margin: 8px 0 0;
	font-size: 14px;
	color: rgba(255,255,255,.65);
}

.auth-glass {
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 24px;
	padding: 32px 28px 28px;
	box-shadow:
		0 24px 48px rgba(0, 0, 0, 0.35),
		inset 0 1px 0 rgba(255, 255, 255, 0.15);
	overflow: visible;
	box-sizing: border-box;
}

.auth-glass h2 {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 600;
	color: #fff;
}

.auth-glass .auth-desc {
	margin: 0 0 24px;
	font-size: 13px;
	color: rgba(255,255,255,.55);
	line-height: 1.5;
}

.auth-field {
	margin-bottom: 18px;
}

.auth-field label {
	display: block;
	font-size: 12px;
	font-weight: 500;
	color: rgba(255,255,255,.7);
	margin-bottom: 8px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.auth-input-wrap {
	display: flex;
	flex-direction: row;
	align-items: center;
	box-sizing: border-box;
	min-height: 48px;
	height: 48px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 14px;
	padding: 0 14px 0 12px;
	transition: border-color .2s, box-shadow .2s, background .2s;
}

.auth-input-wrap:focus-within {
	border-color: rgba(129, 140, 248, 0.6);
	background: rgba(255, 255, 255, 0.12);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* 左侧图标槽：固定宽高，防止 PNG 原图撑破布局 */
.auth-page .auth-input-wrap .icon {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	min-width: 22px;
	max-width: 22px;
	min-height: 22px;
	max-height: 22px;
	margin: 0 10px 0 0;
	padding: 0;
	line-height: 0;
	font-size: 0;
	overflow: hidden;
	display: block;
}

.auth-page .auth-input-wrap .icon img {
	display: block;
	width: 22px;
	height: 22px;
	max-width: 22px;
	max-height: 22px;
	margin: 0;
	padding: 0;
	border: 0;
	vertical-align: top;
	object-fit: contain;
	object-position: center center;
	opacity: 0.92;
}

.auth-input-wrap input {
	flex: 1 1 auto;
	width: 0;
	min-width: 0;
	height: 100%;
	border: none;
	background: transparent;
	color: #fff;
	font-size: 16px;
	line-height: 1.4;
	padding: 0;
	margin: 0;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

.auth-input-wrap input::placeholder {
	color: rgba(255,255,255,.35);
}

/* 验证码行：输入框 + 按钮，防止溢出容器 */
.auth-code-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px;
	align-items: stretch;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.auth-code-row .auth-code-input {
	min-width: 0;
	min-height: 48px;
	height: 48px;
}

.auth-btn-code {
	align-self: stretch;
	flex-shrink: 0;
	padding: 0 10px;
	width: auto;
	max-width: 96px;
	min-width: 0;
	min-height: 48px;
	height: 48px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.2s;
	backdrop-filter: blur(8px);
	box-sizing: border-box;
}

.auth-btn-code:hover:not(:disabled) {
	background: rgba(255,255,255,.18);
}

.auth-btn-code:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.auth-btn-primary {
	width: 100%;
	margin-top: 8px;
	padding: 15px;
	border: none;
	border-radius: 14px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	cursor: pointer;
	background: linear-gradient(135deg, #6366f1 0%, #3b82f6 50%, #0ea5e9 100%);
	box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
	transition: transform .15s, box-shadow .2s;
}

.auth-btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 28px rgba(99, 102, 241, 0.5);
}

.auth-btn-primary:active {
	transform: translateY(0);
}

.auth-btn-secondary {
	width: 100%;
	margin-top: 12px;
	padding: 14px;
	border: 1px solid rgba(255,255,255,.22);
	border-radius: 14px;
	font-size: 15px;
	font-weight: 500;
	color: rgba(255,255,255,.9);
	background: rgba(255,255,255,.06);
	cursor: pointer;
	text-decoration: none;
	display: block;
	text-align: center;
	box-sizing: border-box;
	backdrop-filter: blur(8px);
	transition: background .2s;
}

.auth-btn-secondary:hover {
	background: rgba(255,255,255,.12);
	color: #fff;
}

.auth-divider {
	display: flex;
	align-items: center;
	margin: 22px 0 18px;
	gap: 12px;
}

.auth-divider::before,
.auth-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: rgba(255,255,255,.12);
}

.auth-divider span {
	font-size: 12px;
	color: rgba(255,255,255,.4);
}

.auth-switch {
	text-align: center;
	margin-top: 22px;
	font-size: 14px;
	color: rgba(255,255,255,.5);
}

.auth-switch a {
	color: #a5b4fc;
	text-decoration: none;
	font-weight: 500;
	margin-left: 4px;
}

.auth-switch a:hover {
	color: #c7d2fe;
	text-decoration: underline;
}

.auth-toast {
	position: fixed;
	left: 50%;
	top: 24px;
	transform: translateX(-50%) translateY(-80px);
	z-index: 9999;
	padding: 12px 20px;
	border-radius: 12px;
	background: rgba(15, 23, 42, 0.92);
	backdrop-filter: blur(16px);
	border: 1px solid rgba(255,255,255,.15);
	color: #fff;
	font-size: 14px;
	opacity: 0;
	transition: transform .35s, opacity .35s;
	max-width: 90%;
	text-align: center;
}

.auth-toast.show {
	transform: translateX(-50%) translateY(0);
	opacity: 1;
}

@media (max-width: 360px) {
	.auth-glass { padding: 24px 16px 22px; }
	.auth-code-row {
		grid-template-columns: 1fr;
	}
	.auth-btn-code {
		max-width: none;
		width: 100%;
		min-height: 46px;
		font-size: 14px;
	}
}
