/* ===== 商家入口页 ===== */
.mg-section {
	background: url(merchant-bg.png) center center / cover no-repeat;
	min-height: 580px;
	display: flex;
	align-items: center;
}

.mg-container {
	display: flex;
	justify-content: flex-end;
	padding-top: 64px;
	padding-bottom: 64px;
}

/* 卡片 */
.mg-card {
	width: 440px;
	background: #fff;
	border-radius: 16px;
	padding: 36px 32px 40px;
	box-shadow: 0 10px 40px rgba(60, 90, 160, 0.18);
	flex-shrink: 0;
}

/* Tabs */
.mg-tabs {
	display: flex;
	gap: 0;
	border-bottom: 2px solid #f0f0f0;
	margin-bottom: 28px;
}
.mg-tab {
	flex: 1;
	height: 40px;
	background: none;
	border: none;
	font-size: 15px;
	color: #888;
	cursor: pointer;
	position: relative;
	font-weight: 500;
	transition: color 0.2s;
}
.mg-tab::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 20%;
	right: 20%;
	height: 2px;
	background: #1668ff;
	transform: scaleX(0);
	transition: transform 0.2s;
}
.mg-tab.active {
	color: #1668ff;
}
.mg-tab.active::after {
	transform: scaleX(1);
}

/* 面板 */
.mg-pnl {
	display: none;
}
.mg-pnl.active {
	display: block;
}

/* 标题 */
.mg-title {
	font-size: 20px;
	font-weight: 600;
	color: #1668ff;
	text-align: center;
	margin: 0 0 24px;
}

/* 表单 */
.mg-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* 输入字段 */
.mg-field {
	display: flex;
	align-items: center;
	height: 46px;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 0 14px;
	gap: 8px;
	background: #fff;
	transition: border-color 0.2s;
}
.mg-field:focus-within {
	border-color: #1668ff;
}
.mg-field-flex {
	flex: 1;
}
.mg-icon {
	color: #b5b5b5;
	display: flex;
	align-items: center;
	flex-shrink: 0;
}
.mg-field input {
	flex: 1;
	border: none;
	outline: none;
	background: transparent;
	font-size: 14px;
	color: #333;
	min-width: 0;
}
.mg-field input::placeholder {
	color: #b5b5b5;
}

/* 验证码行（确认密码 + 图形验证码） */
.mg-row-captcha {
	display: flex;
	align-items: center;
	gap: 10px;
}
.mg-captcha-box {
	width: 116px;
	height: 46px;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f9f9f9;
}
.mg-captcha-img {
	width: 112px;
	height: 32px;
	display: block;
}

/* 手机号 + 验证码输入行 */
.mg-row-sms {
	display: flex;
	align-items: center;
	gap: 10px;
}
.mg-captcha-inp {
	width: 110px;
	flex-shrink: 0;
}

/* 同意条款 */
.mg-agree {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #666;
	cursor: pointer;
}
.mg-checkbox {
	width: 16px;
	height: 16px;
	border: 1px solid #ccc;
	border-radius: 3px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background 0.2s, border-color 0.2s;
}
.mg-checkbox.checked {
	background: #1668ff;
	border-color: #1668ff;
	color: #fff;
}
.mg-agree-link {
	color: #1668ff;
	text-decoration: none;
}

/* 提交按钮 */
.mg-submit-btn {
	width: 100%;
	height: 48px;
	background: #1668ff;
	color: #fff !important;
	font-size: 16px;
	font-weight: 500;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.2s;
	margin-top: 6px;
}
.mg-submit-btn:hover {
	background: #1257e0;
}

/* 登录额外项 */
.mg-login-extra {
	display: flex;
	justify-content: flex-end;
	margin-top: -6px;
}
.mg-forget-link {
	font-size: 13px;
	color: #888;
	text-decoration: none;
}
.mg-forget-link:hover {
	color: #1668ff;
}

/* 切换提示 */
.mg-switch-tip {
	text-align: center;
	font-size: 13px;
	color: #888;
	margin-top: 4px;
}
.mg-switch-tip a {
	color: #1668ff;
	text-decoration: none;
}
