:root {
  --ink: #1d2b43;
  --muted: #6d7a91;
  --line: #e6edf4;
  --green: #10b981;
  --green-dark: #02a16f;
  --green-soft: #ddf8ef;
  --field: #fbfdff;
  --danger: #d35b47;
  --shadow: 0 28px 90px rgba(82, 101, 126, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 78%, rgba(55, 211, 167, 0.18), transparent 24rem),
    radial-gradient(circle at 84% 14%, rgba(108, 147, 255, 0.14), transparent 28rem),
    linear-gradient(180deg, #f7fbff 0%, #eef6fb 100%);
  color: var(--ink);
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 38px;
}

.login-stage {
  width: min(1720px, calc(100vw - 72px));
  min-height: min(860px, calc(100vh - 76px));
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 620px;
  gap: 54px;
  align-items: center;
  padding: 70px 86px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.brand-side {
  min-height: 720px;
  position: relative;
  display: grid;
  align-content: start;
}

.brand-mark {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 54px;
}

.logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, #31d59b, #00a66e);
  box-shadow: 0 18px 32px rgba(16, 185, 129, 0.28);
}

.logo svg {
  width: 28px;
  height: 28px;
  fill: white;
  stroke: white;
  stroke-width: 2.3;
}

.brand-mark strong {
  color: var(--green-dark);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

.brand-side h1 {
  margin-bottom: 28px;
  font-size: clamp(54px, 5.2vw, 82px);
  line-height: 1.12;
  letter-spacing: 0;
}

.brand-side h1 span {
  color: var(--green);
}

.brand-side > p {
  color: var(--muted);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.75;
}

.illustration {
  position: absolute;
  left: 0;
  right: 18px;
  bottom: 0;
  height: 330px;
}

.laptop {
  position: absolute;
  left: 180px;
  bottom: 40px;
  width: 330px;
  height: 184px;
  border-radius: 18px 18px 8px 8px;
  background: linear-gradient(180deg, rgba(116, 225, 190, 0.58), rgba(214, 255, 241, 0.9));
  box-shadow: 0 26px 44px rgba(57, 171, 137, 0.2);
}

.laptop::after {
  content: "";
  position: absolute;
  left: -56px;
  right: -56px;
  bottom: -34px;
  height: 42px;
  border-radius: 0 0 36px 36px;
  background: linear-gradient(180deg, #eefaf6, #c8eee3);
}

.laptop i {
  position: absolute;
  inset: 24px 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.laptop b {
  position: absolute;
  left: 62px;
  right: 62px;
  top: 92px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #7bd9c2, transparent);
}

.laptop b::before {
  content: "";
  position: absolute;
  left: 12px;
  top: -32px;
  width: 210px;
  height: 70px;
  background:
    linear-gradient(135deg, transparent 45%, #83dec8 46% 51%, transparent 52%),
    radial-gradient(circle at 12% 70%, #8ee5ce 0 6px, transparent 7px),
    radial-gradient(circle at 36% 44%, #8ee5ce 0 6px, transparent 7px),
    radial-gradient(circle at 62% 26%, #8ee5ce 0 7px, transparent 8px),
    radial-gradient(circle at 88% 52%, #8ee5ce 0 6px, transparent 7px);
}

.mail {
  position: absolute;
  width: 88px;
  height: 64px;
  border-radius: 12px;
  background: rgba(222, 255, 245, 0.9);
  box-shadow: 0 22px 40px rgba(60, 177, 143, 0.12);
}

.mail::before,
.mail::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px solid rgba(86, 213, 176, 0.45);
  border-top: 0;
  transform: skewY(-20deg);
}

.mail::after {
  transform: skewY(20deg);
}

.mail-left {
  left: 94px;
  bottom: 86px;
}

.mail-right {
  right: 58px;
  bottom: 126px;
}

.shield {
  position: absolute;
  left: 454px;
  bottom: 58px;
  width: 72px;
  height: 86px;
  border-radius: 36px 36px 24px 24px;
  background: linear-gradient(180deg, #ffffff, #bcebdd);
  box-shadow: 0 20px 34px rgba(62, 174, 141, 0.16);
  clip-path: polygon(50% 0, 92% 16%, 82% 78%, 50% 100%, 18% 78%, 8% 16%);
}

.shield::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 34px;
  width: 26px;
  height: 14px;
  border-left: 7px solid var(--green);
  border-bottom: 7px solid var(--green);
  transform: rotate(-45deg);
}

.server {
  position: absolute;
  right: 12px;
  width: 130px;
  height: 50px;
  border-radius: 12px;
  background: #effbf7;
  box-shadow: 0 18px 34px rgba(73, 159, 136, 0.12);
}

.server::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 20px;
  width: 56px;
  height: 8px;
  border-radius: 999px;
  background: #9ce9d1;
}

.server::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6adabf;
  box-shadow: 20px 0 0 #8ce6d2;
}

.server-one {
  bottom: 82px;
}

.server-two {
  bottom: 22px;
}

.paper-plane {
  position: absolute;
  right: 150px;
  top: 6px;
  width: 74px;
  height: 42px;
  background: linear-gradient(135deg, #bdf4df, #49d09d);
  clip-path: polygon(0 45%, 100% 0, 68% 100%, 48% 58%);
  filter: drop-shadow(0 18px 24px rgba(67, 196, 150, 0.18));
}

.paper-plane::before {
  content: "";
  position: absolute;
  right: 60px;
  top: 36px;
  width: 160px;
  height: 72px;
  border-left: 2px dashed rgba(93, 209, 192, 0.35);
  border-bottom: 2px dashed rgba(93, 209, 192, 0.35);
  border-radius: 0 0 0 80px;
}

.plant {
  position: absolute;
  bottom: 18px;
  width: 44px;
  height: 82px;
  background: linear-gradient(180deg, transparent 0 42px, #eefbf7 43px);
  border-radius: 0 0 18px 18px;
}

.plant::before,
.plant::after {
  content: "";
  position: absolute;
  bottom: 36px;
  width: 28px;
  height: 54px;
  border-radius: 28px 28px 4px 28px;
  background: rgba(125, 224, 195, 0.5);
}

.plant::before {
  left: 2px;
  transform: rotate(-28deg);
}

.plant::after {
  right: 0;
  transform: rotate(30deg);
}

.plant-left {
  left: 28px;
}

.plant-right {
  right: 190px;
}

.login-card {
  min-height: 680px;
  padding: 70px 58px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 76px rgba(67, 83, 106, 0.13);
  display: grid;
  align-content: center;
  gap: 28px;
}

.card-title h2 {
  margin-bottom: 16px;
  font-size: 34px;
  letter-spacing: 0;
}

.card-title p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
}

label > span,
.remember span {
  color: var(--ink);
  font-weight: 800;
}

label > span {
  display: block;
  margin-bottom: 12px;
}

.input-shell {
  min-height: 60px;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  transition: 160ms ease;
}

.input-shell:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.input-shell input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 20px;
}

.user-icon,
.lock-icon {
  width: 22px;
  height: 22px;
  position: relative;
}

.user-icon::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 2px;
  width: 8px;
  height: 8px;
  border: 2px solid #7c879b;
  border-radius: 50%;
}

.user-icon::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 14px;
  width: 16px;
  height: 8px;
  border: 2px solid #7c879b;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  border-bottom: 0;
}

.lock-icon::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 15px;
  height: 11px;
  border: 2px solid #7c879b;
  border-radius: 3px;
}

.lock-icon::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 2px;
  width: 9px;
  height: 11px;
  border: 2px solid #7c879b;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
}

.eye-button {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.eye-button::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 9px;
  width: 18px;
  height: 10px;
  border: 2px solid #98a3b5;
  border-radius: 50%;
}

.eye-button::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #98a3b5;
}

.remember {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  width: max-content;
}

.remember input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.login-button {
  min-height: 62px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #30c58f, #00a86f);
  box-shadow: 0 16px 34px rgba(0, 168, 111, 0.22);
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 20px;
  font-weight: 900;
}

.login-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.error {
  min-height: 20px;
  margin: -8px 0 0;
  color: var(--danger);
  font-size: 14px;
  font-weight: 800;
}

.security-line {
  display: grid;
  grid-template-columns: 1fr auto auto auto 1fr;
  gap: 16px;
  align-items: center;
  color: var(--muted);
  font-weight: 800;
}

.security-line::before,
.security-line::after {
  content: "";
  height: 1px;
  background: var(--line);
}

@media (max-width: 1080px) {
  .login-stage {
    grid-template-columns: 1fr;
    padding: 38px;
  }

  .brand-side {
    min-height: 480px;
  }

  .login-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .login-page {
    padding: 16px;
  }

  .login-stage {
    width: 100%;
    padding: 24px;
    border-radius: 20px;
  }

  .brand-side {
    min-height: 360px;
  }

  .brand-side h1 {
    font-size: 42px;
  }

  .brand-side > p {
    font-size: 16px;
  }

  .illustration {
    transform: scale(0.68);
    transform-origin: bottom left;
  }

  .login-card {
    padding: 30px 22px;
  }

  .security-line {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .security-line::before,
  .security-line::after {
    display: none;
  }
}
