:root {
  --ink: #18302e;
  --muted: #6d7d79;
  --paper: #fff;
  --canvas: #f3f1eb;
  --line: #e3dfd5;
  --teal: #138276;
  --teal-dark: #0b6b61;
  --coral: #e76f45;
  --font-ui: "Microsoft YaHei UI", "PingFang SC", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(390px, 0.92fr) minmax(480px, 1.08fr);
}

.login-intro {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  padding: 46px 58px;
  overflow: hidden;
  color: #f4faf7;
  background:
    radial-gradient(circle at 77% 22%, rgba(79, 153, 138, 0.4), transparent 27%),
    linear-gradient(145deg, #204b46 0%, #163b37 58%, #102d2b 100%);
}

.login-intro::before,
.login-intro::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  pointer-events: none;
}

.login-intro::before {
  top: -140px;
  right: -140px;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  box-shadow:
    0 0 0 62px rgba(255, 255, 255, 0.02),
    0 0 0 124px rgba(255, 255, 255, 0.012);
}

.login-intro::after {
  right: -90px;
  bottom: -130px;
  width: 340px;
  height: 340px;
  background: rgba(231, 111, 69, 0.075);
}

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

.intro-brand img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  box-shadow: 0 10px 20px rgba(9, 31, 28, 0.25);
}

.intro-brand div {
  display: flex;
  flex-direction: column;
}

.intro-brand strong {
  font-size: 21px;
  letter-spacing: 0.12em;
}

.intro-brand span {
  color: #9cb2ae;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.intro-copy {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: auto 0;
  transform: translateY(-5vh);
}

.intro-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b9ceca;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.intro-kicker::before {
  width: 20px;
  height: 2px;
  content: "";
  background: var(--coral);
}

.intro-copy h1 {
  margin: 20px 0 16px;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 670;
  letter-spacing: -0.055em;
  line-height: 1.28;
}

.intro-copy p {
  max-width: 390px;
  margin: 0;
  color: #a9c0bc;
  font-size: 12px;
  line-height: 1.9;
}

.intro-points {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #aec2bf;
  font-size: 9.5px;
}

.intro-points span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.intro-points i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #68b7a7;
  box-shadow: 0 0 0 3px rgba(104, 183, 167, 0.09);
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
  background:
    radial-gradient(circle at 82% 8%, rgba(231, 111, 69, 0.055), transparent 25%),
    var(--canvas);
}

.login-card {
  width: min(410px, 100%);
}

.mobile-brand {
  display: none;
}

.login-heading {
  margin-bottom: 30px;
}

.login-heading > span {
  color: var(--teal);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.18em;
}

.login-heading h2 {
  margin: 9px 0 6px;
  font-size: 28px;
  font-weight: 710;
  letter-spacing: -0.045em;
}

.login-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
}

.field-label {
  display: block;
  margin: 16px 0 7px;
  color: #526460;
  font-size: 10.5px;
  font-weight: 650;
}

.login-card input {
  width: 100%;
  height: 47px;
  padding: 0 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.login-card input:focus {
  border-color: rgba(19, 130, 118, 0.55);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(19, 130, 118, 0.08);
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 58px;
}

.password-wrap button {
  position: absolute;
  top: 50%;
  right: 10px;
  padding: 5px;
  color: var(--muted);
  border: 0;
  background: transparent;
  font-size: 9.5px;
  transform: translateY(-50%);
}

.password-wrap button:hover {
  color: var(--teal);
}

.form-message {
  min-height: 25px;
  padding-top: 8px;
  color: #c34b42;
  font-size: 10px;
}

.login-button {
  display: flex;
  width: 100%;
  height: 47px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  color: #fff;
  border: 0;
  border-radius: 10px;
  background: var(--teal);
  box-shadow: 0 12px 25px rgba(19, 130, 118, 0.16);
  font-size: 12px;
  font-weight: 650;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.login-button:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.login-button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.login-button span {
  font-size: 15px;
}

.login-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 16px;
  color: #8a9692;
  border-top: 1px solid rgba(218, 214, 204, 0.75);
  font-size: 8.5px;
}

.login-foot span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.login-foot i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3aaf82;
}

@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .login-intro {
    display: none;
  }

  .login-panel {
    min-height: 100vh;
    padding: 24px;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 44px;
    font-size: 15px;
    font-weight: 700;
  }

  .mobile-brand img {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .login-foot {
    flex-direction: column;
    gap: 5px;
  }
}
