/* 公共登录与协议弹窗，样式独立于具体页面。 */
.kh-auth-layer.layui-layer,
.kh-policy-layer.layui-layer {
  max-width: calc(100vw - 32px);
  background: transparent;
  box-shadow: none;
}
.kh-auth-layer .layui-layer-content,
.kh-policy-layer .layui-layer-content { height: auto!important; }
.kh-auth,
.kh-policy { position: relative; width: 100%; outline: none; color: #111; font: 14px/1.5 "Microsoft YaHei", "PingFang SC", sans-serif; }
.kh-auth *, .kh-policy * { box-sizing: border-box; }
.kh-auth [hidden], .kh-policy [hidden] { display: none!important; }
.kh-auth button, .kh-policy button { margin: 0; font-family: inherit; cursor: pointer; }
.kh-auth { height: 540px; border-radius: 36px; background: url(../images/login/login-bg.png) center/100% 100% no-repeat; }
.kh-auth-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 50px; height: 50px; padding: 0; border: 0; border-radius: 50%;
  background: url(../images/login/close.png) center/100% 100% no-repeat;
}
.kh-auth-close:hover { background-image: url(../images/login/close-hover.png); }
.kh-auth button:focus-visible, .kh-policy button:focus-visible, .kh-policy-content:focus-visible { outline: 2px solid #007eff; outline-offset: 3px; }
.kh-auth-panel { width: 450px; height: 540px; margin-left: auto; padding: 64px 48px 24px; }
.kh-auth-panel h2 { margin: 0 0 24px; font-size: 28px; font-weight: 700; line-height: 40px; }
.kh-auth-field { position: relative; display: flex; align-items: center; width: 100%; height: 54px; border: 1px solid transparent; border-radius: 12px; background: #f8faff; }
.kh-auth-field + .kh-auth-field { margin-top: 18px; }
.kh-auth-field:focus-within { border-color: #007eff; }
.kh-auth-field.is-invalid { border-color: #ff4d4f; }
.kh-auth-field-icon { position: absolute; left: 18px; width: 25px; height: 25px; background: center/contain no-repeat; pointer-events: none; }
.kh-auth-mobile .kh-auth-field-icon { background-image: url(../images/login/mobile.png); }
.kh-auth-field-icon::after { content: ''; position: absolute; top: 50%; left: 34px; width: 1px; height: 14px; background: #EBF0F8; transform: translateY(-50%); }
.kh-auth-code .kh-auth-field-icon { background-image: url(../images/login/code.png); }
.kh-auth-password .kh-auth-field-icon { background-image: url(../images/login/reset-code.png); }
.kh-auth-field input:not([type=button]) { display: block; flex: 1; min-width: 0; width: 100%; height: 100%; margin: 0; padding: 0 16px 0 64px; border: 0; border-radius: inherit; outline: none; box-shadow: none; background: transparent; color: #111; font: 14px/normal "Microsoft YaHei", sans-serif; }
.kh-auth-field input::placeholder { color: #c3cbd4; }
.kh-auth-code input[name=code] { width: 0; padding-right: 8px; }
.kh-auth-send { flex: 0 0 120px; margin: 0; padding: 0 ; border: 0;  background: transparent; color: #007eff; font: 12px "Microsoft YaHei", sans-serif; cursor: pointer;    width: 120px;height: 49px;background: #FFFFFF;border-radius: 14px;margin-right: 2px; }
.kh-auth-send:hover { background: #EAF2FF;  }
.kh-auth-send:disabled { color: #8cbbed; cursor: default; }
.kh-auth-consent { display: flex; align-items: center; gap: 4px; min-height: 20px; margin-top: 14px; font-size: 12px; line-height: 20px; white-space: nowrap; }
.kh-auth-consent label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.kh-auth-consent input { appearance: none; width: 14px; height: 14px; margin: 0; border: 1px solid #dfedfb; border-radius: 4px; background: #fff; cursor: pointer; }
.kh-auth-consent input:checked { border-color: #007eff; background: #007eff url(../images/login/check.png) center/10px 7px no-repeat; }
.kh-auth-consent input:focus-visible { outline: 2px solid #007eff; outline-offset: 2px; }
.kh-auth-consent button { padding: 0; border: 0; background: transparent; color: #68a9e9; font-size: 12px; line-height: 20px; transition: all 0.3s ease-out;}
.kh-auth-consent button:hover{
  color: rgba(0, 126, 255, 1);
}
.kh-auth-policy-comma { margin-left: -4px; color: #68a9e9; }
.kh-auth-consent .kh-auth-forgot { margin-left: auto; color: #333; }
.kh-auth-submit, .kh-auth-switch, .kh-policy-agree { display: flex; align-items: center; justify-content: center; width: 100%; height: 54px; padding: 0; border: 1px solid transparent; border-radius: 12px; font-size: 16px; font-weight: 700; line-height: 24px; }
.kh-auth-submit { margin-top: 36px!important; background: #007eff; color: #fff;transition: all 0.3s ease-out;}
.kh-auth-submit:hover:not(:disabled) { color: rgba(0, 126, 255, 1); border: 1px solid rgba(0, 126, 255, 1);background: #fff;}
.kh-auth-submit:disabled { background: #bfdfff; color: #fff; cursor: default; }
.kh-auth-divider { display: flex; align-items: center; gap: 16px; height: 20px; margin: 10px 0; font-weight: 700; line-height: 20px; }
.kh-auth-divider::before, .kh-auth-divider::after { content: ''; flex: 1; height: 1px; background: #f0f2f5; }
.kh-auth-switch { background: #000; color: #fff; font-size: 14px; font-weight: 400; transition: all 0.3s ease-out;}
.kh-auth-switch:hover { background: #fff; color: #000000;border: 1px solid #000000; }
.kh-auth[data-mode=password] .kh-auth-switch,
.kh-auth[data-mode=forgot] .kh-auth-switch {     border-color: #111;
  background: #000000;
  color: #fff; }
.kh-auth[data-mode=password] .kh-auth-switch:hover,
.kh-auth[data-mode=forgot] .kh-auth-switch:hover {  background: #fff; color: #000000;border: 1px solid #000000;}
.kh-auth[data-mode=forgot] .kh-auth-field + .kh-auth-field { margin-top: 12px; }
.kh-auth[data-mode=forgot] .kh-auth-code .kh-auth-field-icon { background-image: url(../images/login/code.png); }
.kh-auth[data-mode=forgot] .kh-auth-send { height: 44px; margin-right: 4px; padding: 0 8px; background: #fff; }
.kh-auth[data-mode=forgot] .kh-auth-send:hover:not(:disabled),
.kh-auth[data-mode=forgot] .kh-auth-send:focus-visible:not(:disabled) { background: #eaf2ff; color: #007eff; }
.kh-auth[data-mode=forgot] .kh-auth-submit { margin-top: 18px!important; }
.kh-auth-note { margin: 20px 0 0; color: #b8c0ca; font-size: 12px; line-height: 18px; text-align: center; white-space: nowrap; }
.kh-auth-note > span { color: #007eff; }
.kh-policy { height: 611px; background: url(../images/login/agreement-bg.png) center/100% 100% no-repeat; }
.kh-policy-close { top: 48px; right: 10px; }
.kh-policy-heading { position: absolute; top: 63px; left: 50px; right: 65px; display: flex; align-items: center; gap: 12px; }
.kh-policy-heading img { width: 47px; height: 47px; }
.kh-policy-heading h2 { margin: 0; font-size: 28px; font-weight: 700; line-height: 40px; }
.kh-policy-content { position: absolute; top: 160px; right: 40px; left: 50px; height: 310px; padding-right: 18px; overflow-y: auto; overscroll-behavior: contain; color: #8791a4; font-size: 14px; line-height: 25px; scrollbar-width: thin; scrollbar-color: #87abc5 transparent; }
.kh-policy-content::-webkit-scrollbar { width: 4px; }
.kh-policy-content::-webkit-scrollbar-thumb { border-radius: 4px; background: #87abc5; }
.kh-policy-content p { margin: 0 0 20px; }
.kh-policy-content h3 { margin: 26px 0 8px; color: #3d465b; font-size: 14px; font-weight: 700; }
.kh-policy-content article { overflow-wrap: anywhere; }
.kh-policy-content article img { max-width: 100%; height: auto; }
.kh-policy-agree { position: absolute; bottom: 30px; left: 50%; width: 354px; transform: translateX(-50%); background: #000; color: #fff; }
.kh-policy-agree:hover { background: #007eff; }
@media (max-width: 640px) {
  .kh-auth { border-radius: 24px; background: #fff; }
  .kh-auth-panel { width: 100%; padding-right: 28px; padding-left: 28px; }
  .kh-auth-panel h2 { font-size: 24px; }
  .kh-auth-send { flex-basis: 108px; width: 108px; }
  .kh-auth-field input:not([type=button]) { padding-left: 48px; }
  .kh-auth-consent { gap: 2px; font-size: 11px; }
  .kh-auth-consent button { font-size: 11px; }
  .kh-auth-note { font-size: 10px; }
  .kh-policy { border-radius: 24px; background: linear-gradient(130deg, #eef7ff, #e1e5ff); }
  .kh-policy-heading { top: 60px; left: 24px; right: 24px; gap: 8px; }
  .kh-policy-heading h2 { font-size: 22px; }
  .kh-policy-heading img { width: 36px; height: 36px; }
  .kh-policy-close { top: 8px; }
  .kh-policy-content { top: 122px; right: 20px; left: 24px; height: 370px; padding: 16px; border-radius: 12px; background: #ffffffb3; }
  .kh-policy-agree { bottom: 24px; width: calc(100% - 48px); }
}
@media (max-height: 650px) {
  .kh-auth-layer .layui-layer-content, .kh-policy-layer .layui-layer-content { max-height: calc(100vh - 24px); overflow-y: auto; }
}
