:root {
  --login-ink: #17313a;
  --login-muted: #6d7f85;
  --login-paper: #f3f6f4;
  --login-white: #fffdf9;
  --login-line: #d9e1de;
  --login-accent: #e66f58;
  --login-accent-dark: #c95440;
  --login-deep: #173b46;
  --login-deep-soft: #22505a;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--login-ink);
  background: var(--login-paper);
  font-family: "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  line-height: 1.5;
}
button, input { font: inherit; }
button { cursor: pointer; }

.login-shell {
  display: grid;
  grid-template-columns: minmax(420px, 1.08fr) minmax(420px, .92fr);
  min-height: 100dvh;
}

.brand-panel {
  position: relative;
  display: flex;
  min-height: 100dvh;
  overflow: hidden;
  color: #f7fbf8;
  background: var(--login-deep);
}
.brand-panel::before,
.brand-panel::after {
  position: absolute;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(222, 239, 231, .17);
  border-radius: 50%;
}
.brand-panel::before { width: 580px; height: 580px; right: -250px; top: -210px; }
.brand-panel::after { width: 430px; height: 430px; left: -250px; bottom: -210px; }
.brand-panel-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(650px, 100%);
  min-height: 100dvh;
  padding: clamp(32px, 6vw, 80px);
}
.brand-mark,
.mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
}
.brand-mark img,
.mobile-brand img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
}
.brand-copy { max-width: 520px; margin: auto 0; padding: 56px 0; }
.overline {
  margin: 0 0 18px;
  color: var(--login-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.brand-copy h1 {
  margin: 0;
  font-size: clamp(38px, 5.2vw, 70px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
}
.brand-copy h1 em { color: #aee0cf; font-style: normal; }
.brand-description {
  max-width: 430px;
  margin: 28px 0 0;
  color: #c0d3d0;
  font-size: 16px;
  line-height: 1.8;
}
.brand-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #b1c6c2;
  font-size: 12px;
  letter-spacing: .06em;
}
.signal-line { display: inline-block; width: 44px; height: 1px; background: var(--login-accent); }
.brand-stamp {
  position: absolute;
  right: 12%;
  bottom: 12%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 110px;
  height: 110px;
  padding: 12px;
  color: rgba(247, 251, 248, .22);
  border: 1px solid rgba(247, 251, 248, .2);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  transform: rotate(-10deg);
}
.brand-stamp span { display: grid; place-items: center; border: 1px solid rgba(247, 251, 248, .12); }

.form-panel {
  display: flex;
  align-items: center;
  background: var(--login-white);
}
.form-panel-inner { width: min(420px, 100%); margin: 0 auto; padding: 40px clamp(28px, 7vw, 84px); }
.mobile-brand { display: none; color: var(--login-ink); margin-bottom: 54px; }
.form-intro h2 { margin: 0; font-size: clamp(30px, 4vw, 42px); line-height: 1.15; }
.form-intro p:last-child { margin: 12px 0 0; color: var(--login-muted); font-size: 14px; }
[hidden] { display: none !important; }
.login-form { margin-top: 44px; }
.input-field { display: block; margin-bottom: 22px; }
.input-field span { display: block; margin-bottom: 8px; color: var(--login-ink); font-size: 13px; font-weight: 700; }
.input-field input {
  display: block;
  width: 100%;
  padding: 14px 0;
  color: var(--login-ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--login-line);
  border-radius: 0;
  outline: none;
}
.input-field input:focus { border-color: var(--login-accent); box-shadow: 0 2px 0 var(--login-accent); }
.login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  padding: 15px 18px;
  color: #fff;
  background: var(--login-accent);
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, border-color .18s ease, color .18s ease;
}
.login-button:hover { background: var(--login-accent-dark); }
.login-button:active { transform: translateY(1px); }
.login-button:disabled { cursor: wait; opacity: .65; }
.login-button.secondary {
  color: var(--login-accent);
  background: transparent;
  border-color: var(--login-accent);
}
.login-button.secondary:hover { background: var(--login-accent); color: #fff; }
.login-button.first { margin-top: 34px; }
.button-arrow { font-size: 22px; font-weight: 400; line-height: 1; }
.login-error { margin-top: 16px; padding: 11px 12px; color: #9b3a2c; background: #fff3ef; border-left: 3px solid var(--login-accent); font-size: 13px; }
.login-success { margin-top: 16px; padding: 11px 12px; color: #14604a; background: #e9f7f1; border-left: 3px solid #1a7a5e; font-size: 13px; }
.form-note { margin: 42px 0 0; color: #8c9a9b; font-size: 12px; }

@media (max-width: 820px) {
  .login-shell { grid-template-columns: 1fr; }
  .brand-panel { min-height: 46dvh; }
  .brand-panel-inner { min-height: 46dvh; padding: 28px 24px 26px; }
  .brand-copy { margin: auto 0 0; padding: 44px 0 14px; }
  .brand-copy h1 { font-size: clamp(32px, 9vw, 54px); }
  .brand-description, .brand-stamp { display: none; }
  .brand-footer { display: none; }
  .form-panel { min-height: 54dvh; align-items: flex-start; }
  .form-panel-inner { padding: 34px 24px 48px; }
}
@media (max-width: 480px) {
  .brand-mark { font-size: 16px; }
  .brand-mark img { width: 38px; height: 38px; }
  .mobile-brand { display: inline-flex; }
  .form-intro .overline { display: none; }
  .form-intro h2 { font-size: 30px; }
  .login-form { margin-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .login-button { transition: none; }
}
.beian-footer { padding: 20px 16px 26px; text-align: center; font-size: 12px; line-height: 1.8; }
.beian-footer a { color: var(--login-ink, #6b7a7b); opacity: .75; text-decoration: none; }
.beian-footer a:hover { opacity: 1; text-decoration: underline; }
.beian-inline { margin: 20px 0 0; text-align: center; font-size: 12px; }
.beian-inline a { color: var(--login-ink, #6b7a7b); opacity: .7; text-decoration: none; }
.beian-inline a:hover { opacity: 1; text-decoration: underline; }
.beian-mobile { display: none; margin: 10px 0 0; text-align: center; font-size: 11.5px; }
.beian-mobile a { color: var(--login-ink, #6b7a7b); opacity: .7; text-decoration: none; }
@media (max-width: 480px) { .beian-mobile { display: block; } }
