/**
 * 登录页样式（对齐 shop.pgo.mobi/admin/login 的版式）
 * ------------------------------------------------------------------
 * 蓝紫渐变背景 + 星座连线 + 居中白卡（左侧插画 / 右侧表单）。
 * 只作用于 body.login-page，注册页和后台内页不受影响。
 * ------------------------------------------------------------------
 */

/* ================= 页面背景 ================= */
body.login-page {
	min-height: 100vh;
	height: auto;
	overflow-x: hidden;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px 0;
	background:
		radial-gradient(1100px 700px at 84% 6%, rgba(186, 64, 224, .55) 0%, rgba(186, 64, 224, 0) 62%),
		radial-gradient(900px 700px at 6% 94%, rgba(28, 142, 255, .55) 0%, rgba(28, 142, 255, 0) 60%),
		linear-gradient(122deg, #1f6cf0 0%, #3a5fe6 30%, #7b46dd 64%, #a63fd6 100%) !important;
	background-attachment: fixed;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
		"Microsoft YaHei", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 斜向高光 */
body.login-page::before {
	content: "";
	position: fixed;
	inset: 0;
	background: linear-gradient(115deg,
		rgba(255, 255, 255, .10) 0%,
		rgba(255, 255, 255, 0) 34%,
		rgba(255, 255, 255, .07) 68%,
		rgba(255, 255, 255, 0) 100%);
	pointer-events: none;
	z-index: 0;
}

/* 星座粒子 */
.login-canvas {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
	opacity: .55;
}

/* 左上角圆点阵列 */
.login-dots {
	position: fixed;
	left: 38px;
	top: 34px;
	width: 110px;
	height: 132px;
	background-image: radial-gradient(rgba(255, 255, 255, .55) 2px, transparent 2px);
	background-size: 22px 22px;
	opacity: .75;
	pointer-events: none;
	z-index: 1;
}

/* 右上角同心弧线 / 右下角箭头 */
.login-decor {
	position: fixed;
	pointer-events: none;
	z-index: 1;
}

.login-decor-arcs {
	top: -80px;
	right: -90px;
	width: 560px;
	height: 560px;
	opacity: .5;
}

.login-decor-arrows {
	right: 0;
	bottom: 26px;
	width: 320px;
	height: 90px;
	opacity: .45;
}

/* ================= 登录卡片 ================= */
.login-shell {
	position: relative;
	z-index: 2;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.login-card {
	display: flex;
	width: 870px;
	max-width: calc(100vw - 40px);
	height: auto;
	min-height: 400px;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 24px 70px rgba(16, 24, 74, .34);
}

/* 左侧插画 */
.login-visual {
	flex: 0 0 510px;
	min-height: 400px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(180deg, #f8fbff 0%, #edf6ff 100%);
	overflow: hidden;
}

.login-visual svg {
	width: 100%;
	height: 100%;
	display: block;
}

/* 右侧表单 */
.login-form-side {
	flex: 1;
	min-width: 0;
	padding: 28px 40px 26px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-sizing: border-box;
}

/* 品牌区 */
.login-brand {
	text-align: center;
	margin-bottom: 22px;
}

.login-brand-name {
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 1px;
	color: #3d4653;
}

/* ================= 表单 ================= */
.login-form {
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.login-field {
	position: relative;
	margin-bottom: 14px;
}

.login-field > i {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 14px;
	color: #aab4c2;
	pointer-events: none;
}

.login-input {
	display: block;
	width: 100%;
	height: 42px;
	padding: 0 40px 0 38px;
	font-size: 14px;
	color: #3d4653;
	background: #fff;
	border: 1px solid #dcdfe6;
	border-radius: 6px;
	outline: none;
	box-sizing: border-box;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.login-input::placeholder {
	color: #b3bcc9;
}

.login-input:hover {
	border-color: #c3cbd6;
}

.login-input:focus {
	border-color: #4073fa;
	box-shadow: 0 0 0 3px rgba(64, 115, 250, .12);
}

.login-input.error {
	border-color: #e45656;
}

/* 浏览器自动填充时保持白底 */
.login-page .login-input:-webkit-autofill,
.login-page .login-input:-webkit-autofill:hover,
.login-page .login-input:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0 1000px #fff inset;
	-webkit-text-fill-color: #3d4653;
	transition: background-color 9999s ease-in-out 0s;
}

/* 密码可见切换 */
.login-eye {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	padding: 4px 6px;
	color: #aab4c2;
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
}

.login-eye:hover {
	color: #4073fa;
}

/* 验证码 */
.login-captcha {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 16px;
}

.login-captcha .login-field {
	flex: 1;
	margin-bottom: 0;
}

.login-captcha-img {
	flex: 0 0 auto;
	display: block;
	line-height: 0;
}

.login-captcha-img .imgcode {
	height: 42px;
	width: 120px;
	object-fit: cover;
	border: 1px solid #dcdfe6;
	border-radius: 6px;
	cursor: pointer;
	background: #f5f7fa;
}

/* 记住我 */
.login-options {
	margin: 0 0 14px;
	font-size: 13px;
	color: #606a78;
}

.login-check {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-weight: 400;
	color: #606a78;
	cursor: pointer;
}

.login-check input[type="checkbox"] {
	width: 14px;
	height: 14px;
	margin: 0;
	accent-color: #4073fa;
	cursor: pointer;
}

/* 登录按钮 */
.login-btn {
	display: block;
	width: 100%;
	height: 42px;
	border: 0;
	border-radius: 6px;
	background: #4073fa;
	color: #fff;
	font-size: 15px;
	letter-spacing: 2px;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(64, 115, 250, .26);
	transition: background-color .2s ease, box-shadow .2s ease, transform .1s ease;
}

.login-btn:hover {
	background: #2f5fe0;
	box-shadow: 0 10px 22px rgba(64, 115, 250, .32);
}

.login-btn:active {
	transform: translateY(1px);
	box-shadow: 0 4px 10px rgba(64, 115, 250, .24);
}

.login-btn[disabled] {
	opacity: .7;
	cursor: not-allowed;
}

/* 注册入口 */
.login-register {
	text-align: center;
	margin-top: 14px;
	font-size: 13px;
}

.login-register a {
	color: #8a95a1;
	text-decoration: none;
}

.login-register a:hover {
	color: #4073fa;
}

/* 校验提示 */
.login-page label.error {
	display: block;
	position: static;
	margin: 4px 0 0;
	padding: 0;
	color: #e45656;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
	text-align: left;
}

.login-page label.error i {
	margin-right: 4px;
}

/* 页面底部版权 */
.login-footer {
	position: relative;
	z-index: 2;
	margin-top: 22px;
	color: rgba(255, 255, 255, .55);
	font-size: 12px;
	letter-spacing: .5px;
	text-align: center;
}

/* ================= 响应式 ================= */
@media (max-width: 900px) {
	.login-card {
		width: 92vw;
		height: auto;
	}
	.login-visual {
		display: none;
	}
	.login-form-side {
		padding: 32px 28px 28px;
	}
}

@media (max-width: 480px) {
	body.login-page {
		padding: 16px 0;
	}
	.login-card {
		width: calc(100vw - 32px);
	}
	.login-form-side {
		padding: 26px 20px 24px;
	}
	.login-brand {
		margin-bottom: 22px;
	}
	.login-dots,
	.login-decor-arrows {
		display: none;
	}
}
