* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font: 14px/1.5 "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.login-page {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: #333;
  background: #5a79f4;
}
.login-page::before, .login-page::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  background: #ffffff06;
  pointer-events: none;
}
.login-page::before { width: 950px; height: 950px; left: -187px; top: 43%; }
.login-page::after { width: 160px; height: 160px; right: 9%; top: 17%; }
.login-header { height: 60px; flex: none; background: #ffffff15; }
.login-header-inner { width: min(1260px, calc(100% - 48px)); height: 100%; margin: auto; display: flex; align-items: center; gap: 20px; color: #fff; }
.login-brand { display: flex; align-items: center; gap: 9px; font-size: 24px; font-weight: 650; }
.login-brand img { display: block; width: 34px; height: 34px; object-fit: contain; border-radius: 8px; }
.login-platform { padding-left: 20px; border-left: 1px solid #ffffff88; font-size: 20px; line-height: 24px; }
.login-home { margin-left: auto; font-size: 14px; white-space: nowrap; }
.login-main { flex: 1; display: grid; place-items: center; width: 100%; padding: 60px 24px; }
.login-card { display: grid; grid-template-columns: 520px 480px; width: 1000px; height: 560px; overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 15px 55px #3049ae15; }
.login-illustration { min-width: 0; overflow: hidden; background: #d4e2f4; }
.login-illustration img { display: block; width: 100%; height: 100%; object-fit: cover; }
.login-form-panel { min-width: 0; padding: 40px 50px; }
.login-tabs { display: flex; align-items: center; justify-content: center; gap: 30px; height: 35px; margin-bottom: 30px; }
.login-tabs button { padding: 0; border: 0; background: transparent; color: #333; font-size: 24px; font-weight: 700; line-height: 35px; white-space: nowrap; }
.login-tabs button[aria-selected="true"] { color: #0052d9; }
.login-tabs > span { width: 1px; height: 24px; flex: none; background: #d9d9d9; }
#login-form { position: relative; height: 375px; margin: 0; }
#login-form input:not([type="hidden"]):not([type="checkbox"]) { display: block; width: 100%; height: 50px; margin: 0; padding: 0 14px; border: 1px solid #ddd; border-radius: 2px; outline: 0; background: #fff; color: #333; font-size: 14px; }
#login-form input::placeholder { color: #999; opacity: 1; }
#login-form #account-password, .login-code-field { margin-top: 19px; }
#login-form input:not([type="checkbox"]):focus { border-color: #0052d9; box-shadow: 0 0 0 1px #0052d91c; }
.login-options { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; font-size: 14px; }
.login-options label { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.login-options input { appearance: none; width: 18px; height: 18px; margin: 0; border: 1px solid #ddd; border-radius: 2px; background: #fff; cursor: pointer; }
.login-options input:checked { appearance: auto; accent-color: #0052d9; }
.login-options a { color: #666; }
.login-code-field { position: relative; }
#login-form .login-code-field input { padding-right: 122px; }
#send-login-code { position: absolute; top: 5px; right: 5px; height: 40px; min-width: 104px; padding: 0 10px; border: 0; border-radius: 4px; background: #0052d9; color: #fff; font-size: 14px; font-weight: 600; }
.login-feedback { margin: 18px 0 0; max-height: 72px; color: #c33030; font-size: 13px; line-height: 1.7; }
.login-feedback[data-status="success"] { color: #137047; }
.login-submit-area { position: absolute; top: 271px; left: 0; right: 0; }
#login-submit { width: 100%; height: 50px; padding: 0; border: 0; border-radius: 5px; background: #0052d9; color: #fff; font-size: 14px; font-weight: 500; }
#login-submit:hover, #send-login-code:hover { background: #0047c1; }
button:disabled { cursor: default; opacity: .65; }
.login-register { display: inline-block; margin-top: 15px; color: #0052d9; font-size: 14px; }
.login-footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 20px; padding: 10px 24px 24px; color: #ffffffd9; font-size: 12px; text-align: center; }
a:focus-visible, button:focus-visible, input[type="checkbox"]:focus-visible { outline: 2px solid #0052d9; outline-offset: 4px; }
.login-header a:focus-visible { outline-color: #fff; }
@media (max-width: 1060px) {
  .login-card { width: min(1000px, 100%); grid-template-columns: minmax(0, 1fr) 440px; }
  .login-form-panel { padding-right: 30px; padding-left: 30px; }
}
@media (max-width: 760px) {
  .login-header-inner { width: calc(100% - 32px); gap: 12px; }
  .login-platform { display: none; }
  .login-brand { font-size: 21px; }
  .login-brand img { width: 30px; height: 30px; }
  .login-main { padding: 34px 20px; }
  .login-card { width: min(440px, 100%); height: 540px; grid-template-columns: minmax(0, 1fr); }
  .login-illustration { display: none; }
  .login-form-panel { padding: 40px 28px; }
  .login-tabs { gap: 20px; }
  .login-tabs button { font-size: 22px; }
  .login-footer { padding-bottom: 18px; gap: 4px 12px; }
}
@media (max-height: 760px) and (min-width: 761px) {
  .login-main { padding-top: 30px; padding-bottom: 30px; }
}
