/* ==========================================================================
   ng-auth.css —— 目标站 /home/「会员中心」登录 / 注册大弹窗皮肤
   实测基准（2026-11-09 16:05–16:12，https://vzq31.top/home/）：
     · 遮罩 .ng-auth-overlay  fixed / z 9990 / rgba(57,60,73,.814)
       backdrop-filter: blur(14px) saturate(.94)，flex 居中
     · 注册态 .ng-auth-card  [410,151.6,620,596.8]  padding 26/24  r16
       bg #fffdfd / border 1px #e1d4ea / shadow 0 20px 64px rgba(0,0,0,.25)
       ::before = member-tl.webp 150px @ 左上 + member-br.webp 135px @ 右下，opacity .1
       ::after  = 紫粉「包裹框」：inset 2px / border 30px transparent /
                  border-image: modal-frame.webp 100 / 30px / 0 stretch / opacity .85
                  （实测 theme.css 的 --td-frame，512×336 九宫格：四角水晶花 + 四边菱形宝石）
     · 副标题「登录后参与战神榜与每日彩票」按先生要求移除，标题与 tabs 间距 16px
     · 登录态 420 宽单列；注册态 620 宽，pane 2 列 279+279 / gap 12
     · tabs 2×281 / gap 8 / h42 / r10；input 279×44 / r12 / 14px
     · submit 570×44 / r999 / image-set(button.avif,button.webp) / #fff9ed 16/750
     · 390 端 card 354 宽、单列、pane 320 宽
   作用域只挂 #meModal.is-authwall，其它弹窗（资料 / 钱包 / 抽奖）不受影响。
   机制差异（按先生要求）：不设密保、密码 ≥6 位、算术验证码沿用本地。
   ========================================================================== */

/* ---- 1. 遮罩与外层 panel ------------------------------------------------ */
#meModal.is-authwall {
  z-index: 9990;
  padding: 16px 12px;
}
#meModal.is-authwall .me-modal__backdrop {
  background: rgba(57, 60, 73, .814);
  -webkit-backdrop-filter: blur(14px) saturate(.94);
  backdrop-filter: blur(14px) saturate(.94);
}
#meModal.is-authwall .me-modal__panel {
  width: auto;
  max-width: none;
  max-height: calc(100dvh - 32px);
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  animation: none;
}
#meModal.is-authwall .me-modal__head { display: none; }
#meModal.is-authwall .me-modal__body { padding: 0; }

/* ---- 2. 卡片本体 + 双角花纹 -------------------------------------------- */
#meAuthWall.ng-auth-card {
  --ng-auth-gem: image-set(
    url("../../images/clone/arcade/button.avif") 1dppx type("image/avif"),
    url("../../images/clone/arcade/button.webp") 1dppx type("image/webp"));

  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  width: 420px;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 26px 24px;
  background: #fffdfd;
  border: 1px solid #e1d4ea;
  border-radius: 16px;
  box-shadow: 0 20px 64px rgba(0, 0, 0, .25);
  color: #3b2a49;
  font-size: 16px;
  line-height: 25.6px;
}
#meAuthWall.ng-auth-card[data-ng-auth-mode="register"] { width: 620px; }

#meAuthWall.ng-auth-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    url("../../images/clone/arcade/member-tl.webp") left top / 150px auto no-repeat,
    url("../../images/clone/arcade/member-br.webp") right bottom / 135px auto no-repeat;
  opacity: .1;
  border-radius: 16px;
  pointer-events: none;
}
/* 目标站紫粉包裹框：modal-frame.webp 九宫格 border-image，
   不是 1px 描边 / 不是渐变 —— 实测 computed：
   border 30px solid transparent; border-image url(...) 100 / 30px / 0 stretch;
   inset 2px; opacity .85; z-index -1; border-radius 16px。 */
#meAuthWall.ng-auth-card::after {
  content: "";
  box-sizing: border-box;
  position: absolute;
  z-index: -1;
  inset: 2px;
  width: auto;
  height: auto;
  border: 30px solid transparent;
  border-image: url("../../images/clone/arcade/modal-frame.webp") 100 / 30px / 0 stretch;
  border-radius: 16px;
  background: none;
  box-shadow: none;
  opacity: .85;
  pointer-events: none;
}

/* ---- 3. 关闭 / 标题 / 副标题 -------------------------------------------- */
#meAuthWall .ng-auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #e8e4e9;
  border-radius: 50%;
  background: #f7f5f7;
  color: #7450a0;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(59, 42, 73, .06), inset 0 1px 0 rgba(255, 255, 255, .24);
}
#meAuthWall .ng-auth-close:hover { background: #efe7f6; }
#meAuthWall .ng-auth-title {
  margin: 2px 0 16px;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: #3b2a49;
}
/* .ng-auth-sub（登录后参与战神榜与每日彩票）按先生要求从 DOM 移除，样式一并删除 */

/* ---- 4. 登录 / 注册 tab -------------------------------------------------- */
#meAuthWall .ng-auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
#meAuthWall .ng-auth-tab {
  box-sizing: border-box;
  height: 42px;
  padding: 8px;
  border: 1px solid #e1d4ea;
  border-radius: 10px;
  background: #fffdfd;
  box-shadow: inset 0 0 0 2px #fffdfd, inset 0 0 0 3px rgba(116, 80, 160, .18);
  color: #3b2a49;
  font-size: 16px;
  font-weight: 400;
  line-height: 19.2px;
  text-align: center;
  cursor: pointer;
}
#meAuthWall .ng-auth-tab.active {
  background: #eee8f2;
  border-color: #7450a0;
  font-weight: 700;
}

/* ---- 5. 表单：登录单列 / 注册 2 列 --------------------------------------- */
#meAuthWall .ng-auth-pane {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 0;
}
#meAuthWall[data-ng-auth-mode="register"] .ng-auth-pane {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 12px;
}
#meAuthWall .ng-auth-full { grid-column: 1 / -1; }

#meAuthWall .ng-auth-field { display: block; min-width: 0; }
#meAuthWall .ng-auth-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  color: #64748b;
}
#meAuthWall .ng-auth-password { position: relative; display: block; }
#meAuthWall .ng-auth-input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #e1d4ea;
  border-radius: 12px;
  background: #fffdfd;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .58);
  color: #3b2a49;
  font-size: 14px;
  font-weight: 400;
  line-height: 22.4px;
  outline: none;
}
#meAuthWall .ng-auth-input:focus {
  border-color: #7450a0;
  box-shadow: 0 0 0 3px rgba(116, 80, 160, .14);
}
#meAuthWall .ng-auth-input::placeholder { color: #98a2b3; }
#meAuthWall .ng-auth-password .ng-auth-input { padding-right: 48px; }
#meAuthWall .ng-auth-eye {
  position: absolute;
  top: 0;
  right: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #7450a0;
  font-size: 15px;
  cursor: pointer;
}
/* 眼睛是描边图标，不给 fill:none / stroke 会渲染成黑色实心块 */
#meAuthWall .ng-auth-eye svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- 6. 算术验证码行（本地机制，视觉对齐目标站验证码区） ------------------ */
#meAuthWall .ng-auth-captcha {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 8px;
  align-items: end;
}
/* 目标站验证码是 228×72 图形卡；本地机制是算术验证码，
   用同尺寸浅紫算式卡占位，保持大弹窗高度与视觉节奏一致。 */
#meAuthWall .ng-auth-captcha-card.me-captcha {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 72px;
  margin: 0 0 8px;
  padding: 0 12px;
  border: 1px solid #e1d4ea;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef2ff, #f8f0ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
  color: #4c3b8f;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 3px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
#meAuthWall .ng-auth-refresh {
  box-sizing: border-box;
  width: 132px;
  min-width: 0;
  height: 44px;
  padding: 0 10px;
  border: 1px solid #fff;
  border-radius: 12px;
  background: linear-gradient(#dc79c9, #6f56c9);
  box-shadow: 0 8px 18px rgba(111, 86, 201, .16);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 20.8px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

/* ---- 7. 宝石提交按钮 ----------------------------------------------------- */
#meAuthWall .ng-auth-submit {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  margin-top: 4px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background-color: #6a4693;
  background-image: var(--ng-auth-gem);
  background-size: 100% 100%;
  background-position: center;
  color: #fff9ed;
  font-size: 16px;
  font-weight: 750;
  line-height: 25.6px;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
  cursor: pointer;
}
#meAuthWall .ng-auth-submit.is-loading { opacity: .75; }
#meAuthWall .ng-auth-alt {
  text-align: center;
  font-size: 12px;
  color: #725d81;
}
#meAuthWall .ng-auth-link {
  padding: 0 2px;
  border: 0;
  background: none;
  color: #7450a0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* ---- 8. 390 端：目标站 354 宽单列 --------------------------------------- */
@media (max-width: 768px) {
  #meAuthWall.ng-auth-card,
  #meAuthWall.ng-auth-card[data-ng-auth-mode="register"] {
    width: min(354px, calc(100vw - 36px));
    /* 354 - 2(border) - 2×16 = 320，与目标站 390 端 pane 宽一致 */
    padding: 24px 16px;
  }
  #meAuthWall[data-ng-auth-mode="register"] .ng-auth-pane {
    grid-template-columns: minmax(0, 1fr);
  }
  #meAuthWall .ng-auth-captcha {
    grid-template-columns: minmax(0, 1fr) 110px;
  }
  #meAuthWall .ng-auth-refresh { width: 110px; }
}

/* ---------- 第三十九轮：注册表单邮箱验证码行 ---------- */
#meAuthWall .ng-auth-code {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 8px;
  align-items: end;
}
#meAuthWall .ng-auth-code .ng-auth-field { min-width: 0; }
#meAuthWall .ng-auth-code .ng-auth-refresh { height: 44px; }
@media (max-width: 620px) {
  #meAuthWall .ng-auth-code { grid-template-columns: minmax(0, 1fr) 110px; }
}
