/* ===========================================================
   登录 / 注册 / 找回密码 · v4
   视觉对齐官网首页：浅蓝渐变背景 + 白色圆角卡片 + 蓝色主色
   作用域：.v4-page（.login-page 变体）+ .authv4（.page-content）
   =========================================================== */

.v4-body {
	background: linear-gradient(180deg, #F9FBFF 0%, #EDF3FF 100%) fixed !important;
	background-color: #EDF3FF !important;
}

.v4-page {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	background: transparent !important;
	background-image: none !important;
}

.v4-page .page-content {
	min-height: 0 !important;
	padding: 0 !important;
	background:
		radial-gradient(900px 460px at 88% -12%, rgba(27, 92, 230, .10), rgba(27, 92, 230, 0) 64%),
		radial-gradient(620px 420px at 4% 6%, rgba(120, 170, 255, .14), rgba(120, 170, 255, 0) 62%),
		linear-gradient(180deg, #F9FBFF 0%, #EDF3FF 100%);
}

.v4-page .wrapper {
	width: 100% !important;
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 28px;
	box-sizing: border-box;
}

.v4-page .login-wrap {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) 452px;
	gap: 64px;
	align-items: center;
	height: auto !important;
	min-height: calc(100vh - 61px);
	padding: 52px 0 64px;
	box-sizing: border-box;
}

/* ---------- 左侧品牌区 ---------- */
.v4-page .page-content .left {
	display: block !important;
	width: auto !important;
	padding: 0 !important;
	vertical-align: top !important;
}

.v4-page .av2-brand {
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	min-height: 0 !important;
	border-radius: 0 !important;
}

.v4-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 30px;
	padding: 0 13px;
	border-radius: 999px;
	background: #EAF1FF;
	color: #1B5CE6;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .4px;
	margin-bottom: 22px;
}
.v4-eyebrow::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #1B5CE6;
}

.v4-page .av2-brand-t {
	font-size: 40px !important;
	line-height: 1.28 !important;
	font-weight: 800 !important;
	letter-spacing: -.6px;
	color: #0E1B33 !important;
	margin: 0 0 18px !important;
}
.v4-page .av2-brand-d {
	font-size: 14.5px !important;
	line-height: 1.9 !important;
	color: #5A6B85 !important;
	max-width: 430px;
	margin: 0 0 22px !important;
}
.v4-page .av2-brand-list {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}
.v4-page .av2-brand-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 12px !important;
	padding: 0 !important;
	font-size: 13.5px;
	line-height: 1.6;
	color: #3F4E66 !important;
	background: none !important;
	border: 0 !important;
}
.v4-page .av2-brand-list li::before {
	content: "✓";
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #EAF1FF;
	color: #1B5CE6;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}
.v4-page .av2-brand-list li i {
	color: #1B5CE6 !important;
	font-size: 16px;
	line-height: 1.5;
}

/* ---------- 右侧卡片 ---------- */
.v4-page .page-content .right {
	display: block !important;
	width: auto !important;
	text-align: left !important;
	padding: 0 !important;
	vertical-align: top !important;
}

.v4-page .login-item {
	width: 100% !important;
	max-width: 452px;
	min-height: 0 !important;
	margin-left: auto;
	background: #fff;
	border: 1px solid #E6EDF9;
	border-radius: 18px;
	box-shadow: 0 26px 60px rgba(15, 34, 64, .10), 0 2px 6px rgba(15, 34, 64, .04);
	padding: 30px 30px 26px;
	box-sizing: border-box;
}
.v4-page .login-item .login {
	width: 100% !important;
	max-width: none;
	border: 0;
	box-shadow: none;
	padding: 0;
	border-radius: 0;
	background: transparent;
	min-height: 0;
	box-sizing: border-box;
}

/* ---------- 卡片头部 ---------- */
.av4-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 26px;
	padding: 0 10px;
	border-radius: 7px;
	background: #EEF4FF;
	color: #1B5CE6;
	font-size: 12px;
	font-weight: 600;
}
.av4-badge svg { width: 13px; height: 13px; }
.av4-title {
	font-size: 25px;
	font-weight: 800;
	letter-spacing: -.3px;
	color: #0E1B33;
	margin: 13px 0 6px;
	line-height: 1.3;
}
.av4-sub {
	font-size: 13px;
	line-height: 1.75;
	color: #7D8CA6;
	margin: 0;
}

/* ---------- 内嵌提示 ---------- */
.av4-alert {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin-top: 16px;
	padding: 10px 12px;
	border-radius: 10px;
	background: #FFF4F2;
	border: 1px solid #FFDCD4;
	color: #B03B2C;
	font-size: 13px;
	line-height: 1.6;
}
.av4-alert i { font-size: 15px; line-height: 1.4; flex: 0 0 auto; }
.av4-alert--ok {
	background: #F1FBF6;
	border-color: #CCEEDD;
	color: #16815A;
}

/* ---------- 分段标签 ---------- */
.av4-tabs {
	display: flex;
	gap: 4px;
	background: #F2F6FD;
	border-radius: 11px;
	padding: 4px;
	margin: 20px 0 18px;
}
.av4-tab {
	flex: 1;
	height: 36px;
	border: 0;
	background: transparent;
	border-radius: 8px;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 600;
	color: #6B7C94;
	cursor: pointer;
	transition: color .16s, background .16s, box-shadow .16s;
}
.av4-tab:hover { color: #1B5CE6; }
.av4-tab.is-active {
	background: #fff;
	color: #1B5CE6;
	box-shadow: 0 2px 8px rgba(15, 34, 64, .10);
}

/* ---------- 表单 ---------- */
.av4-pane { display: none; }
.av4-pane.is-active { display: block; }

.av4-field {
	position: relative;
	margin-bottom: 12px;
}
.av4-input {
	display: block;
	width: 100%;
	height: 46px;
	padding: 0 14px;
	border: 1px solid #E3EAF5;
	border-radius: 10px;
	background: #FAFCFF;
	font-family: inherit;
	font-size: 14px;
	color: #0E1B33;
	box-sizing: border-box;
	transition: border-color .16s, box-shadow .16s, background .16s;
}
.av4-input::placeholder { color: #A0AEC2; }
.av4-input:focus {
	outline: none;
	border-color: #1B5CE6;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(27, 92, 230, .12);
}
.av4-input.is-error {
	border-color: #E36B5A;
	background: #FFF9F8;
}

/* 密码可见切换 */
.av4-eye {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #8A99AE;
	cursor: pointer;
}
.av4-eye:hover { color: #1B5CE6; background: #F1F5FD; }
.av4-eye svg { width: 17px; height: 17px; }
.av4-eye.is-on { color: #1B5CE6; }

/* 验证码行 */
.av4-code .av4-input { padding-right: 114px; }
.av4-code-btn {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	height: 34px;
	padding: 0 13px;
	border: 0;
	border-radius: 8px;
	background: #EEF4FF;
	color: #1B5CE6;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}
.av4-code-btn:hover { background: #E1EAFF; }
.av4-code-btn:disabled { background: #F2F4F8; color: #9AA9BE; cursor: not-allowed; }

/* 手机号行 */
.av4-phone {
	display: flex;
	gap: 8px;
}
.v4-page .av4-sel {
	flex: 0 0 118px;
	width: 118px;
	height: 46px;
	padding: 0 6px;
	border: 1px solid #E3EAF5 !important;
	border-radius: 10px !important;
	background: #FAFCFF !important;
	font-family: inherit;
	font-size: 13px;
	color: #0E1B33 !important;
	line-height: 46px;
	box-sizing: border-box;
	text-overflow: ellipsis;
}

/* 系统验证码 / 第三方登录输入框兜底 */
.v4-page .login-item .form-control,
.v4-page .login-item .input-skin {
	height: 46px;
	border: 1px solid #E3EAF5;
	border-radius: 10px;
	background: #FAFCFF;
	font-family: inherit;
	font-size: 14px;
	box-sizing: border-box;
	box-shadow: none;
}
.v4-page .login-item .form-control:focus,
.v4-page .login-item .input-skin:focus {
	border-color: #1B5CE6;
	box-shadow: 0 0 0 3px rgba(27, 92, 230, .12);
}

/* 图形验证码（系统 include 输出 li.code） */
.v4-page .login-item .form-group { margin-bottom: 12px; }
.v4-page .login-item .form-group li.code,
.v4-page .login-item li.code {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
}
.v4-page .login-item .imgCode {
	height: 46px;
	border: 1px solid #E3EAF5;
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
}
.v4-page .login-item .input-group { display: flex; }

/* 提交按钮 */
.av4-submit {
	display: block;
	width: 100%;
	height: 46px;
	margin-top: 6px;
	border: 0;
	border-radius: 10px;
	background: linear-gradient(135deg, #3D7BFF, #1B5CE6);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .4px;
	cursor: pointer;
	box-shadow: none;
	transition: background .16s;
}
.av4-submit:hover {
	background: linear-gradient(135deg, #1B5CE6, #0F45C0);
	box-shadow: none;
	transform: none;
}
.av4-submit:disabled { opacity: .7; cursor: not-allowed; transform: none; }

/* 辅助行 */
.av4-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 14px;
	font-size: 13px;
	color: #5A6B85;
}
.av4-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-weight: 400;
	cursor: pointer;
}
.av4-check input {
	width: 15px;
	height: 15px;
	margin: 0;
	accent-color: #1B5CE6;
}
.av4-link {
	color: #1B5CE6 !important;
	font-weight: 600;
	text-decoration: none;
}
.av4-link:hover { text-decoration: underline; }

.av4-alt {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid #EEF3FB;
	text-align: center;
	font-size: 13px;
	color: #6B7C94;
}
.av4-alt a {
	color: #1B5CE6;
	font-weight: 600;
	text-decoration: none;
	margin-left: 3px;
}
.av4-alt a:hover { text-decoration: underline; }
.av4-alt--plain {
	margin-top: 10px;
	padding-top: 0;
	border-top: 0;
	color: #8A99AE;
}

.av4-switch {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 12px 0 0;
	font-size: 12.5px;
}
.av4-meta .av4-switch { margin: 0; }
.av4-switch a, .av4-switch div {
	color: #1B5CE6;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

/* 隐私协议 */
.av4-legal {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid #EEF3FB;
	font-size: 12.5px;
	line-height: 1.75;
	color: #7D8CA6;
}
.av4-legal input {
	width: 15px;
	height: 15px;
	margin: 3px 0 0;
	accent-color: #1B5CE6;
	flex: 0 0 auto;
}
.av4-legal a { color: #1B5CE6; text-decoration: none; }
.av4-legal a:hover { text-decoration: underline; }

/* 第三方登录 */
.v4-page .login-item .social-list-item { border-radius: 10px; }

/* ---------- 顶部轻提示样式已拆分到 toast-pc.css / toast-mobile.css ---------- */

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
	.v4-page .wrapper { padding: 0 16px; }
	.v4-page .page-content { min-height: calc(100vh - 57px); }
	.v4-page .login-wrap {
		grid-template-columns: 1fr;
		gap: 0;
		min-height: 0;
		padding: 34px 0 48px;
	}
	.v4-page .page-content .left { display: none !important; }
	.v4-page .page-content .right { display: flex !important; justify-content: center; }
	.v4-page .login-item {
		max-width: 520px;
		margin: 0 auto;
		padding: 24px 18px 22px;
		border-radius: 16px;
		box-shadow: 0 10px 30px rgba(15, 34, 64, .10);
	}
}

@media (max-width: 420px) {
	.av4-title { font-size: 22px; }
	.v4-page .login-item { padding: 22px 15px 18px; }
	.av4-meta { font-size: 12.5px; }
}

/* 图形验证码：保持原始宽高比，避免被 flex 压缩变形（LanSecurity patch） */
.v4-page .login-item .imgCode {
	flex: 0 0 auto;
	width: auto;
	max-width: none;
}
.v4-page .login-item li.code > input {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
}

/* 极验行为验证按钮（LanSecurity patch） */
.lan-gt-field {
	margin-bottom: 12px;
}
.lan-gt-label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	line-height: 20px;
	font-weight: 500;
	color: #344054;
}
.lan-gt-box {
	width: 100%;
	min-height: 44px;
}
.lan-gt-box.is-shake {
	animation: lanGtShake .5s ease;
}
/* 极验启用时隐藏魔方自带的图形验证码行 */
.lan-gt-native-hidden {
	display: none !important;
}
@keyframes lanGtShake {
	0%, 100% { transform: translateX(0); }
	20% { transform: translateX(-5px); }
	40% { transform: translateX(5px); }
	60% { transform: translateX(-3px); }
	80% { transform: translateX(3px); }
}
