/* =====================================================================
 * 盒子自定义登录/注册页（hezi/pages/user-sign.php 框架样式）
 * 左：Magnific 风格幻灯片；右：登录面板（内嵌子比原生登录卡片）
 * 颜色一律走 HEZI_SKIN 令牌，自动适配浅/深。
 * ===================================================================== */

* { box-sizing: border-box; }
html.hezi-login-on, body.hezi-login-on { height: 100%; }
body.hezi-login-on {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #F4F0EB;
  background: var(--hezi-bg);
  color: #2B2622;
  color: var(--hezi-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.hezi-login-on a { color: inherit; text-decoration: none; }
.hezi-login-on button { cursor: pointer; font-family: inherit; }

.hezi-login-wrap { display: flex; height: 100vh; width: 100%; overflow: hidden; }

/* 登录页是独立全屏页，忽略全站左侧导航的左边距（避免被挤偏/溢出），并隐藏该导航 */
body.hezi-login-on.hezi-has-sidebar { padding-left: 0 !important; }
body.hezi-login-on .hezi-aside,
body.hezi-login-on .hezi-aside__overlay { display: none !important; }
/* 屏蔽子比 onload 后弹出的系统通知弹窗及其全屏 backdrop（避免拦截登录页点击） */
body.hezi-login-on #modal-system-notice,
body.hezi-login-on .modal-backdrop { display: none !important; pointer-events: none !important; }
body.hezi-login-on.modal-open { overflow: visible !important; }

/* ===== 左侧幻灯片（占 54%） ===== */
.hezi-login-slideshow {
  position: relative; height: 100%; flex: 1 1 54%; width: auto; overflow: hidden;
  background: #1a1a1a;
}
.hezi-login-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease;
}
.hezi-login-slide.active { opacity: 1; }
.hezi-login-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hezi-login-slide .mask {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,.2) 55%, transparent);
}
.hezi-login-slide .caption { position: absolute; left: 48px; right: 48px; bottom: 132px; }
.hezi-login-slide .caption h2 {
  font-size: 30px; font-weight: 700; color: #fff; letter-spacing: .3px;
  text-shadow: 0 2px 12px rgba(0,0,0,.4); margin: 0;
}
.hezi-login-slide .caption p {
  margin-top: 8px; max-width: 420px; font-size: 14px;
  color: rgba(255,255,255,.82); line-height: 1.6;
}
.hezi-login-slide-tabs {
  position: absolute; left: 48px; right: 48px; bottom: 40px;
  display: flex; gap: 28px;
}
.hezi-login-slide-tab {
  background: none; border: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
  font-size: 11px; font-weight: 700; letter-spacing: .15em;
  color: rgba(255,255,255,.4); transition: color .3s;
}
.hezi-login-slide-tab.active { color: #fff; }
.hezi-login-slide-tab .track {
  width: 34px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.12);
  overflow: hidden; position: relative;
}
.hezi-login-slide-tab .fill {
  position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left;
}
.hezi-login-slide-tab.active .fill { animation: hezi-login-progress 5s linear forwards; }
@keyframes hezi-login-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hezi-login-slide-mark {
  position: absolute; top: 32px; left: 48px; z-index: 3;
  font-size: 13px; font-weight: 700; letter-spacing: .22em; color: rgba(255,255,255,.85);
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
}

/* ===== 右侧登录面板（占 46%） ===== */
.hezi-login-panel {
  position: relative; flex: 1 1 46%; width: auto; height: 100%;
  background: #F4F0EB;
  background: var(--hezi-bg);
  display: flex; flex-direction: column; overflow-y: auto;
}
.hezi-login-form-area {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px; width: 100%;
}
.hezi-login-logo { margin-bottom: 18px; display: flex; justify-content: center; }
.hezi-login-logo img { height: 64px; width: auto; }
.hezi-login-head { text-align: center; margin-bottom: 18px; }
.hezi-login-head p { font-size: 20px; font-weight: 700; color: var(--hezi-text); margin: 0; }

/* 容器：限制卡片宽度并居中 */
.hezi-login-card { width: 100%; max-width: 400px; }

/* ===== 覆写子比原生登录卡片，套用 HEZI_SKIN（全面美化） ===== */
.hezi-login-card .sign {
  width: 100% !important; max-width: 100% !important;
  background: var(--hezi-surface) !important;
  border: 1px solid var(--hezi-border) !important;
  border-radius: var(--radius, 14px) !important;
  box-shadow: 0 12px 32px rgba(43,38,34,.10), var(--shadow, none) !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  padding: 30px 28px 26px !important;
  margin: 0 !important;
}
/* 标题与切换链接同一行（仅作用于含标题的 box-body） */
.hezi-login-card .sign .box-body:has(.title-h-left) {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 18px !important;
}
.hezi-login-card .title-h-left {
  color: var(--hezi-text) !important; font-weight: 800; font-size: 22px; margin: 0; letter-spacing: .5px;
}
.hezi-login-card .box-body:has(.title-h-left) .muted-color.px12 {
  font-size: 12.5px; color: var(--hezi-text-2) !important; white-space: nowrap; flex-shrink: 0;
}
.hezi-login-card .box-body:has(.title-h-left) .muted-color.px12:hover { color: var(--hezi-accent) !important; }
.hezi-login-card .box-body { padding: 0 !important; }
.hezi-login-card .tab-content { margin: 0 !important; }

/* 输入框（子比 line-form）改为方框式，跟随令牌 */
.hezi-login-card .line-form { margin-bottom: 16px !important; }
.hezi-login-card .line-form-input {
  background: var(--hezi-elevated) !important;
  border: 1px solid var(--hezi-border) !important;
  border-radius: 10px !important;
  color: var(--hezi-text) !important;
  height: 46px !important; line-height: 46px !important;
  padding: 0 15px !important;
  font-size: 14px;
  box-shadow: none !important;
  transition: border-color .2s, box-shadow .2s;
}
.hezi-login-card .line-form-input:focus {
  border-color: var(--hezi-accent) !important;
  box-shadow: 0 0 0 3px var(--hezi-accent-soft, rgba(169,116,79,.14)) !important;
}
.hezi-login-card .scale-placeholder { color: var(--hezi-text-3) !important; left: 15px !important; font-size: 14px; }
.hezi-login-card .line-form-line { display: none !important; }
.hezi-login-card .abs-right.passw { right: 14px !important; color: var(--hezi-text-3) !important; cursor: pointer; transition: color .2s; }
.hezi-login-card .abs-right.passw:hover { color: var(--hezi-accent) !important; }

/* 记住登录 / 协议勾选行 */
.hezi-login-card .relative.line-form.mb10.em09 {
  display: flex; align-items: center; justify-content: space-between;
  margin: 2px 0 18px !important; font-size: 13px;
}
.hezi-login-card .form-checkbox {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--hezi-text-2) !important; font-size: 13px;
}
.hezi-login-card .form-checkbox input { width: 15px; height: 15px; accent-color: var(--hezi-accent); cursor: pointer; flex-shrink: 0; }
.hezi-login-card .form-checkbox label { cursor: pointer; }
.hezi-login-card .pull-right { font-size: 13px; }
.hezi-login-card .pull-right a,
.hezi-login-card .muted-2-color a { color: var(--hezi-text-2) !important; }
.hezi-login-card .pull-right a:hover { color: var(--hezi-accent) !important; text-decoration: underline; }

/* 协议提示文字 */
.hezi-login-card .muted-color.mt10.text-center.px12.opacity8 {
  font-size: 12px; line-height: 1.6; color: var(--hezi-text-2) !important;
}
.hezi-login-card .muted-color.mt10.text-center.px12.opacity8 a { color: var(--hezi-accent) !important; font-weight: 600; }
.hezi-login-card .muted-color.mt10.text-center.px12.opacity8 a:hover { text-decoration: underline; }

/* 扫码登录区 */
.hezi-login-card .qrcode-signin-container { padding: 12px 0 4px; }
.hezi-login-card .qrcode-signin-container .placeholder {
  border-radius: 12px !important; background: var(--hezi-elevated) !important;
}

/* 主按钮：套用强调色 */
.hezi-login-card .but.jb-green,
.hezi-login-card .but.jb-blue {
  background: var(--hezi-accent) !important;
  border-color: var(--hezi-accent) !important;
  color: var(--hezi-accent-on) !important;
  border-radius: 10px !important;
  height: 48px !important; line-height: 48px !important;
  font-weight: 700 !important; font-size: 15px; letter-spacing: 1px;
  box-shadow: 0 6px 16px var(--hezi-accent-soft, rgba(169,116,79,.22)) !important;
  transition: background .2s, transform .1s, box-shadow .2s;
}
.hezi-login-card .but.jb-green:hover,
.hezi-login-card .but.jb-blue:hover {
  background: var(--hezi-accent-hover) !important;
  box-shadow: 0 8px 22px var(--hezi-accent-soft, rgba(169,116,79,.32)) !important;
}
.hezi-login-card .but.jb-green:active,
.hezi-login-card .but.jb-blue:active { transform: translateY(1px); }

/* 链接/小字 */
.hezi-login-card .muted-color,
.hezi-login-card .muted-3-color { color: var(--hezi-text-2) !important; }
.hezi-login-card .muted-3-color:hover,
.hezi-login-card .muted-color:hover { color: var(--hezi-accent) !important; }

/* 社交登录按钮（子比 social_loginbar）：默认盒式大按钮。
   整体大/小由 .sign 上的 .hezi-social-lg / .hezi-social-sm 控制；
   默认「跟随父主题」= 读父主题 oauth_button_lg 开关（大小按钮取父数据）。 */
.hezi-login-card .social_loginbar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; justify-content: center; }
.hezi-login-card .social_loginbar .social-login-item {
  flex: 1 1 calc(50% - 5px); min-width: 0; height: 46px !important;
  border-radius: var(--radius, 10px) !important;
  display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--hezi-border) !important; background: var(--hezi-surface) !important;
  color: var(--hezi-text) !important; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: .18s; box-shadow: none !important; padding: 0 12px !important;
}
/* 父主题原生 button-lg（oauth_button_lg 开启）：整行更醒目、带平台名 */
.hezi-login-card .social_loginbar .social-login-item.button-lg {
  flex: 1 1 100%; height: 52px !important; font-size: 15px; font-weight: 700;
}
/* 强制小图标模式：圆形、无文字 */
.hezi-login-card .hezi-social-sm .social_loginbar .social-login-item {
  flex: 0 0 auto; width: 44px !important; height: 44px !important; padding: 0 !important;
  border-radius: 50% !important; font-size: 0;
}
.hezi-login-card .hezi-social-sm .social_loginbar .social-login-item i { font-size: 18px; }
.hezi-login-card .social_loginbar .social-login-item:hover { border-color: var(--hezi-accent) !important; transform: translateY(-1px); }
.hezi-login-card .social_loginbar .weixin, .hezi-login-card .social_loginbar .weixingzh { color: var(--wx, #07C160) !important; }
.hezi-login-card .social_loginbar .weixin:hover, .hezi-login-card .social_loginbar .weixingzh:hover { border-color: var(--wx, #07C160) !important; background: rgba(7,193,96,.06) !important; }
.hezi-login-card .social_loginbar .qq { color: var(--qq, #12B7F5) !important; }
.hezi-login-card .social_loginbar .qq:hover { border-color: var(--qq, #12B7F5) !important; background: rgba(18,183,245,.06) !important; }
.hezi-login-card .social_loginbar .alipay { color: var(--alipay, #1677FF) !important; }
.hezi-login-card .social_loginbar .alipay:hover { border-color: var(--alipay, #1677FF) !important; background: rgba(22,119,255,.06) !important; }
.hezi-login-card .social_loginbar .github { color: var(--github, #24292F) !important; }
.hezi-login-card .social_loginbar .github:hover { border-color: var(--github, #24292F) !important; background: rgba(36,41,47,.06) !important; }
.hezi-login-card .social_loginbar .weibo { color: var(--weibo, #E6162D) !important; }
.hezi-login-card .social_loginbar .weibo:hover { border-color: var(--weibo, #E6162D) !important; background: rgba(230,22,45,.06) !important; }
.hezi-login-card .social_loginbar .gitee { color: var(--gitee, #C71D23) !important; }
.hezi-login-card .social_loginbar .gitee:hover { border-color: var(--gitee, #C71D23) !important; background: rgba(199,29,35,.05) !important; }

/* 社交分隔文案（父主题输出）→ 优雅细线分隔 */
.hezi-login-card .social-separator {
  display: flex; align-items: center; gap: 12px;
  text-align: center; margin: 22px 0 14px; font-size: 12px; color: var(--hezi-text-3) !important;
}
.hezi-login-card .social-separator::before,
.hezi-login-card .social-separator::after { content: ""; flex: 1; height: 1px; background: var(--hezi-divider); }

/* 全局禁用登录注册提示 */
.hezi-login-ban {
  text-align: center; font-size: 16px; font-weight: 600; color: var(--hezi-text-2);
  background: var(--hezi-surface); border: 1px solid var(--hezi-border); border-radius: var(--radius, 10px);
  padding: 28px 20px;
}

/* ===== 响应式：窄屏隐藏幻灯片，面板占满 ===== */
@media (max-width: 860px) {
  .hezi-login-slideshow { display: none; }
  .hezi-login-panel { width: 100%; flex: 1 1 auto; }
  .hezi-login-card { max-width: 100%; }
  .hezi-login-form-area { padding: 32px 20px; }
}

/* =====================================================================
 * 两步式登录/注册 UI（hezi_login_two_step 输出，包在 .hezi-ts 内）
 * 视觉延续上面的 HEZI_SKIN 令牌；字段走方框式，与左侧演示原型一致。
 * 子比原生 .line-form / .social-login-item / .captchsubmit 在本区块内
 * 被覆写为统一 demo 风格，但点击逻辑（扫码、发码）保持原生不变。
 * ===================================================================== */
.hezi-ts { width: 100%; position: relative; }
.hezi-ts .view-hidden { display: none !important; }
.hezi-ts .ts-view { animation: hezi-ts-in .32s cubic-bezier(.22,.61,.36,1) both; }
@keyframes hezi-ts-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* 社交胶囊（覆盖子比原生 oauth 链接外观，保留扫码点击逻辑） */
.hezi-login-card .hezi-ts .ts-social { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 4px; }
/* 默认：小图标（半行、稍矮） */
.hezi-login-card .hezi-ts .ts-social .social-login-item {
  flex: 1 1 calc(50% - 5px); min-width: 0; height: 42px !important;
  border-radius: var(--radius, 10px) !important;
  display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--hezi-border) !important; background: var(--hezi-surface) !important;
  color: var(--hezi-text) !important; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: .18s; box-shadow: none !important; padding: 0 !important;
}
/* 大图标（整行、更高、更醒目）—— 由后台 login_social_big 控制注入 hezi-social-big */
.hezi-login-card .hezi-ts .ts-social .social-login-item.hezi-social-big {
  flex: 1 1 100%; height: 52px !important; font-size: 15px; font-weight: 700;
}
.hezi-login-card .hezi-ts .ts-social .social-login-item:hover { border-color: var(--hezi-accent) !important; transform: translateY(-1px); }
.hezi-login-card .hezi-ts .ts-social .weixin, .hezi-login-card .hezi-ts .ts-social .weixingzh { color: var(--wx, #07C160) !important; }
.hezi-login-card .hezi-ts .ts-social .weixin:hover, .hezi-login-card .hezi-ts .ts-social .weixingzh:hover { border-color: var(--wx, #07C160) !important; background: rgba(7,193,96,.06) !important; }
.hezi-login-card .hezi-ts .ts-social .qq { color: var(--qq, #12B7F5) !important; }
.hezi-login-card .hezi-ts .ts-social .qq:hover { border-color: var(--qq, #12B7F5) !important; background: rgba(18,183,245,.06) !important; }
.hezi-login-card .hezi-ts .ts-social .alipay { color: var(--alipay, #1677FF) !important; }
.hezi-login-card .hezi-ts .ts-social .alipay:hover { border-color: var(--alipay, #1677FF) !important; background: rgba(22,119,255,.06) !important; }
.hezi-login-card .hezi-ts .ts-social .github { color: var(--github, #24292F) !important; }
.hezi-login-card .hezi-ts .ts-social .github:hover { border-color: var(--github, #24292F) !important; background: rgba(36,41,47,.06) !important; }
.hezi-login-card .hezi-ts .ts-social .weibo { color: var(--weibo, #E6162D) !important; }
.hezi-login-card .hezi-ts .ts-social .weibo:hover { border-color: var(--weibo, #E6162D) !important; background: rgba(230,22,45,.06) !important; }
.hezi-login-card .hezi-ts .ts-social .gitee { color: var(--gitee, #C71D23) !important; }
.hezi-login-card .hezi-ts .ts-social .gitee:hover { border-color: var(--gitee, #C71D23) !important; background: rgba(199,29,35,.05) !important; }

/* 分隔线 */
.hezi-ts .ts-divider { display: flex; align-items: center; gap: 12px; margin: 14px 0; font-size: 11px; color: var(--hezi-text-3); font-weight: 500; }
.hezi-ts .ts-divider::before, .hezi-ts .ts-divider::after { content: ""; flex: 1; height: 1px; background: var(--hezi-divider); }

/* 字段（方框式，跟随令牌） */
.hezi-ts .hezi-field { margin-bottom: 13px; }
.hezi-ts .hezi-field.has-eye { position: relative; }
.hezi-ts .hezi-field input {
  width: 100%; height: 44px; border-radius: var(--radius, 10px); border: 1px solid var(--hezi-border);
  background: var(--hezi-surface); color: var(--hezi-text); font-size: 14px; padding: 0 14px; transition: .18s; outline: none;
}
.hezi-ts .hezi-field input::placeholder { color: var(--hezi-text-3); }
.hezi-ts .hezi-field input:focus { border-color: var(--hezi-accent); box-shadow: 0 0 0 3px var(--hezi-accent-soft, rgba(169,116,79,.12)); }
.hezi-ts .hezi-field.has-eye input { padding-right: 44px; }
.hezi-ts .hezi-eye {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; background: none;
  color: var(--hezi-text-3); display: grid; place-items: center; border-radius: 6px;
}
.hezi-ts .hezi-eye:hover { color: var(--hezi-accent); }
.hezi-ts .hezi-eye svg { width: 18px; height: 18px; }

/* 行（记住 / 忘记） */
.hezi-ts .hezi-row-between { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 16px; font-size: 13px; }
.hezi-ts .hezi-remember { display: inline-flex; align-items: center; gap: 7px; color: var(--hezi-text-2); cursor: pointer; }
.hezi-ts .hezi-remember input { width: 15px; height: 15px; accent-color: var(--hezi-accent); cursor: pointer; }
.hezi-ts .hezi-link { color: var(--hezi-accent); font-weight: 600; }
.hezi-ts .hezi-link:hover { text-decoration: underline; }

/* 协议勾选 */
.hezi-ts .form-checkbox { display: inline-flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--hezi-text-2); margin: 2px 0 18px; line-height: 1.5; }
.hezi-ts .form-checkbox input { width: 15px; height: 15px; margin-top: 2px; accent-color: var(--hezi-accent); cursor: pointer; flex-shrink: 0; }
.hezi-ts .form-checkbox a { color: var(--hezi-accent); font-weight: 600; }
.hezi-ts .form-checkbox a:hover { text-decoration: underline; }

/* 主按钮（继续 / 注册 等两步式自有按钮） */
.hezi-ts .hezi-btn-primary {
  width: 100%; height: 46px; border: 0; border-radius: var(--radius, 10px); background: var(--hezi-accent);
  color: var(--hezi-accent-on); font-size: 15px; font-weight: 600; letter-spacing: 1px; transition: .18s; box-shadow: var(--shadow);
}
.hezi-ts .hezi-btn-primary:hover { background: var(--hezi-accent-hover); }
.hezi-ts .hezi-btn-primary:active { background: var(--hezi-accent-active); }
.hezi-ts .hezi-btn-primary:disabled { opacity: .5; cursor: not-allowed; }

/* 表单底部链接 */
.hezi-ts .hezi-form-foot { margin-top: 20px; text-align: center; font-size: 13px; color: var(--hezi-text-2); }
.hezi-ts .hezi-form-foot .hezi-link { color: var(--hezi-accent); font-weight: 600; }
.hezi-ts .hezi-form-foot .hezi-link:hover { text-decoration: underline; }

/* 返回上一步 */
.hezi-ts .hezi-step-back { margin: 0 0 14px; text-align: left; }
.hezi-ts .hezi-step-back button { background: none; border: 0; color: var(--hezi-accent); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; padding: 0; }
.hezi-ts .hezi-step-back button:hover { text-decoration: underline; }
.hezi-ts .hezi-step-back svg { width: 16px; height: 16px; }

/* 只读（账号展示） */
.hezi-ts input[readonly] { background: var(--hezi-elevated); color: var(--hezi-text-2); cursor: default; }

/* 验证码发送按钮（子比 .captchsubmit，发送逻辑沿用原生） */
.hezi-ts .captchsubmit {
  border: 1px solid var(--hezi-accent) !important; color: var(--hezi-accent) !important; background: transparent !important;
  border-radius: var(--radius, 10px) !important; font-weight: 600; box-shadow: none !important;
}
.hezi-ts .captchsubmit:hover:not([disabled]) { background: var(--hezi-accent-soft, rgba(169,116,79,.12)) !important; }
.hezi-ts .captchsubmit[disabled] { opacity: .6; cursor: not-allowed; }

/* 子比原生 line-form（验证码邮箱/手机/验证码输入）在 .hezi-ts 内统一为方框式，已继承上方 .hezi-login-card 覆写 */
.hezi-ts .line-form { margin-bottom: 13px !important; }
.hezi-ts .change-show { margin-bottom: 13px !important; }

