/* ======== 登录 / 注册 页面样式（基于前台风格） ======== */
.auth-page {
	min-height: calc(100vh - 64px - 286px);
	background: linear-gradient(135deg, #f0f7ff 0%, #eef4ff 50%, #f5f3ff 100%);
	padding: 64px 24px 80px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.auth-container {
	width: 100%;
	max-width: 960px;
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 20px 60px rgba(31, 111, 235, 0.12);
	overflow: hidden;
	min-height: 620px;
}

/* 左侧品牌介绍 */
.auth-brand {
	background: linear-gradient(135deg, #1f6feb 0%, #4f46e5 100%);
	color: #fff;
	padding: 56px 48px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	position: relative;
	overflow: hidden;
}
.auth-brand::before {
	content: '';
	position: absolute;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	top: -120px;
	right: -120px;
}
.auth-brand::after {
	content: '';
	position: absolute;
	width: 240px;
	height: 240px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	bottom: -80px;
	left: -80px;
}
.auth-brand-top { position: relative; z-index: 1; }
.auth-brand-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 40px; }
.auth-brand-logo img { height: 34px; filter: brightness(0) invert(1); }
.auth-brand-title {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.35;
	margin-bottom: 14px;
	letter-spacing: 0.5px;
}
.auth-brand-desc {
	font-size: 14px;
	line-height: 1.8;
	opacity: 0.9;
	max-width: 320px;
}

.auth-brand-features {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.auth-feature {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}
.auth-feature-icon {
	width: 34px;
	height: 34px;
	min-width: 34px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.18);
	display: flex;
	align-items: center;
	justify-content: center;
}
.auth-feature-icon svg { width: 18px; height: 18px; }
.auth-feature-text h5 {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 3px;
}
.auth-feature-text p {
	font-size: 12.5px;
	opacity: 0.82;
	line-height: 1.6;
}

.auth-brand-bottom {
	position: relative;
	z-index: 1;
	font-size: 12px;
	opacity: 0.7;
}

/* 右侧表单区 */
.auth-form-wrap {
	padding: 56px 56px 48px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.auth-page-head {
	margin-bottom: 32px;
}
.auth-page-head h2 {
	font-size: 26px;
	font-weight: 700;
	color: #111827;
	margin-bottom: 8px;
}
.auth-page-head p {
	font-size: 14px;
	color: #6b7280;
}
.auth-page-head p a {
	color: #1f6feb;
	font-weight: 500;
}
.auth-page-head p a:hover { text-decoration: underline; }

/* 切换 Tab */
.auth-tabs {
	display: inline-flex;
	padding: 4px;
	background: #f3f4f6;
	border-radius: 10px;
	margin-bottom: 28px;
}
.auth-tab {
	padding: 8px 18px;
	font-size: 13.5px;
	border-radius: 8px;
	color: #6b7280;
	cursor: pointer;
	transition: all .2s;
	white-space: nowrap;
}
.auth-tab:hover { color: #1f2937; }
.auth-tab.auth-tab-active {
	background: #fff;
	color: #1f6feb;
	font-weight: 500;
	box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.auth-panel { display: none; }
.auth-panel.auth-panel-active { display: block; }

/* 表单字段 */
.auth-field {
	position: relative;
	margin-bottom: 18px;
}
.auth-field input {
	width: 100%;
	height: 46px;
	padding: 0 14px 0 44px;
	border: 1.5px solid #e5e7eb;
	border-radius: 10px;
	font-size: 14.5px;
	color: #111827;
	background: #fff;
	outline: none;
	transition: all .2s;
}
.auth-field input:focus {
	border-color: #1f6feb;
	box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.08);
}
.auth-field input::placeholder { color: #9ca3af; }

.af-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #9ca3af;
	display: flex;
}
.af-eye {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: #9ca3af;
	cursor: pointer;
	padding: 6px;
	display: flex;
	transition: color .2s;
}
.af-eye:hover { color: #4b5563; }
.af-eye.af-eye-on { color: #1f6feb; }

.af-side-btn {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	height: 34px;
	padding: 0 14px;
	background: #eff6ff;
	color: #1f6feb;
	border: none;
	border-radius: 8px;
	font-size: 12.5px;
	font-weight: 500;
	cursor: pointer;
	transition: all .2s;
}
.af-side-btn:hover:not(:disabled) { background: #dbeafe; }
.af-side-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.auth-field.af-with-side input { padding-right: 118px; }
.auth-field.af-with-eye input { padding-right: 44px; }

/* 记住密码 & 忘记密码 */
.auth-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 6px 0 18px;
	font-size: 13px;
}
.auth-check {
	color: #4b5563;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	user-select: none;
}
.auth-check input { accent-color: #1f6feb; }
.auth-link {
	color: #1f6feb;
	cursor: pointer;
}
.auth-link:hover { text-decoration: underline; }

/* 错误提示 */
.auth-err {
	min-height: 20px;
	color: #ef4444;
	font-size: 13px;
	margin-left: 10px;
	margin-top: 10px;
	margin-bottom: 30px;
	line-height: 1.5;
}

/* 提交按钮 */
.btn-auth {
	width: 100%;
	height: 48px;
	background: linear-gradient(90deg, #1f6feb, #4f46e5);
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 15.5px;
	font-weight: 500;
	cursor: pointer;
	transition: all .2s;
	letter-spacing: 1px;
}
.btn-auth:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(31, 111, 235, 0.28);
}
.btn-auth:disabled { opacity: 0.7; cursor: not-allowed; }

/* 底部行：注册链接 & 第三方 */
.auth-footer-row {
	margin-top: 26px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	font-size: 13px;
}
.auth-divider {
	flex: 1;
	height: 1px;
	background: #e5e7eb;
	min-width: 40px;
}
.auth-third {
	display: flex;
	gap: 10px;
}
.af-third {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #f3f4f6;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all .2s;
}
.af-third:hover { background: #e5e7eb; transform: translateY(-2px); }
.af-wechat { color: #07c160; }
.af-dingtalk { color: #1677ff; }

/* 用户协议勾选 */
.auth-agree {
	display: block;
	margin-top: 30px;
	margin-left: 10px;
	font-size: 12.5px;
	color: #6b7280;
	cursor: pointer;
	line-height: 1.6;
}
.auth-agree input {
	accent-color: #1f6feb;
	margin-right: 6px;
	vertical-align: middle;
}
.auth-agree a {
	color: #1f6feb;
}
.auth-agree a:hover { text-decoration: underline; }

/* 验证码登录占位 */
.auth-placeholder {
	padding: 60px 20px;
	text-align: center;
	color: #9ca3af;
	font-size: 14px;
	background: #fafafa;
	border-radius: 10px;
	border: 1px dashed #e5e7eb;
}

/* 响应式 */
@media (max-width: 880px) {
	.auth-page {
		padding: 32px 16px 48px;
		min-height: calc(100vh - 64px - 460px);
	}
	.auth-container {
		grid-template-columns: 1fr;
		min-height: auto;
	}
	.auth-brand {
		padding: 40px 28px;
		text-align: center;
	}
	.auth-brand-features { align-items: center; }
	.auth-feature { text-align: left; }
	.auth-brand-desc { margin: 0 auto; }
	.auth-form-wrap {
		padding: 36px 24px 32px;
	}
	.auth-page-head h2 { font-size: 22px; }
}
