.brand-login {
  --login-ink: #193c3c;
  --login-muted: #506e6b;
  --login-accent: #166e64;
  --login-accent-dark: #12574f;
  --login-line: #d2e5df;
  --login-gutter: clamp(22px, 3vw, 48px);
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.63fr) minmax(365px, 1fr);
  padding: clamp(52px, 12.2vh, 115px) var(--login-gutter) var(--login-gutter);
  background: #f4f9f6;
  color: var(--login-ink);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.login-intro {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(14px, 2.5vh, 24px);
  padding-inline: clamp(20px, 3.8vw, 68px);
  text-align: center;
}

.login-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 15px;
  border-radius: 13px;
  background: var(--login-accent);
  box-shadow: 0 7px 15px #166e6420;
}

.login-mark i {
  position: relative;
  width: 19px;
  height: 21px;
  margin-left: 3px;
  border-left: 4px solid #fff;
  border-bottom: 4px solid #fff;
  border-radius: 0 0 0 10px;
}

.login-mark i::before, .login-mark i::after {
  content: "";
  position: absolute;
  border-radius: 1px;
  background: #fff;
}

.login-mark i::before { width: 10px; height: 3px; top: -1px; left: -7px; }
.login-mark i::after { width: 3px; height: 10px; bottom: -7px; right: -1px; }

.login-intro h1 {
  margin: 0;
  font-size: clamp(40px, 4.1vw, 64px);
  font-weight: 750;
  letter-spacing: .055em;
  line-height: 1.15;
}

.login-intro p {
  margin: 11px 0 0;
  color: var(--login-muted);
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 580;
  line-height: 1.55;
}

.login-illustration {
  display: block;
  align-self: center;
  width: min(100%, 869px);
  height: auto;
}

.login-workflow {
  border-top: 1px solid var(--login-line);
  padding-top: 12px;
}

.login-workflow ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.login-workflow li {
  font-size: clamp(11px, 1.04vw, 15px);
  font-weight: 600;
  line-height: 1.55;
}

.login-workflow li span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 6px;
}

.login-workflow li b {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #e3f2ed;
  color: var(--login-accent);
  font: 700 12px Consolas, monospace;
}

.login-workflow li span::before, .login-workflow li span::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--login-line);
}

.login-workflow li:first-child span::before, .login-workflow li:last-child span::after {
  visibility: hidden;
}

.login-panel {
  display: grid;
  justify-items: center;
  align-self: center;
  padding: 57px clamp(25px, 4vw, 66px);
  border: 1px solid #dce9e3;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 18px 54px #1e53400b;
}

.login-panel form { width: min(100%, 365px); }
.login-panel h2 { margin: 0 0 12px; font-size: 32px; line-height: 1.2; }
.login-panel p { margin: 0 0 29px; color: var(--login-muted); font-size: 14px; line-height: 1.6; }
.login-field { margin-bottom: 18px; }
.login-field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 650; }

.login-field input {
  width: 100%;
  height: 47px;
  padding: 0 13px;
  border: 1px solid #c9d7df;
  border-radius: 7px;
  background: #fcfdfd;
  color: var(--login-ink);
}

.login-field input::placeholder { color: #687f90; font-size: 14px; }
.login-password { position: relative; }
.login-password input { padding-right: 85px; }

.login-password button {
  position: absolute;
  inset: 6px 6px 6px auto;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--login-muted);
  font-size: 13px;
  cursor: pointer;
}

.login-password button:hover { background: #e3f2ed; color: var(--login-accent-dark); }

.login-submit {
  width: 100%;
  height: 46px;
  margin-top: 6px;
  border: 0;
  border-radius: 7px;
  background: var(--login-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}

.login-submit:hover { background: var(--login-accent-dark); }
.brand-login :is(input, button):focus-visible { outline: 3px solid var(--login-accent); outline-offset: 3px; }
#loginError { margin-top: 12px; font-size: 13px; }

@media (max-width: 870px) {
  .brand-login { grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); }
}

@media (max-width: 660px) {
  .brand-login {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 28px 16px 16px;
  }
  .login-intro { padding-inline: 4px; }
  .login-workflow ol { gap: 6px; }
  .login-panel { padding: 30px 20px 18px; }
}
