:root {
  --deep: #07563f;
  --deep-2: #064b37;
  --brand: #18a36b;
  --brand-hover: #128b5b;
  --mint: #83d9b1;
  --page: #f7faf8;
  --line: #dce5e1;
  --text: #21332c;
  --muted: #788981;
  --danger: #d94a4a;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }

.server-login-body {
  font: 14px/1.65 "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--page);
}

.server-login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(460px, 51.25%) minmax(460px, 48.75%);
}

.server-brand-side {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 54px clamp(54px, 7vw, 112px) 42px;
  color: #fff;
  background: linear-gradient(145deg, var(--deep), var(--deep-2));
}

.server-brand-side::before,
.server-brand-side::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(130, 218, 177, .09);
  border-radius: 50%;
  pointer-events: none;
}

.server-brand-side::before {
  width: 690px;
  height: 690px;
  left: -350px;
  bottom: -410px;
  box-shadow: 0 0 0 92px rgba(130, 218, 177, .025), 0 0 0 190px rgba(130, 218, 177, .018);
}

.server-brand-side::after {
  width: 520px;
  height: 520px;
  right: -330px;
  bottom: -315px;
  box-shadow: 0 0 0 80px rgba(130, 218, 177, .022);
}

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

.server-logo {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 9px;
  background: rgba(255, 255, 255, .05);
}

.server-logo svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: #d8f4e6;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.server-brand-name,
.server-brand-en { display: block; }
.server-brand-name { font-size: 18px; font-weight: 700; line-height: 1.2; }
.server-brand-en { margin-top: 4px; color: #a6d9c1; font: 8px/1.2 Consolas, monospace; letter-spacing: 2.2px; }

.server-brand-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: auto 0;
  padding: 68px 0 30px;
}

.server-eyebrow { margin: 0 0 25px; color: #a9d9c3; font-size: 13px; letter-spacing: .04em; }
.server-slogan { margin: 0; font-size: clamp(34px, 3.25vw, 50px); line-height: 1.42; font-weight: 600; letter-spacing: -.04em; }
.server-slogan em { color: var(--mint); font-style: normal; }
.server-intro { margin: 22px 0 30px; color: #badbcb; font-size: 15px; line-height: 1.85; }
.server-features { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; color: #d4e9df; font-size: 14px; }
.server-features li { display: flex; align-items: center; gap: 11px; }
.server-features svg { width: 18px; height: 18px; flex: none; fill: none; stroke: #82d8b0; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.server-brand-foot { position: relative; z-index: 1; color: #83b9a0; font: 11px Consolas, monospace; letter-spacing: .03em; }

.server-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 54px clamp(44px, 8vw, 118px);
  background: linear-gradient(135deg, #fbfcfb 0%, #f3f8f5 100%);
}

.server-form-wrap { width: min(100%, 420px); }
.server-form-wrap h1 { margin: 0 0 8px; color: #164c39; font-size: 29px; line-height: 1.3; font-weight: 700; }
.server-subtitle { margin: 0 0 29px; color: #8a9791; font-size: 13px; }
.server-notice,
.server-error { margin: 0 0 17px; padding: 10px 12px; border-radius: 5px; font-size: 13px; }
.server-notice { color: #168457; background: #e9f6ef; border: 1px solid #b9dfcd; }
.server-error { color: var(--danger); background: #fff2f1; border: 1px solid #efc2bf; }
.server-field { margin-bottom: 17px; }
.server-field label { display: block; margin-bottom: 7px; color: #53665e; font-size: 13px; }
.server-field label span { color: var(--brand); }
.server-input-shell { position: relative; }

.server-input-shell input {
  width: 100%;
  height: 45px;
  padding: 0 13px;
  border: 1px solid #d2ddd8;
  border-radius: 4px;
  outline: none;
  background: #fff;
  color: var(--text);
  font: 14px "Microsoft YaHei", "Segoe UI", sans-serif;
  transition: border-color .16s, box-shadow .16s;
}

.server-input-shell input::placeholder { color: #a5afaa; }
.server-input-shell input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(24, 163, 107, .11); }
#password { padding-right: 48px; }

.server-password-toggle {
  position: absolute;
  right: 3px;
  top: 3px;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7d8d86;
  cursor: pointer;
}

.server-password-toggle:hover { color: var(--brand); }
.server-password-toggle:focus-visible,
.server-submit:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.server-password-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.server-submit {
  width: 100%;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
  border: 0;
  border-radius: 4px;
  background: var(--brand);
  color: #fff;
  font: 600 14px "Microsoft YaHei", "Segoe UI", sans-serif;
  cursor: pointer;
  transition: background .16s, transform .16s;
}

.server-submit:hover { background: var(--brand-hover); }
.server-submit:active { transform: translateY(1px); }
.server-submit svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.server-session-tip { margin-top: 28px; padding-top: 19px; border-top: 1px solid #e4eae7; color: #98a39e; font-size: 12px; line-height: 1.75; }

@media (max-width: 920px) {
  .server-login-page { grid-template-columns: 42% 58%; }
  .server-brand-side { padding: 38px 34px; }
  .server-slogan { font-size: 32px; }
  .server-brand-content { padding-top: 45px; }
}

@media (max-width: 720px) {
  .server-login-page { display: block; }
  .server-brand-side { min-height: 210px; padding: 27px 24px; }
  .server-brand-content { margin: 30px 0 0; padding: 0; }
  .server-eyebrow,
  .server-intro,
  .server-features,
  .server-brand-foot { display: none; }
  .server-slogan { font-size: 27px; line-height: 1.45; }
  .server-form-side { min-height: calc(100vh - 210px); padding: 35px 24px 48px; }
  .server-form-wrap h1 { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
