/**
 * 站内登录 / 注册页样式。
 *
 * 配色沿用主题：深蓝 #001f89 / #032974，主按钮橙 #ff8a00，页面底色浅蓝 #f0f8fd。
 * 后半段是覆盖 wp_login_form() 默认输出用的 —— WP 给它套了 .login-username、
 * .login-submit 这套类名，不覆盖的话会跟注册表单长得不一样。
 */

.ldx-auth-box {
	position: relative;
	max-width: 620px;
	margin: 40px auto 70px;
	padding: 46px 52px 40px;
	background: #fff;
	border: 1px solid #e4ecf5;
	border-radius: 10px;
	box-shadow: 0 2px 16px rgba(3, 41, 116, .06);
}

.ldx-auth-ico {
	width: 64px;
	height: 64px;
	margin: 0 auto 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f0f8fd;
	border-radius: 50%;
}

.ldx-auth-ico svg {
	width: 30px;
	height: 30px;
	display: block;
}

.ldx-auth-title {
	margin: 0 0 12px;
	font-size: 23px;
	font-weight: 400;
	line-height: 1.4;
	color: #001f89;
	text-align: center;
}

.ldx-auth-lead {
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 1.9;
	color: #666;
	text-align: center;
}

.ldx-auth-lead strong {
	font-weight: 400;
	color: #032974;
}

.ldx-auth-note {
	margin: 14px 0 0;
	font-size: 13px;
	color: #9aa7b8;
	text-align: center;
}

/* ---- 错误提示 ---- */

.ldx-auth-error {
	margin: 20px 0 0;
	padding: 12px 16px;
	font-size: 14px;
	line-height: 1.7;
	color: #a32d2d;
	background: #fdf3f3;
	border: 1px solid #f6dada;
	border-radius: 6px;
}

/* ---- 注册表单 ---- */

.ldx-auth-form {
	margin: 30px 0 0;
}

.ldx-auth-form .ldx-field {
	margin: 0 0 18px;
}

.ldx-auth-form label {
	display: block;
	margin-bottom: 7px;
	font-size: 14px;
	color: #032974;
}

.ldx-auth-form .ldx-hint {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	color: #9aa7b8;
}

.ldx-auth-form .ldx-submit {
	margin: 26px 0 0;
}

/* 蜜罐字段：真人看不到。不用 display:none —— 部分机器人会主动跳过隐藏元素，
   而"移出视口"这种藏法它们照样会填。 */
.ldx-honeypot {
	position: absolute;
	left: -9999px;
	top: -9999px;
	height: 0;
	overflow: hidden;
}

/* ---- 按钮组 ---- */

.ldx-auth-actions {
	margin-top: 26px;
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

.ldx-auth-btn {
	display: inline-block;
	min-width: 128px;
	padding: 11px 26px;
	font-size: 15px;
	text-align: center;
	text-decoration: none;
	border-radius: 4px;
	box-sizing: border-box;
	transition: background .2s, border-color .2s;
}

.ldx-auth-btn-main {
	color: #fff;
	background: #ff8a00;
	border: 1px solid #ff8a00;
}

.ldx-auth-btn-main:hover {
	color: #fff;
	background: #e87c00;
	border-color: #e87c00;
}

.ldx-auth-btn-ghost {
	color: #032974;
	background: #fff;
	border: 1px solid #cddced;
}

.ldx-auth-btn-ghost:hover {
	color: #032974;
	background: #f7fbff;
	border-color: #032974;
}

/* ---- 底部辅助链接 ---- */

.ldx-auth-foot {
	margin-top: 26px;
	padding-top: 20px;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 14px;
	color: #8a97a8;
	border-top: 1px dashed #e4ecf5;
}

.ldx-auth-foot a {
	color: #185fa5;
	text-decoration: none;
}

.ldx-auth-foot a:hover {
	color: #ff8a00;
}

/* ---- 输入框 ---- */

.ldx-auth-form input[type="text"],
.ldx-auth-form input[type="email"],
.ldx-auth-box #ldx-login-form input[type="text"],
.ldx-auth-box #ldx-login-form input[type="password"] {
	width: 100%;
	height: 44px;
	padding: 0 14px;
	font-size: 15px;
	color: #333;
	background: #fff;
	border: 1px solid #d9e3ef;
	border-radius: 4px;
	box-sizing: border-box;
	transition: border-color .2s, box-shadow .2s;
}

.ldx-auth-form input:focus,
.ldx-auth-box #ldx-login-form input:focus {
	outline: 0;
	border-color: #185fa5;
	box-shadow: 0 0 0 3px rgba(24, 95, 165, .08);
}

.ldx-auth-form button,
.ldx-auth-box #ldx-login-form .button,
.ldx-auth-box #ldx-login-form input[type="submit"] {
	width: 100%;
	height: 46px;
	font-size: 16px;
	color: #fff;
	background: #ff8a00;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
	transition: background .2s;
}

.ldx-auth-form button:hover,
.ldx-auth-box #ldx-login-form .button:hover,
.ldx-auth-box #ldx-login-form input[type="submit"]:hover {
	background: #e87c00;
}

/* ---- 覆盖 wp_login_form() 的默认结构 ---- */

.ldx-auth-box #ldx-login-form {
	margin: 30px 0 0;
}

.ldx-auth-box #ldx-login-form p {
	margin: 0 0 18px;
}

.ldx-auth-box #ldx-login-form label {
	display: block;
	margin-bottom: 7px;
	font-size: 14px;
	color: #032974;
}

.ldx-auth-box #ldx-login-form .login-remember {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ldx-auth-box #ldx-login-form .login-remember label {
	margin: 0;
	font-size: 14px;
	color: #666;
}

.ldx-auth-box #ldx-login-form .login-submit {
	margin: 26px 0 0;
}

/* ---- 移动端 ---- */

@media (max-width: 750px) {
	.ldx-auth-box {
		margin: 20px 12px 44px;
		padding: 32px 22px;
	}

	.ldx-auth-title {
		font-size: 19px;
	}

	.ldx-auth-actions {
		flex-direction: column;
		gap: 10px;
	}

	.ldx-auth-btn {
		width: 100%;
	}

	.ldx-auth-foot {
		flex-direction: column;
		gap: 6px;
	}
}

.ldx-auth-tabs {
	display: flex;
	margin: 24px 0 0;
	border-bottom: 1px solid #e4ecf5;
}

.ldx-auth-tab {
	flex: 1 1 0;
	padding: 10px 4px 12px;
	background: none;
	border: 0;
	border-bottom: 2px solid transparent;
	font: inherit;
	font-size: 14px;
	color: #8a97a8;
	cursor: pointer;
	white-space: nowrap;
}

.ldx-auth-tab.is-active {
	color: #032974;
	border-bottom-color: #ff8a00;
	font-weight: 600;
}

.ldx-auth-pane[hidden] {
	display: none;
}

/* 「LED屏伙伴」小程序账号提示：沿用 .ldx-auth-note 的居中小字，
   品牌词加粗提色 —— 夹在 lead（大灰字）和普通 note 之间，
   位置紧跟 lead，是卡片里除标题外最显眼的一行说明。 */
.ldx-auth-note.ldx-sso-brand {
	margin: 10px 0 4px;
	color: #7b8a99;
}

.ldx-auth-note.ldx-sso-brand strong {
	font-weight: 600;
	color: #032974;
}

/* 验证码 Tab 里那句提示，比主 lead 弱一档 */
.ldx-auth-box .ldx-sso-tip {
	margin: 22px 0 0;
	font-size: 13px;
	color: #8a97a8;
}

.ldx-sso-form {
	margin: 18px 0 0;
}

.ldx-sso-field {
	margin: 0 0 18px;
}

.ldx-sso-field label {
	display: block;
	margin-bottom: 7px;
	font-size: 14px;
	color: #032974;
}

.ldx-sso-field input {
	width: 100%;
	height: 44px;
	padding: 0 14px;
	font-size: 15px;
	color: #333;
	background: #fff;
	border: 1px solid #d9e3ef;
	border-radius: 4px;
	box-sizing: border-box;
	transition: border-color .2s, box-shadow .2s;
}

.ldx-sso-field input:focus {
	outline: 0;
	border-color: #185fa5;
	box-shadow: 0 0 0 3px rgba(24, 95, 165, .08);
}

/* 验证码输入 + 发送按钮同一行 */
.ldx-sso-row {
	display: flex;
	gap: 8px;
}

.ldx-sso-row input {
	flex: 1 1 auto;
	min-width: 0;
}

#ldx-sso-send {
	flex: 0 0 auto;
	height: 44px;
	padding: 0 16px;
	font: inherit;
	font-size: 14px;
	color: #185fa5;
	background: #fff;
	border: 1px solid #cddced;
	border-radius: 4px;
	cursor: pointer;
	white-space: nowrap;
	transition: border-color .2s;
}

#ldx-sso-send:hover {
	border-color: #185fa5;
}

#ldx-sso-send:disabled {
	opacity: .6;
	cursor: not-allowed;
}

/* 反馈条：成功绿 / 失败红，平时占位避免高度跳动 */
.ldx-sso-msg {
	min-height: 20px;
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.6;
	color: #8a97a8;
}

.ldx-sso-msg.is-error {
	color: #a12b2b;
}

.ldx-sso-msg.is-ok {
	color: #3f7a3f;
}

.ldx-sso-submit {
	margin: 8px 0 0;
}

.ldx-sso-submit button {
	width: 100%;
	height: 46px;
	font: inherit;
	font-size: 16px;
	color: #fff;
	background: #ff8a00;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
	transition: background .2s;
}

.ldx-sso-submit button:hover {
	background: #e87c00;
}

.ldx-sso-submit button:disabled {
	opacity: .6;
	cursor: not-allowed;
}

/* 挂在 .ldx-auth-box 上，卡片外壳（白底 / 圆角 / 阴影）直接复用登录页  */
/* 那一套，这里只补「头像 + 信息行」的内部排版。                        */

.ldx-acc {
	max-width: 560px;
	box-sizing: border-box;
	padding: 40px 44px 34px;
}

.ldx-acc-head {
	display: flex;
	align-items: center;
	gap: 16px;
	padding-bottom: 24px;
	border-bottom: 1px solid #eef3f9;
}

.ldx-acc-face {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	overflow: hidden;
	background: #f0f8fd;
}

/* get_avatar() 会给 <img> 写死 width/height 属性，这里统一压回 64。 */
.ldx-acc-face img {
	width: 64px;
	height: 64px;
	display: block;
	border-radius: 50%;
}

/* 站点关闭「显示头像」时的兜底：名字首字色块。 */
.ldx-acc-initial {
	display: flex;
	width: 64px;
	height: 64px;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	line-height: 1;
	color: #032974;
	background: #dceaf7;
	border-radius: 50%;
}

.ldx-acc-id {
	min-width: 0;
}

.ldx-acc-name {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.3;
	color: #001f89;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ldx-acc-sub {
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
	color: #9aa7b8;
}

.ldx-acc-list {
	margin: 0;
	padding: 6px 0 4px;
}

.ldx-acc-row {
	display: flex;
	align-items: baseline;
	gap: 16px;
	padding: 13px 0;
	border-bottom: 1px dashed #eef3f9;
	font-size: 14px;
	line-height: 1.7;
}

.ldx-acc-row:last-child {
	border-bottom: 0;
}

.ldx-acc-k {
	flex: 0 0 84px;
	color: #8a97a8;
}

.ldx-acc-v {
	flex: 1 1 auto;
	min-width: 0;
	color: #22313f;
	word-break: break-all;
}

.ldx-acc-acts {
	margin-top: 22px;
}

.ldx-acc-note {
	margin: 18px 0 0;
	padding-top: 16px;
	border-top: 1px dashed #e4ecf5;
	font-size: 13px;
	line-height: 1.8;
	color: #9aa7b8;
	text-align: center;
}

.ldx-acc-note span {
	display: block;
}

@media (max-width: 750px) {
	.ldx-acc {
		padding: 30px 20px 26px;
	}

	.ldx-acc-head {
		gap: 12px;
		padding-bottom: 20px;
	}

	.ldx-acc-row {
		gap: 12px;
		padding: 11px 0;
	}

	.ldx-acc-k {
		flex-basis: 66px;
		font-size: 13px;
	}

	.ldx-acc-name {
		font-size: 18px;
	}
}
