:root {
  --zhike-bg: #f3f8ff;
  --zhike-surface: rgb(255 255 255 / .82);
  --zhike-surface-strong: #ffffff;
  --zhike-line: #cfe0f4;
  --zhike-line-soft: #e4eef9;
  --zhike-ink: #09244b;
  --zhike-muted: #526b89;
  --zhike-blue: #0866d8;
  --zhike-blue-deep: #0752b4;
  --zhike-blue-soft: #e7f2ff;
  --zhike-danger: #b42318;
  --zhike-shadow: 0 28px 80px rgb(31 93 160 / .14);
}

html,
body.login {
  min-height: 100%;
  background: var(--zhike-bg);
  color: var(--zhike-ink);
}

body.login {
  position: relative;
  margin: 0;
  font-family: "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  overflow-x: hidden;
}

body.login::before,
body.login::after {
  position: fixed;
  z-index: 0;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgb(93 169 255 / .2);
  filter: blur(48px);
  content: "";
  pointer-events: none;
}

body.login::before { top: -170px; right: 8%; }
body.login::after { bottom: -210px; left: 2%; background: rgb(191 224 255 / .42); }

.login #container {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  min-height: 100dvh;
  margin: 0;
  border: 0;
  background: transparent;
}

.login #header,
.login .breadcrumbs,
.login .theme-toggle { display: none; }

.login .main,
.login #content,
.login #content-main {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(430px, .94fr);
  width: min(calc(100% - 56px), 1240px);
  min-height: min(760px, calc(100dvh - 56px));
  margin: 28px auto;
  border: 1px solid rgb(207 224 244 / .88);
  border-radius: 28px;
  background: rgb(255 255 255 / .66);
  box-shadow: var(--zhike-shadow);
  overflow: hidden;
  backdrop-filter: blur(22px);
}

.login-story {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 700px;
  padding: 44px 50px 38px;
  border-right: 1px solid rgb(201 221 243 / .78);
  background: rgb(226 240 255 / .74);
  overflow: hidden;
}

.login-story::before {
  position: absolute;
  right: -88px;
  bottom: 92px;
  width: 300px;
  height: 300px;
  border: 70px solid rgb(255 255 255 / .28);
  border-radius: 50%;
  content: "";
}

.login-brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 12px;
  color: var(--zhike-ink);
  text-decoration: none;
}

.login-brand:hover { color: var(--zhike-ink); text-decoration: none; }

.login-brand-mark {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  border: 1px solid rgb(8 102 216 / .24);
  border-radius: 13px;
  background: rgb(255 255 255 / .68);
  box-shadow: inset 0 0 0 5px rgb(218 235 255 / .72);
}

.login-brand-mark i,
.login-brand-mark b {
  position: absolute;
  display: block;
  border-radius: 4px;
  background: var(--zhike-blue);
  content: "";
}

.login-brand-mark i { top: 10px; left: 10px; width: 11px; height: 11px; }
.login-brand-mark b { right: 9px; bottom: 9px; width: 14px; height: 14px; opacity: .55; }
.login-brand strong { display: block; font-size: 18px; line-height: 1.2; letter-spacing: .02em; }
.login-brand small { display: block; margin-top: 4px; color: var(--zhike-muted); font-size: 11px; letter-spacing: .08em; }

.login-story-copy {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin-top: 72px;
}

.login-eyebrow {
  display: block;
  margin-bottom: 16px;
  color: var(--zhike-blue-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}

.login-story h1 {
  max-width: 620px;
  margin: 0;
  color: var(--zhike-ink);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 750;
  line-height: 1.14;
  letter-spacing: -.035em;
}

.login-story-copy p {
  max-width: 590px;
  margin: 22px 0 0;
  color: #3f5e82;
  font-size: 15px;
  line-height: 1.85;
}

.agent-visual {
  position: relative;
  z-index: 2;
  width: 300px;
  height: 174px;
  margin-top: 30px;
}

.agent-orbit,
.agent-core {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgb(8 102 216 / .2);
  transform: translate(-50%, -50%);
}

.agent-orbit { border-radius: 50%; }
.orbit-outer { width: 288px; height: 144px; }
.orbit-inner { width: 206px; height: 102px; border-color: rgb(8 102 216 / .35); }

.agent-orbit span {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 2px solid #d8eaff;
  border-radius: 50%;
  background: var(--zhike-blue);
  box-shadow: 0 0 0 7px rgb(8 102 216 / .08);
}

.orbit-outer span:first-child { top: 22px; right: 30px; }
.orbit-outer span:last-child { bottom: 18px; left: 42px; }
.orbit-inner span { top: 8px; left: 48px; }

.agent-core {
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  border-radius: 28px;
  background: rgb(255 255 255 / .78);
  box-shadow: 0 14px 34px rgb(26 94 170 / .16);
  backdrop-filter: blur(16px);
}

.agent-core i { position: absolute; inset: 9px; border: 1px solid rgb(8 102 216 / .15); border-radius: 21px; }
.agent-core strong { margin-top: 14px; color: var(--zhike-blue); font-size: 24px; line-height: 1; }
.agent-core small { align-self: start; margin-top: -6px; color: var(--zhike-muted); font-size: 10px; }

.login-trust-list {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgb(8 102 216 / .13);
  color: #315678;
  font-size: 12px;
  font-weight: 600;
}

.login-trust-list span { display: inline-flex; align-items: center; gap: 8px; }
.login-trust-list span::before { width: 6px; height: 6px; border-radius: 50%; background: var(--zhike-blue); content: ""; }

.login-panel {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 70px 64px 46px;
  background: rgb(255 255 255 / .72);
}

.back-home {
  position: absolute;
  top: 30px;
  right: 34px;
  color: var(--zhike-muted);
  font-size: 13px;
  text-decoration: none;
}

.back-home::before { margin-right: 7px; content: "←"; }
.back-home:hover { color: var(--zhike-blue); }

.login-form-wrap { width: min(100%, 430px); }
.login-form-head { margin-bottom: 30px; }
.login-form-head .login-eyebrow { margin-bottom: 12px; }
.login-form-head h2 { margin: 0; color: var(--zhike-ink); font-size: 29px; line-height: 1.25; letter-spacing: -.02em; }
.login-form-head p { margin: 12px 0 0; color: var(--zhike-muted); font-size: 13px; line-height: 1.7; }

.login #login-form .form-row { padding: 0 0 18px; border: 0; }
.login #login-form .form-row label { display: block; margin: 0 0 8px; color: #244a70; font-size: 13px; font-weight: 700; line-height: 1.3; }
.login #login-form .form-row input {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid #bfd3ea;
  border-radius: 12px;
  background: rgb(255 255 255 / .86);
  color: var(--zhike-ink);
  font: inherit;
  box-shadow: inset 0 1px 2px rgb(9 36 75 / .03);
}

.login #login-form .form-row input:focus {
  border-color: var(--zhike-blue);
  outline: 3px solid rgb(8 102 216 / .12);
  box-shadow: none;
}

.consent-notice {
  margin: 2px 0 14px;
  padding: 14px 15px;
  border: 1px solid #d5e5f6;
  border-radius: 12px;
  background: #f5f9fe;
  color: #365a7c;
  line-height: 1.6;
}

.consent-notice strong { display: block; margin-bottom: 3px; color: #173f68; font-size: 13px; }
.consent-notice p { margin: 0; font-size: 12px; }

.consent-field {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin: 0 0 18px;
  color: #355575;
  font-size: 12px;
  line-height: 1.55;
}

.consent-field input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--zhike-blue); }
.consent-field label { cursor: pointer; }

.login .submit-row { margin: 0; padding: 0; border: 0; background: transparent; }
.login .submit-row input {
  width: 100%;
  min-height: 50px;
  margin: 0;
  border: 1px solid var(--zhike-blue);
  border-radius: 12px;
  background: var(--zhike-blue);
  color: white;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 12px 26px rgb(8 102 216 / .2);
  cursor: pointer;
}

.login .submit-row input:hover { background: var(--zhike-blue-deep); border-color: var(--zhike-blue-deep); }
.login .errornote { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #f3b5af; border-radius: 10px; background: #fff6f5; color: var(--zhike-danger); font-size: 13px; }
.login .errorlist { margin: 0 0 7px; padding: 0; color: var(--zhike-danger); list-style: none; font-size: 12px; }
.login-support { margin: 18px 0 0; color: #7388a2; font-size: 12px; text-align: center; }
.login #footer {
  width: 100%;
  padding: 0 24px 24px;
  color: #7388a2;
  text-align: center;
}
.login-record-footer .icp-record { margin: 0; }
.login-record-footer a { color: inherit; font-size: 12px; }
.login-record-footer a:hover { color: var(--zhike-blue-deep); }

@media (prefers-reduced-motion: no-preference) {
  .login .submit-row input { transition: background .18s ease, border-color .18s ease, transform .18s ease; }
  .login .submit-row input:hover { transform: translateY(-1px); }
}

@media (max-width: 960px) {
  .login-shell { grid-template-columns: 1fr; width: min(calc(100% - 36px), 720px); }
  .login-story { min-height: auto; padding: 32px 34px 28px; border-right: 0; border-bottom: 1px solid var(--zhike-line); }
  .login-story-copy { margin-top: 40px; }
  .login-story h1 { max-width: 620px; font-size: 38px; }
  .agent-visual { position: absolute; right: 10px; bottom: 42px; opacity: .38; transform: scale(.8); }
  .login-trust-list { margin-top: 34px; }
  .login-panel { min-height: 560px; padding: 72px 48px 44px; }
}

@media (max-width: 600px) {
  body.login::before,
  body.login::after { width: 220px; height: 220px; }
  .login-shell { width: calc(100% - 24px); min-height: 0; margin: 12px auto; border-radius: 22px; }
  .login-story { padding: 24px 22px; }
  .login-brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .login-story-copy { margin-top: 30px; }
  .login-story h1 { font-size: 29px; line-height: 1.2; }
  .login-story-copy p { margin-top: 14px; font-size: 13px; line-height: 1.7; }
  .agent-visual { display: none; }
  .login-trust-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 24px; padding-top: 18px; }
  .login-panel { min-height: 0; padding: 68px 22px 30px; }
  .back-home { top: 24px; right: 22px; }
  .login-form-head { margin-bottom: 24px; }
  .login-form-head h2 { font-size: 25px; }
}
