/* 登录 / 注册 / 找回密码 — 与 ma-html 主题变量配合 */
.ma-auth2 {
	padding: 16px var(--ma-side-gap, 14px) 28px;
	max-width: 480px;
	margin: 0 auto;
	box-sizing: border-box;
}
.ma-auth2__title {
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 18px;
	color: #1a1a1a;
}
.ma-auth2__panel[hidden] {
	display: none !important;
}
.ma-auth2__card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
	margin-bottom: 16px;
}
.ma-auth2__row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	border-bottom: 1px solid #f0f0f0;
	min-height: 52px;
	box-sizing: border-box;
}
.ma-auth2__row:last-child {
	border-bottom: 0;
}
.ma-auth2__input {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	font-size: 16px;
	color: #1a1a1a;
}
.ma-auth2__input::placeholder {
	color: #9ca3af;
}
.ma-auth2__row--pwd {
	position: relative;
	padding-right: 120px;
}
.ma-auth2__forget-inline {
	position: absolute;
	right: 48px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 13px;
	color: var(--ma-primary, #e53935);
	text-decoration: none;
	white-space: nowrap;
}
.ma-auth2__pwdtoggle {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border: 0;
	padding: 0;
	margin: 0;
	background: transparent;
	color: #888;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.ma-auth2__pwdtoggle-ico {
	display: none;
	width: 22px;
	height: 22px;
	flex-shrink: 0;
}
.ma-auth2__pwdtoggle-ico:not([hidden]) {
	display: block;
}
.ma-auth2__smsbtn {
	flex-shrink: 0;
	padding: 8px 12px;
	font-size: 13px;
	border-radius: 8px;
	border: 1px solid var(--ma-primary, #e53935);
	background: #fff;
	color: var(--ma-primary, #e53935);
	cursor: pointer;
	white-space: nowrap;
}
.ma-auth2__submit {
	display: block;
	width: 100%;
	margin: 0;
	padding: 14px 16px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	background: var(--ma-primary, #e53935);
	border: 0;
	border-radius: 12px;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.ma-auth2__submit:active {
	opacity: 0.92;
}
.ma-auth2__links {
	margin-top: 18px;
	font-size: 14px;
	color: #64748b;
	text-align: center;
}
.ma-auth2__links a {
	color: var(--ma-primary, #e53935);
	text-decoration: none;
}
.ma-auth2__agree {
	margin: 12px 0 16px;
	font-size: 13px;
	color: #64748b;
	line-height: 1.5;
}
.ma-auth2__agree a {
	color: var(--ma-primary, #e53935);
}
.ma-auth2__xieyi-open {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: inherit;
	color: var(--ma-primary, #e53935);
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
	-webkit-tap-highlight-color: transparent;
}
.ma-auth2__xieyi-open:active {
	opacity: 0.85;
}

.ma-xieyi-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	box-sizing: border-box;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.2s, visibility 0.2s;
	pointer-events: none;
}
.ma-xieyi-modal.is-open {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}
.ma-xieyi-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}
.ma-xieyi-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: min(78vh, 640px);
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.ma-xieyi-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
	border-bottom: 1px solid #edf2f7;
	flex-shrink: 0;
}
.ma-xieyi-modal__head h2 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: #1a202c;
}
.ma-xieyi-modal__close {
	border: none;
	background: #f1f5f9;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	font-size: 22px;
	line-height: 1;
	color: #64748b;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s, color 0.2s;
	-webkit-tap-highlight-color: transparent;
}
.ma-xieyi-modal__close:active {
	background: #e2e8f0;
	color: #334155;
}
.ma-xieyi-modal__body {
	padding: 18px 20px 22px;
	overflow-y: auto;
	font-size: 13px;
	line-height: 1.7;
	color: #4b5563;
	-webkit-overflow-scrolling: touch;
}
.ma-xieyi-modal__body img {
	max-width: 100%;
	height: auto;
}
.ma-auth2__third {
	margin-top: 28px;
	padding-top: 22px;
	border-top: 1px solid #e5e7eb;
}
.ma-auth2__third-title {
	font-size: 13px;
	color: #9ca3af;
	text-align: center;
	margin-bottom: 14px;
}
.ma-auth2__third-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 20px;
}
.ma-auth2__third-lead {
	display: contents;
}
.ma-auth2__third-item {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	min-width: 64px;
	font-size: 12px;
	color: #64748b;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}
/* hidden 属性需压过本处的 display，否则「短信 / 账号」切换形同失效 */
.ma-auth2__third-item[hidden] {
	display: none !important;
}
.ma-auth2__third-ico {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}
.ma-auth2__third-ico-inner {
	display: block;
	width: 26px;
	height: 26px;
	flex-shrink: 0;
}
.ma-auth2__third-ico--sms {
	background: linear-gradient(135deg, #42a5f5, #1e88e5);
}
.ma-auth2__third-ico--account {
	background: linear-gradient(135deg, #78909c, #546e7a);
}
.ma-auth2__third-ico--qq {
	background: #12b7f5;
}
.ma-auth2__third-ico--wx {
	background: #07c160;
}
