/* ============================================================
   鸿新国际 · 登录页 v3 · 海报与后台配置打通  「西海岸一比一」
   顶部全宽海报 + 浅灰白圆角卡片 + 白胶囊输入框 + 紫色胶囊按钮
   进场：整页自底部上滑 0.3s
   ============================================================ */

.kk-auth-page{
  --hx-w: min(100vw, 430px);
  --hx-poster-h: calc(var(--hx-w) * 0.8);
  --hx-purple: #a134f1;
  display: flex !important;
  justify-content: center !important;
  place-items: initial !important;
  padding: 0 !important;
  min-height: 100vh;
  max-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  color: #1b2138 !important;
  background: #e9eef7 !important;
  animation: hxAuthSlideUp .3s cubic-bezier(.22,.61,.36,1) both;
}

@keyframes hxAuthSlideUp{
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
@keyframes hxAuthSlideDown{
  from { transform: translateY(0); }
  to   { transform: translateY(100%); }
}
.kk-auth-page.hx-auth-closing{
  animation: hxAuthSlideDown .28s cubic-bezier(.4,0,.7,.3) both !important;
}

/* 页面在登录态时给 body 一个底，滑入过程不露白 */
body.hx-auth-open{ background: #e9eef7 !important; }

/* ---------- 外壳：顶部海报 ---------- */
.kk-auth-shell{
  width: var(--hx-w) !important;
  max-width: var(--hx-w) !important;
  min-height: 100vh !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  background-color: #f0f4fa !important;
  /* 海报改由后台「登录海报设置」驱动：这里只留兜底，不写死图片，
     否则 !important 会把后台配置的图压掉（之前的坑） */
  background-size: 100% auto !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
  position: relative !important;
}
/* 干掉原版压在海报上的深色渐变遮罩 */
.kk-auth-shell:after{ display: none !important; content: none !important; }

/* ---------- 卡片 ---------- */
.kk-auth-form,
.kk-auth-form-register{
  position: relative !important;
  z-index: 2 !important;
  width: auto !important;
  margin: calc(var(--hx-poster-h) - 26px) 15px 0 !important;
  padding: 28px 18px 30px !important;
  background: #ffffff !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 30px rgba(90,110,160,.13) !important;
  box-sizing: border-box !important;
  min-height: 0 !important;
}

/* ---------- 输入框：白色胶囊 ---------- */
.kk-field{
  height: 45px !important;
  margin: 0 0 16px !important;
  padding: 0 16px !important;
  gap: 11px !important;
  border-radius: 22px !important;
  background: #ffffff !important;
  border: 1px solid #edf0f6 !important;
  box-shadow: 0 2px 8px rgba(80,100,150,.07) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.kk-field:focus-within{
  border-color: #c9a6f7 !important;
  box-shadow: 0 0 0 3px rgba(161,52,241,.10), 0 2px 8px rgba(80,100,150,.07) !important;
}
.kk-field-icon{
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px !important;
  color: #b7bfd0 !important;
  filter: none !important;
}
.kk-field-icon svg,
.kk-field-icon .kk-vant-icon{
  color: #b7bfd0 !important;
  filter: none !important;
  font-size: 18px !important;
  width: 18px !important;
  height: 18px !important;
}
.kk-field input{
  color: #1b2138 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
}
.kk-field input::placeholder{ color: #aab2c4 !important; }
.kk-eye{ color: #b7bfd0 !important; width: 22px !important; height: 22px !important; flex: 0 0 22px !important; }
.kk-eye .kk-vant-icon{ font-size: 16px !important; }

/* ---------- 记住密码 / 先去逛逛 ---------- */
.kk-login-options{
  margin: 6px 2px 28px !important;
  padding: 0 4px !important;
}
.kk-remember{
  color: #6b7488 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  gap: 8px !important;
  text-shadow: none !important;
}
.kk-switch{
  width: 36px !important;
  height: 20px !important;
  background: #dfe4ee !important;
  box-shadow: none !important;
}
.kk-switch:before{
  width: 20px !important;
  height: 20px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.16) !important;
}
.kk-switch-on{ background: #a134f1 !important; }
.kk-switch-on:before{ transform: translateX(16px) !important; }
.kk-browse{
  color: #a134f1 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-shadow: none !important;
}

/* ---------- 登录按钮：紫色胶囊 ---------- */
.kk-primary,
.kk-register-primary{
  width: 100% !important;
  height: 50px !important;
  border-radius: 25px !important;
  border: 0 !important;
  background: linear-gradient(90deg, #b57bf5 0%, #a134f1 100%) !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  letter-spacing: .5px;
  text-shadow: none !important;
  box-shadow: 0 8px 20px rgba(161,52,241,.28) !important;
}
.kk-primary:before{ display: none !important; }
.kk-primary:disabled{ opacity: .6 !important; box-shadow: none !important; }
.kk-auth-error{ color: #e5484d !important; text-shadow: none !important; font-weight: 500 !important; }

/* ---------- 底部快捷入口 ---------- */
.kk-quick-actions{
  position: relative !important;
  margin: 30px 0 0 !important;
  gap: 48px !important;
  justify-content: center !important;
  z-index: 3 !important;
}
.kk-quick-actions button{
  flex: 0 0 auto !important;
  height: auto !important;
  padding: 4px 2px !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  color: #a134f1 !important;
  text-shadow: none !important;
}
.kk-quick-actions button svg{
  filter: none !important;
  width: 14px !important;
  height: 14px !important;
  fill: #a134f1 !important;
}
.kk-quick-actions button svg path{ fill: #a134f1 !important; }
.kk-quick-actions .kk-vant-icon{ color: #a134f1 !important; font-size: 14px !important; filter: none !important; }
.kk-quick-actions span{
  color: #a134f1 !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
}

/* ---------- 版本号 ---------- */
.kk-version{
  position: relative !important;
  margin: 26px 0 0 !important;
  z-index: 3 !important;
  color: #c2c9d6 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  gap: 10px !important;
}

/* ---------- 右上角关闭 ---------- */
.hx-auth-close{
  position: absolute !important;
  top: calc(env(safe-area-inset-top, 0px) + 12px) !important;
  right: 12px !important;
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  border: 0 !important;
  background: rgba(255,255,255,.9) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  backdrop-filter: blur(8px) !important;
  color: #6a7286 !important;
  display: grid !important;
  place-items: center !important;
  z-index: 20 !important;
  cursor: pointer !important;
  box-shadow: 0 3px 12px rgba(40,60,110,.18) !important;
}
.hx-auth-close:active{ transform: scale(.94) !important; }
.hx-auth-close svg{ display: block; }

/* ---------- 桌面端：卡片居中 ---------- */
@media (min-width: 600px){
  .kk-auth-page{ background: #dfe5f0 !important; }
  .kk-auth-shell{
    min-height: 100vh !important;
    box-shadow: 0 0 60px rgba(40,60,110,.14) !important;
  }
}

/* ---------- 海报兜底（后台配置没取到/被清空时才用） ---------- */
.kk-auth-shell:not([style*="background-image"]){
  background-image: url("/uploads/login-poster-hx-20261018.jpg") !important;
}
