body:has(.sc-auth), body:has(.sc-entry-fallback) {
  min-width:0;
  min-height:0;
  margin:0;
  background:#fff;
}
body:has(.sc-auth) {
  min-height:100vh;
  background:radial-gradient(ellipse at 12% 12%,#dfece5,transparent 62%),
    radial-gradient(ellipse at 96% 100%,#e8ede2,transparent 52%),#f4f7f3;
}
.sc-auth, .sc-entry-wait, .sc-entry-fallback {
  color:#182936;
  font-family:system-ui,"PingFang SC","Microsoft YaHei",sans-serif;
}
.sc-auth,.sc-auth *,.sc-entry-wait,.sc-entry-fallback {box-sizing:border-box;}
.sc-auth {
  --sc-auth-accent:#086b55;
  display:grid;
  place-items:center;
  min-height:100vh;
  min-height:100svh;
  padding:clamp(24px,4vw,64px);
}
.sc-auth--platform {min-height:calc(100vh - 45px);min-height:calc(100svh - 45px);}
.sc-auth-frame {
  display:grid;
  grid-template-columns:minmax(0,1.06fr) minmax(338px,1fr);
  width:min(100%,984px);
  min-height:506px;
  padding:10px;
  border:1px solid #dce8e1;
  border-radius:24px;
  background:#fff;
  box-shadow:0 24px 66px rgba(19,60,51,.12),0 3px 12px rgba(19,60,51,.05);
}
.sc-auth-visual {
  min-width:0;
  padding:31px;
  border-radius:16px;
  color:#fff;
  background:#0c302e url("../images/admin-entry-district.jpg") center / cover no-repeat;
}
.sc-auth-brand {
  display:inline-flex;
  align-items:center;
  gap:11px;
  color:#fff;
  font-size:19px;
  font-weight:650;
  letter-spacing:.035em;
  overflow-wrap:anywhere;
}
.sc-auth-mark {
  display:inline-grid;
  flex:0 0 39px;
  width:39px;
  height:39px;
  place-items:center;
  vertical-align:middle;
  border-radius:12px;
  background:#fff;
}
.sc-auth-mark img {display:block;width:31px;height:31px;border-radius:7px;object-fit:contain;}
.sc-auth-mark:empty {
  background:transparent url("../images/xinjie-brand-circle.svg") center / contain no-repeat;
}
.sc-auth-sheet {
  display:grid;
  align-content:center;
  justify-items:center;
  min-width:0;
  padding:38px clamp(24px,4vw,60px);
}
.sc-auth-card {width:100%;max-width:354px;text-align:left;}
.sc-auth-card h1 {margin:0 0 30px;color:#142a25;font-size:30px;font-weight:700;line-height:1.25;}
.sc-auth-intro {margin:0 0 22px;color:#516663;font-size:14px;line-height:1.6;}
.sc-auth-form {display:grid;gap:14px;margin:0;}
.sc-auth-field {position:relative;min-width:0;}
.sc-auth-field label {
  position:absolute;
  width:1px;
  height:1px;
  margin:0;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
}
@font-face {
  font-family:sc-auth-icons;
  src:url("../components/font-awesome-4.6.3/fonts/fontawesome-webfont.woff2") format("woff2");
  font-display:block;
}
.sc-auth-icon {
  position:absolute;
  z-index:1;
  top:50%;
  left:14px;
  width:16px;
  transform:translateY(-50%);
  color:#617d74;
  font:14px/1 sc-auth-icons;
  text-align:center;
  pointer-events:none;
}
.sc-auth-icon--account::before {content:"\f007";}
.sc-auth-icon--password::before {content:"\f023";}
.sc-auth-icon--captcha::before {content:"\f132";}
.sc-auth-field .sc-auth-input {
  display:block;
  width:100%;
  min-width:0;
  height:49px;
  padding:0 13px 0 40px;
  border:1px solid #cad8d2;
  border-radius:10px;
  background:#fbfcfb;
  color:#142a25;
  font:inherit;
  font-size:14px;
  line-height:1.4;
}
.sc-auth-input::placeholder {color:#60746f;}
.sc-auth-input:focus {border-color:var(--sc-auth-accent);outline:2px solid #b9ded1;outline-offset:1px;background:#fff;}
.sc-auth-password, .sc-auth-captcha {display:flex;align-items:stretch;position:relative;gap:10px;}
.sc-auth-password .sc-auth-input {padding-right:66px;}
.sc-auth-password button {
  position:absolute;
  inset:4px 5px 4px auto;
  min-width:55px;
  padding:0 9px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:var(--sc-auth-accent);
  font-size:13px;
  cursor:pointer;
}
.sc-auth-password button:hover {background:#eaf4ef;}
.sc-auth-captcha button {flex:0 0 clamp(72px,29%,104px);padding:0;border:1px solid #cad8d2;border-radius:10px;background:#fff;cursor:pointer;}
.sc-auth-captcha img {display:block;width:100%;height:47px;object-fit:contain;border-radius:9px;}
.sc-auth-remember {display:flex;align-items:center;gap:8px;margin:1px 0;color:#4a615b;font-size:13px;font-weight:400;cursor:pointer;}
.sc-auth-remember input {width:15px;height:15px;margin:0;accent-color:var(--sc-auth-accent);}
.sc-auth-submit {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:49px;
  padding:10px 14px;
  border:1px solid transparent;
  border-radius:10px;
  background:var(--sc-auth-accent,#086b55);
  color:#fff;
  font:inherit;
  font-size:15px;
  font-weight:650;
  cursor:pointer;
}
.sc-auth-form > .sc-auth-submit {margin-top:5px;box-shadow:0 4px 10px rgba(8,107,85,.18);}
.sc-auth-submit:disabled {opacity:.7;cursor:wait;}
.sc-auth-submit:not(:disabled):hover {background:#075743;}
.sc-auth :is(button,a):focus-visible,.sc-entry-link:focus-visible {outline:2px solid #2671a2;outline-offset:3px;}
.sc-auth-error {
  padding:10px 12px;
  margin:0;
  border-radius:8px;
  background:#fff0ee;
  color:#a12f28;
  font-size:13px;
  line-height:1.55;
}
.sc-auth .sc-auth-error[hidden],.sc-auth [data-qr-retry][hidden] {display:none;}
.sc-auth-qr {
  position:relative;
  display:grid;
  place-items:center;
  width:min(100%,220px);
  aspect-ratio:1;
  margin:0 auto 13px;
  padding:12px;
  border:1px solid #d5e4dd;
  border-radius:16px;
  background:#fff;
  box-shadow:0 5px 18px rgba(19,60,51,.07);
}
.sc-auth-qr img {display:block;width:100%;aspect-ratio:1;object-fit:contain;}
.sc-auth-qr img[hidden] {display:none;}
.sc-auth-qr-retry {
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  padding:22px;
  border-radius:15px;
  background:rgba(246,251,249,.94);
}
.sc-auth-card--qr {text-align:center;}
.sc-auth-card--qr h1 {margin-bottom:10px;}
.sc-auth-card--qr .sc-auth-error {margin-top:24px;text-align:left;}
.sc-auth-qr-state {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:5px 10px;
  margin:0;
  border-radius:8px;
  color:#27644f;
  font-size:13px;
  line-height:1.45;
}
.sc-auth-qr-state::before {content:"";flex:0 0 7px;height:7px;border-radius:50%;background:currentColor;}
.sc-auth-qr-state[data-tone="warning"] {background:#fff1dc;color:#7d5017;}
.sc-auth-qr-refresh {margin-top:16px;}
body:has(.sc-auth--platform) > .footer {position:static;margin:0;padding:10px 16px;background:transparent;color:#516663;}

.sc-entry-fallback, .sc-entry-wait {
  display:grid;
  place-items:center;
  padding:24px;
  background:#f7f9f8;
  text-align:center;
}
.sc-entry-fallback {min-height:100vh;min-height:100svh;}
.sc-entry-wait {
  position:fixed;
  z-index:3000;
  inset:0;
}
.sc-entry-content {position:relative;}
.sc-entry-motion {
  position:relative;
  width:96px;
  height:90px;
}
.sc-entry-motion span {
  position:absolute;
  top:50%;
  left:50%;
  box-sizing:border-box;
  width:44px;
  height:44px;
  border:1px solid rgba(255,255,255,.65);
  border-radius:10px;
  box-shadow:4px 4px 8px rgba(20,91,79,.19);
  transform:translate(-50%,calc(-50% + var(--sc-entry-layer-y))) scaleY(.64) rotate(45deg);
  animation:sc-entry-lift 1.48s ease-in-out infinite;
}
.sc-entry-motion span:nth-child(1) {
  --sc-entry-layer-y:15px;
  background:linear-gradient(135deg,#d1eee6,#83b9be);
}
.sc-entry-motion span:nth-child(2) {
  --sc-entry-layer-y:0px;
  background:linear-gradient(135deg,#b2ebd9,#48b7a3);
  animation-delay:-.18s;
}
.sc-entry-motion span:nth-child(3) {
  --sc-entry-layer-y:-15px;
  background:linear-gradient(135deg,#6adcc0,#0b806b);
  animation-delay:-.36s;
}
.sc-entry-link {
  position:absolute;
  top:calc(100% + 15px);
  left:50%;
  transform:translateX(-50%);
  color:#086b55;
  font-size:13px;
  text-decoration:underline;
  white-space:nowrap;
}
.sc-entry-link[hidden] {display:none;}
.sc-entry-line {
  position:fixed;
  z-index:3000;
  inset:0 0 auto;
  height:3px;
  pointer-events:none;
  overflow:hidden;
  background:#dcebe5;
}
.sc-entry-line::before {
  content:"";
  display:block;
  width:36%;
  height:100%;
  background:linear-gradient(90deg,transparent,#168971);
  animation:sc-entry-sweep 1.3s ease-in-out infinite;
}
@keyframes sc-entry-lift {
  0%,70%,100% {translate:0 0;}
  32% {translate:0 -10px;}
}
@keyframes sc-entry-sweep {from{transform:translateX(-100%);}to{transform:translateX(290%);}}
@media (prefers-reduced-motion:reduce) {
  .sc-entry-motion span,.sc-entry-line::before {animation:none;}
  .sc-entry-line::before {margin-inline:auto;}
}
@media (max-width:760px) {
  .sc-auth {padding:20px;}
  .sc-auth-frame {grid-template-columns:minmax(0,1fr);width:min(100%,432px);min-height:0;padding:8px;border-radius:20px;}
  .sc-auth-visual {padding:12px 16px;border-radius:13px;background-image:none;}
  .sc-auth-brand {font-size:17px;}
  .sc-auth-sheet {padding:32px 16px;}
  .sc-auth-card h1 {font-size:25px;}
}
