:root {
  --ink: #20342b;
  --muted: #718077;
  --forest: #245642;
  --forest-deep: #183f31;
  --sage: #dfe9d2;
  --paper: #f7f9f3;
  --line: #dce5d7;
  --danger: #a14f48;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(196, 220, 168, .52), transparent 28rem),
    radial-gradient(circle at 90% 88%, rgba(208, 226, 195, .5), transparent 32rem),
    #edf2e8;
  font: 14px/1.65 "Microsoft YaHei", "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.login-shell {
  width: min(1120px, calc(100% - 48px));
  min-height: min(720px, calc(100vh - 64px));
  margin: 32px auto;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr);
  overflow: hidden;
  border: 1px solid rgba(104, 126, 105, .22);
  border-radius: 28px;
  background: rgba(248, 250, 245, .84);
  box-shadow: 0 30px 90px rgba(45, 70, 49, .14);
  backdrop-filter: blur(18px);
}

.login-intro {
  position: relative;
  min-height: 650px;
  padding: 54px 60px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(31, 77, 58, .97), rgba(45, 96, 67, .88)),
    repeating-linear-gradient(115deg, transparent 0 30px, rgba(255, 255, 255, .035) 31px 32px);
  color: var(--white);
}

.login-intro::after {
  content: "";
  position: absolute;
  right: -130px;
  bottom: -160px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(235, 245, 222, .2);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(235, 245, 222, .035),
    0 0 0 110px rgba(235, 245, 222, .025);
}

.brand-lockup {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand-lockup img {
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .16);
}

.brand-lockup strong {
  display: block;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: .18em;
}

.brand-lockup span {
  display: block;
  margin-top: 5px;
  color: rgba(237, 246, 229, .7);
  font-size: 11px;
  letter-spacing: .14em;
}

.intro-copy {
  position: relative;
  z-index: 1;
  margin: auto 0;
  max-width: 580px;
}

.eyebrow {
  color: #cbddaa;
  font-size: 10px;
  letter-spacing: .28em;
}

.intro-copy h1 {
  margin: 20px 0 22px;
  font: 500 clamp(34px, 4vw, 54px)/1.22 Georgia, "STSong", serif;
  letter-spacing: -.02em;
}

.intro-copy p {
  max-width: 470px;
  margin: 0;
  color: rgba(239, 247, 233, .76);
  font-size: 14px;
}

.feature-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feature-list span {
  padding: 7px 12px;
  border: 1px solid rgba(231, 243, 218, .18);
  border-radius: 999px;
  color: rgba(244, 249, 239, .86);
  background: rgba(255, 255, 255, .06);
  font-size: 11px;
}

.intro-foot {
  position: relative;
  z-index: 1;
  margin: 32px 0 0;
  color: rgba(230, 241, 219, .5);
  font-size: 10px;
}

.login-card {
  align-self: center;
  padding: 54px 48px;
  background: rgba(255, 255, 255, .84);
}

.card-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 26px;
}

.secure-dot {
  width: 10px;
  height: 10px;
  margin-top: 9px;
  flex: none;
  border-radius: 50%;
  background: #6b9c63;
  box-shadow: 0 0 0 5px rgba(107, 156, 99, .12);
}

.card-head h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: .01em;
}

.card-head p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.login-status {
  min-height: 38px;
  margin-bottom: 18px;
  padding: 9px 12px;
  border: 1px solid #dce7d6;
  border-radius: 9px;
  color: #647664;
  background: #f6f9f1;
  font-size: 11px;
}

.login-status.busy::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border: 1.5px solid #9bb18c;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -1px;
  animation: spin .7s linear infinite;
}

.login-status.success {
  color: #376547;
  border-color: #c9dec5;
  background: #f0f7ed;
}

.login-status.error {
  color: var(--danger);
  border-color: #ead2cd;
  background: #fff6f3;
}

.identity-button,
.secondary-button,
.primary-button {
  width: 100%;
  border-radius: 10px;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.identity-button {
  min-height: 72px;
  margin-bottom: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid #cfddc7;
  color: var(--ink);
  background: linear-gradient(135deg, #f8fbf4, #edf4e8);
  text-align: left;
}

.identity-button:hover,
.secondary-button:hover,
.primary-button:hover {
  transform: translateY(-1px);
}

.identity-button:disabled,
.secondary-button:disabled,
.primary-button:disabled {
  cursor: wait;
  opacity: .66;
  transform: none;
}

.avatar {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--forest);
  font-family: Georgia, serif;
  font-size: 18px;
}

.identity-button small,
.identity-button strong {
  display: block;
}

.identity-button small {
  color: #849080;
  font-size: 10px;
}

.identity-button strong {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
}

.button-arrow {
  margin-left: auto;
  font-size: 17px;
}

.secondary-button {
  margin-bottom: 0;
  padding: 11px 14px;
  border: 1px solid #cfdcc7;
  color: #365a46;
  background: #fff;
  font-size: 12px;
}

.channel-divider {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 22px 0 14px;
  color: #9ba697;
  font-size: 10px;
}

.channel-divider::before,
.channel-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e2e8de;
}

label {
  display: block;
  margin: 15px 0 6px;
  color: #53665b;
  font-size: 11px;
  font-weight: 600;
}

input {
  width: 100%;
  height: 43px;
  padding: 0 13px;
  border: 1px solid #d5dfd0;
  border-radius: 9px;
  outline: none;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  transition: border-color .16s ease, box-shadow .16s ease;
}

input:focus {
  border-color: #7e9f7a;
  box-shadow: 0 0 0 3px rgba(91, 139, 91, .11);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 64px;
}

.password-toggle {
  position: absolute;
  top: 5px;
  right: 6px;
  height: 33px;
  padding: 0 10px;
  border: 0;
  color: #6f806f;
  background: transparent;
  font-size: 10px;
}

.primary-button {
  height: 46px;
  margin-top: 20px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--forest);
  color: #fff;
  background: var(--forest);
  box-shadow: 0 8px 18px rgba(31, 76, 56, .16);
}

.primary-button:hover {
  background: var(--forest-deep);
  box-shadow: 0 10px 24px rgba(31, 76, 56, .23);
}

.form-error {
  margin: 10px 0 -6px;
  color: var(--danger);
  font-size: 11px;
}

.privacy-note {
  margin: 17px 0 0;
  color: #909b90;
  font-size: 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 860px) {
  .login-shell {
    grid-template-columns: 1fr;
    width: min(620px, calc(100% - 28px));
    margin: 14px auto;
  }

  .login-intro {
    min-height: 290px;
    padding: 34px 32px;
  }

  .intro-copy {
    margin-top: 50px;
  }

  .intro-copy h1 {
    margin: 13px 0;
    font-size: 34px;
  }

  .feature-list,
  .intro-foot {
    display: none;
  }

  .login-card {
    padding: 38px 30px 42px;
  }
}

@media (max-width: 480px) {
  .login-intro {
    padding: 26px 24px;
  }

  .intro-copy {
    margin-top: 36px;
  }

  .intro-copy h1 {
    font-size: 29px;
  }

  .login-card {
    padding: 32px 23px 36px;
  }
}
