body .dialog.signInDialog {
  width:min(900px,100%); max-height:calc(100dvh - 32px); overflow:auto; overscroll-behavior:contain;
  border:1px solid #e1dbe9; border-radius:22px; background:#fff;
  box-shadow:0 28px 90px rgb(30 18 55 / 26%);
}
body .dialog.signInDialog::before {display:none}
body .signInDialog .dialogBody {padding:0}
.modalLayer:has(.signInDialog) > .scrim {background:rgb(24 18 42 / 42%);backdrop-filter:blur(5px)}

.signInLayout {display:grid;grid-template-columns:minmax(0,1.03fr) minmax(0,1fr)}
.signInArt {min-width:0}
@media (min-width:721px) {
  .signInArt {
    background:url("/brand/kaibao-portrait.webp") center bottom / contain no-repeat,
      linear-gradient(165deg,#7545e6,#8652ec 55%,#a870f5);
  }
}
.signInContent {
  display:flex;flex-direction:column;min-width:0;min-height:510px;box-sizing:border-box;
  padding:30px clamp(26px,3vw,42px) 24px;background:#fff;
}
.signInTop,.signInBrand,.wechatChoice,.signInLinks,.signInDivider {display:flex;align-items:center}
.signInTop {justify-content:space-between;gap:12px}
.signInBrand {gap:8px;color:#251c37;font-size:17px;font-weight:700;line-height:1}
.signInBrand img {border-radius:12.5%;object-fit:contain}
body .signInDialog .closeBtn {width:34px;height:34px;min-width:34px;border:0;border-radius:50%;background:transparent;color:#756f80}
body .signInDialog .closeBtn:hover {background:#f2eff6;color:#312a3c}
body .signInDialog h2 {margin:26px 0 22px;color:#231c2f;font-size:clamp(25px,2.2vw,30px);line-height:1.2;font-weight:700;letter-spacing:-.035em}
.signInDialog h2:focus {outline:none}
.signInDialog form {display:grid;grid-template-columns:minmax(0,1fr);gap:0;margin:0}
body .signInDialog form > label {margin:14px 0 7px;color:#40394c;font-size:13px;font-weight:600;line-height:1.4}
body .signInDialog form > label:first-child {margin-top:0}
body .signInDialog .field,.signInDialog .authCodeRow {
  min-height:46px;height:46px;box-sizing:border-box;margin:0;border:1px solid #ddd9e5;
  border-radius:10px;background:#faf9fc;
}
body .signInDialog .field {min-width:0;padding:0 13px;color:#2b2335;font-size:14px;font-weight:400}
.signInDialog .field::placeholder {color:#817a8c}
body .signInDialog .field:focus,.signInDialog .authCodeRow:focus-within {outline:0;border-color:#8b68cb;background:white;box-shadow:0 0 0 3px #8053bc18}
.signInDialog .authCodeRow {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0;padding-right:4px}
body .signInDialog .authCodeRow .field {height:100%;min-height:0;border:0;outline:0;box-shadow:none;background:transparent}
body .signInDialog [data-send-code] {min-width:0;min-height:34px;height:auto;padding:6px 10px;border:0;border-radius:7px;background:#efe8fb;color:#5b3892;font-size:12px;font-weight:600;white-space:nowrap}
body .signInDialog [data-send-code]:hover:not(:disabled) {background:#e5d7fa}
body .signInDialog [data-send-code]:disabled {opacity:1;background:#eeebf3;color:#82778e}
body .signInDialog .field:disabled {opacity:1;color:#70697b}
body .signInDialog [data-channel-status],body .signInDialog #accountError {margin:8px 0 2px;color:#666070;font-size:12px;line-height:1.55}
body .signInDialog [data-error="true"],body .signInDialog #accountError {color:#a02844}
.signInDialog #accountError:empty {display:none}
body .signInDialog .authWide {
  display:flex;align-items:center;justify-content:center;width:100%;height:46px;min-height:46px;
  margin:14px 0 0;padding:0 14px;border:0;border-radius:10px;color:#fff;
  background:linear-gradient(105deg,#5c39b7,#7446ca 76%,#8253d2);font-size:15px;font-weight:650;
}
body .signInDialog .authWide:hover:not(:disabled) {background:linear-gradient(105deg,#5132a3,#683db9)}
body .signInDialog .authWide:disabled {opacity:1;background:#e9e1f6;color:#66517c;cursor:not-allowed}
.signInAlternatives {margin-top:auto;padding-top:22px;text-align:center}
.signInDivider {gap:12px;justify-content:center;color:#756e80;font-size:12px}
.signInDivider::before,.signInDivider::after {content:"";flex:1;height:1px;background:#e9e5ee}
.signInDialog .wechatChoice {
  justify-content:center;gap:8px;min-height:42px;margin:13px auto 0;padding:4px 18px;
  border:1px solid #d7eadc;border-radius:24px;background:#f6fcf8;color:#215838;font-size:14px;font-weight:600;
}
.signInDialog .wechatChoice:hover {border-color:#9fd3ae;background:#ecf8f0}
.wechatChoice img {flex:none}
.signInLinks {flex-wrap:wrap;justify-content:center;gap:4px 12px;margin:6px 0 0}
.signInLinks button,.signInDialog .signInTextButton {min-height:32px;border:0;background:transparent;color:#62566f;font-size:12px}
.signInLinks button {padding:4px}
.signInLinks button + button {position:relative}
.signInLinks button + button::before {content:"";position:absolute;top:50%;left:-7px;width:1px;height:10px;background:#dcd7e4;transform:translateY(-50%)}
.signInDialog .signInTextButton {justify-self:center;padding:5px 10px}
.signInLinks button:hover,.signInDialog .signInTextButton:hover {color:#5b21b6;text-decoration:underline;text-underline-offset:3px}
.signInDialog button:focus-visible {outline:2px solid #8054c7;outline-offset:2px}
@media (max-width:720px) {
  body .dialog.signInDialog {width:min(408px,100%);max-height:calc(100dvh - 24px);border-radius:18px}
  .signInLayout {grid-template-columns:minmax(0,1fr)}
  .signInArt {display:none}
  .signInContent {min-height:0;padding:20px clamp(16px,5vw,26px) 15px}
  body .signInDialog h2 {margin:21px 0 18px}
  .signInAlternatives {padding-top:18px}
  .signInLinks button,.signInDialog .signInTextButton {min-height:40px}
}

