:root { color-scheme: light; }
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body.login-page {
  min-width: 320px;
  margin: 0;
  color: #202734;
  background:
    radial-gradient(circle at 29% 45%, rgba(198, 239, 255, .48), transparent 30%),
    radial-gradient(circle at 62% 48%, rgba(235, 216, 255, .42), transparent 29%),
    linear-gradient(135deg, #f3f8ff 0%, #edf4ff 52%, #f4f7ff 100%);
  font: 14px/1.5 "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}
body.login-page::before,
body.login-page::after {
  content: "";
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(2px);
}
body.login-page::before { left: 12%; top: 18%; width: 390px; height: 390px; background: rgba(210, 241, 255, .28); }
body.login-page::after { right: 15%; top: 25%; width: 410px; height: 410px; background: rgba(235, 221, 255, .26); }
.auth-layout { position: relative; min-height: 100vh; padding: 88px 24px 104px; display: grid; place-items: start center; background: transparent; }
.auth-brand { position: fixed; z-index: 3; left: clamp(28px, 7.6vw, 98px); top: 18px; display: inline-flex; align-items: center; gap: 12px; color: #202532; text-decoration: none; }
.auth-brand strong { font-size: 22px; line-height: 34px; letter-spacing: -.4px; }
.auth-brand-mark { position: relative; width: 34px; height: 34px; display: block; }
.auth-brand-mark i { position: absolute; width: 9px; height: 9px; border-radius: 50%; }
.auth-brand-mark i:nth-child(1) { left: 1px; top: 12px; background: #2e74ef; }
.auth-brand-mark i:nth-child(2) { left: 11px; top: 2px; background: #18b9a0; }
.auth-brand-mark i:nth-child(3) { right: 1px; top: 9px; background: #2e74ef; }
.auth-brand-mark i:nth-child(4) { left: 11px; bottom: 2px; background: #f1ae30; }
.auth-brand-mark i:nth-child(5) { right: 1px; bottom: 7px; background: #ee694d; }
.auth-brand-mark i:nth-child(6) { left: 1px; bottom: 3px; background: #f3c23b; }
.auth-card { position: relative; z-index: 2; width: min(432px, calc(100vw - 32px)); min-height: 548px; padding: 48px 40px 30px; border: 1px solid rgba(255,255,255,.88); border-radius: 10px; background: rgba(248, 251, 255, .72); box-shadow: 0 18px 46px rgba(77, 111, 167, .13); backdrop-filter: blur(15px); transition: min-height .28s ease; }
.auth-card.register-mode { min-height: 720px; }
.auth-card-header { margin-bottom: 30px; }
.auth-eyebrow { margin: 0 0 6px; color: #6a91d8; font-size: 11px; line-height: 18px; font-weight: 700; letter-spacing: 2.4px; }
.auth-card-header h1 { margin: 0; color: #1e2735; font-size: 28px; line-height: 40px; font-weight: 700; }
.auth-card-header > p:last-child { margin: 6px 0 0; color: #8791a2; font-size: 13px; }
.auth-form[hidden] { display: none; }
.auth-field { margin-bottom: 17px; }
.auth-field > label,
.auth-field-pair > div > label { display: block; margin-bottom: 7px; color: #515968; font-size: 13px; font-weight: 500; }
.auth-field-pair { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.auth-field-pair > div { min-width: 0; }
.auth-field-pair .auth-input-shell { width: 100%; min-width: 0; }
.auth-input-shell { position: relative; height: 44px; border: 1px solid #d6deea; border-radius: 5px; display: flex; align-items: center; background: rgba(255,255,255,.74); transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.auth-input-shell:focus-within { border-color: #4e87eb; background: #fff; box-shadow: 0 0 0 3px rgba(67,126,230,.11); }
.auth-input-shell.invalid { border-color: #e25454; box-shadow: 0 0 0 3px rgba(226,84,84,.09); }
.auth-input-shell input { min-width: 0; flex: 1; height: 42px; padding: 0 13px; border: 0; outline: 0; color: #252c38; background: transparent; font: inherit; }
.auth-input-shell input::placeholder { color: #a5adba; }
.auth-prefix { height: 22px; min-width: 48px; padding: 0 11px; border-right: 1px solid #e2e7ef; color: #778397; line-height: 22px; }
.auth-lock {
  position: relative;
  width: 14px;
  height: 12px;
  flex: 0 0 14px;
  align-self: center;
  margin-left: 14px;
  margin-right: 0;
  border: 1.25px solid #8290a3;
  border-radius: 2.5px;
}
.auth-lock::before {
  content: "";
  position: absolute;
  left: 2.5px;
  top: -7px;
  width: 6.5px;
  height: 7px;
  box-sizing: border-box;
  border: 1.25px solid #8290a3;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}
.auth-lock::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  width: 2px;
  height: 3px;
  border-radius: 2px;
  background: #8290a3;
}
.auth-ticket { width: 40px; color: #76869d; text-align: center; font-size: 16px; }
.password-toggle {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 0;
  border: 0;
  display: grid;
  place-items: center;
  background: transparent;
  cursor: pointer;
}
.password-toggle span {
  position: relative;
  width: 20px;
  height: 14px;
  display: block;
}
.password-toggle span::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0;
  width: 12px;
  height: 12px;
  border: 1.5px solid #8692a3;
  border-radius: 75% 8%;
  transform: rotate(45deg);
}
.password-toggle span::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8692a3;
}
.password-toggle.visible::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 20px;
  width: 22px;
  height: 1.5px;
  border-radius: 2px;
  background: #768397;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.78);
  transform: rotate(-42deg);
}
.auth-field-error { min-height: 18px; margin: 3px 0 -2px; color: #d94949; font-size: 11px; line-height: 18px; }
.login-options { margin: -1px 0 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.remember-option,
.agreement-option { position: relative; display: flex; align-items: center; gap: 7px; color: #6e7888; cursor: pointer; }
.remember-option input,
.agreement-option input { position: absolute; opacity: 0; pointer-events: none; }
.remember-option > span,
.agreement-option > span { width: 14px; height: 14px; flex: 0 0 14px; border: 1px solid #b9c3d1; border-radius: 2px; background: #fff; }
.remember-option input:checked + span,
.agreement-option input:checked + span { position: relative; border-color: #3a79e9; background: #3a79e9; }
.remember-option input:checked + span::after,
.agreement-option input:checked + span::after { content: ""; position: absolute; left: 3px; top: 1px; width: 5px; height: 8px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.text-action,
.auth-switch,
.auth-footer button { padding: 0; border: 0; color: #3478ed; background: transparent; font: inherit; cursor: pointer; }
.text-action:hover,
.auth-switch:hover,
.auth-footer button:hover { color: #175bcf; }
.auth-submit { width: 100%; height: 44px; padding: 0 20px; border: 0; border-radius: 5px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #fff; background: linear-gradient(90deg,#5a94ef,#3478e8); box-shadow: 0 8px 18px rgba(52,120,232,.2); font-size: 16px; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease; }
.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 11px 23px rgba(52,120,232,.28); }
.auth-submit:disabled { opacity: .65; cursor: wait; transform: none; }
.auth-submit.loading i { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: auth-spin .7s linear infinite; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
.auth-switch-copy { margin: 17px 0 0; color: #7d8797; text-align: center; }
.auth-switch { margin-left: 4px; font-weight: 500; }
.agreement-option { align-items: flex-start; flex-wrap: wrap; margin: 2px 0 0; font-size: 12px; line-height: 18px; }
.agreement-option b { font-weight: 400; }
.agreement-option a { color: #3478ed; text-decoration: none; }
.agreement-error { margin-bottom: 9px; }
.auth-footer { position: fixed; z-index: 2; left: 50%; bottom: 28px; width: auto; height: auto; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; color: #8d98a9; background: transparent; white-space: nowrap; font-size: 12px; }
.auth-footer p { margin: 0; }
.auth-footer span { width: 1px; height: 12px; background: #c9d1dc; }
.auth-toast { position: fixed; z-index: 500; left: 50%; top: 28px; min-width: 230px; max-width: calc(100vw - 32px); padding: 11px 18px; border-radius: 7px; color: #fff; background: rgba(35,43,56,.92); text-align: center; box-shadow: 0 10px 26px rgba(24,35,51,.2); opacity: 0; transform: translate(-50%,-14px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.auth-toast.show { opacity: 1; transform: translate(-50%,0); }
.login-page .customer-service-tools { top: 50%; transform: translateY(-50%); }
@media (max-height: 760px) and (min-width: 641px) {
  .auth-layout { padding-top: 66px; padding-bottom: 80px; }
  .auth-card { padding-top: 30px; min-height: 510px; }
  .auth-card.register-mode { min-height: 650px; }
  .auth-card-header { margin-bottom: 20px; }
  .auth-field { margin-bottom: 11px; }
  .auth-footer { bottom: 14px; }
}
@media (max-width: 640px) {
  .auth-layout { padding: 76px 16px 90px; }
  .auth-brand { position: absolute; left: 20px; top: 16px; }
  .auth-brand strong { font-size: 18px; }
  .auth-card { padding: 34px 22px 26px; }
  .auth-field-pair { grid-template-columns: 1fr; gap: 0; }
  .auth-card.register-mode { min-height: 760px; }
  .auth-footer { position: absolute; bottom: 24px; width: calc(100% - 32px); justify-content: center; white-space: normal; text-align: center; }
  .login-page .customer-service-tools { top: auto; bottom: 88px; transform: none; }
}
