* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: #203249;
  background: #f6f8fc;
  font:
    14px -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}
button,
input {
  font: inherit;
}
button,
a {
  cursor: pointer;
}
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.intro {
  position: relative;
  padding: 36px 7%;
  background:
    radial-gradient(ellipse at 15% 80%, #e4edff, transparent 60%),
    linear-gradient(140deg, #eef6ff, #f3f7ff 55%, #eaf0ff);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 650;
  color: #243b5c;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #2687f2;
  color: #fff;
  font-size: 24px;
  box-shadow: 0 6px 14px #2687f228;
}
.intro-content {
  margin: auto 0;
  padding: 70px 0 50px;
  max-width: 560px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: #6787b1;
}
.intro h1 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.5;
  letter-spacing: 1px;
  margin: 20px 0;
  color: #1f3a5c;
}
.intro p {
  font-size: 15px;
  line-height: 1.9;
  color: #7890ae;
}
.preview {
  margin-top: 35px;
  width: 95%;
  border: 1px solid #fff;
  border-radius: 14px;
  background: #ffffffbf;
  box-shadow: 0 22px 50px #37598812;
  transform: rotate(-2deg);
  padding: 16px;
}
.preview-head {
  display: flex;
  gap: 5px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #eaf0f8;
}
.preview-head i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c6d5eb;
}
.preview-head span {
  margin-left: 12px;
  font-size: 10px;
  color: #7c91ac;
}
.preview-content {
  display: flex;
  gap: 18px;
  padding-top: 16px;
}
.mini-nav {
  width: 50px;
}
.mini-nav b {
  display: block;
  background: #eaf1fc;
  height: 9px;
  margin: 14px 0;
  border-radius: 4px;
}
.mini-nav b:first-child {
  background: #bedbff;
}
.mini-main {
  flex: 1;
}
.mini-stats {
  display: flex;
  gap: 12px;
}
.mini-stats span {
  flex: 1;
  font-size: 9px;
  color: #8b9bb1;
  background: #f4f8ff;
  border-radius: 6px;
  padding: 10px;
}
.mini-stats strong {
  display: block;
  color: #5a94de;
  font-size: 16px;
  margin-top: 7px;
  font-weight: 500;
}
.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 90px;
  padding-top: 15px;
  border-bottom: 1px solid #ebf1fa;
}
.mini-chart i {
  flex: 1;
  height: 40%;
  background: #d5e7ff;
  border-radius: 4px 4px 0 0;
}
.mini-chart i:nth-child(2n) {
  height: 60%;
  background: #acd1ff;
}
.mini-chart i:nth-child(3n) {
  height: 80%;
  background: #78b3fc;
}
.mini-chart i:last-child {
  height: 95%;
  background: #398cf2;
}
.mini-lines {
  padding-top: 12px;
}
.mini-lines i {
  display: block;
  background: #edf2fa;
  height: 5px;
  margin: 8px 0;
  border-radius: 3px;
}
.mini-lines i:last-child {
  width: 60%;
}
.features {
  display: flex;
  gap: 20px;
  font-size: 11px;
  color: #7490b1;
  margin-top: 28px;
}
.features span:before {
  content: "✓";
  margin-right: 6px;
  color: #458dde;
}
.intro footer,
.login-panel footer {
  font-size: 11px;
  color: #93a3b8;
}
.login-panel {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #fff;
}
.login-card {
  width: 100%;
  max-width: 360px;
  margin: auto 0;
}
.welcome {
  font-size: 12px;
  color: #3c8eea;
  letter-spacing: 2px;
}
.login-card h2 {
  font-size: 28px;
  margin: 14px 0 10px;
  letter-spacing: 0.5px;
}
.subtitle {
  color: #92a0b2;
  font-size: 13px;
  margin-bottom: 38px;
}
form label {
  display: block;
  font-size: 13px;
  color: #4e6078;
  margin: 22px 0 10px;
}
.input-wrap {
  height: 50px;
  display: flex;
  align-items: center;
  border: 1px solid #dfe6ef;
  border-radius: 9px;
  background: #fafcff;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.input-wrap:focus-within {
  border-color: #3593f3;
  box-shadow: 0 0 0 3px #3593f312;
}
.input-wrap svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #9aabc0;
  stroke-width: 1.6;
  margin: 0 13px;
  flex-shrink: 0;
}
.input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  height: 100%;
  color: #243951;
}
.input-wrap input::placeholder {
  color: #b2bfce;
}
.show-password {
  padding: 0 13px;
  white-space: nowrap;
  border: 0;
  background: none;
  color: #8596ac;
  font-size: 11px;
}
.submit {
  width: 100%;
  height: 49px;
  border: 0;
  border-radius: 9px;
  background: #2589f1;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 7px 17px #2589f12b;
}
.submit:hover {
  background: #1678df;
}
.submit:disabled {
  opacity: 0.65;
  cursor: wait;
}
#loginError {
  color: #d34545;
  min-height: 20px;
  font-size: 12px;
  margin: 12px 0;
}
.local-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 11px;
  color: #a0adbd;
  margin-top: 25px;
}
.local-note span {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #75baa3;
}
.login-panel footer {
  padding-top: 45px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #2687f2;
  outline-offset: 4px;
}
@media (max-width: 850px) {
  .login-layout {
    grid-template-columns: 0.85fr 1fr;
  }
  .intro {
    padding: 28px 7%;
  }
  .features {
    flex-wrap: wrap;
    gap: 10px;
  }
  .preview {
    width: 100%;
  }
  .login-panel {
    padding: 35px;
  }
}
@media (max-width: 720px) {
  .login-layout {
    display: block;
  }
  .intro {
    padding: 24px;
    background: #eef5ff;
  }
  .intro-content {
    padding: 20px 0 5px;
    margin: 0;
  }
  .intro h1 {
    font-size: 23px;
    margin: 10px 0;
  }
  .intro p,
  .preview,
  .features,
  .eyebrow,
  .intro footer {
    display: none;
  }
  .brand {
    font-size: 18px;
  }
  .brand-mark {
    height: 32px;
    width: 32px;
    font-size: 21px;
  }
  .login-panel {
    min-height: 65vh;
    padding: 32px 25px;
  }
  .login-card h2 {
    font-size: 25px;
  }
  .subtitle {
    margin-bottom: 24px;
  }
  .login-panel footer {
    padding-top: 32px;
  }
}
