:root {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #203c30;
  background: #fff;
  font-synthesis: none;
  --green: #006b4c;
  --green-hover: #00573e;
  --dark: #174333;
  --text: #203c30;
  --muted: #63776b;
  --line: #e0e7df;
  --danger: #a63628;
}

* { box-sizing: border-box; }

html { min-width: 320px; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 9% 92%, rgba(0, 107, 76, 0.06), transparent 25rem),
    linear-gradient(180deg, #fff 0%, #fbfcfa 100%);
  color: var(--text);
}

button,
input { font: inherit; }

button { cursor: pointer; }

a { color: inherit; text-decoration: none; }

.login-topbar {
  display: flex;
  min-height: 77px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px clamp(20px, 3vw, 52px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-brand img {
  width: 96px;
  height: 48px;
  object-fit: contain;
}

.login-brand > span {
  width: 1px;
  height: 30px;
  background: #dce5de;
}

.login-brand strong,
.login-brand small { display: block; }

.login-brand strong {
  color: var(--dark);
  font-size: 16px;
  font-weight: 650;
}

.login-brand small {
  margin-top: 4px;
  color: #73857a;
  font-size: 9px;
  letter-spacing: 1.15px;
}

.secure-status {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid #d9e6dc;
  border-radius: 9px;
  background: #f7fbf8;
  color: #426251;
  font-size: 13px;
  font-weight: 600;
}

.secure-status svg,
.security-note svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-main {
  display: grid;
  min-height: calc(100vh - 136px);
  place-items: center;
  padding: 48px clamp(20px, 4vw, 72px);
}

.login-shell {
  display: grid;
  width: min(1040px, 100%);
  min-height: 610px;
  grid-template-columns: minmax(0, 1.06fr) minmax(420px, 0.94fr);
  overflow: hidden;
  border: 1px solid #dce6de;
  border-radius: 18px;
  background: #fff;
}

.login-intro {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 54px 52px 42px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), transparent 38%),
    linear-gradient(145deg, #087554 0%, #005b42 64%, #174333 100%);
  color: #fff;
}

.login-intro::before,
.login-intro::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  content: "";
}

.login-intro::before {
  top: -180px;
  right: -180px;
  width: 390px;
  height: 390px;
}

.login-intro::after {
  right: -90px;
  bottom: -120px;
  width: 280px;
  height: 280px;
}

.intro-copy,
.org-visual,
.intro-footnote { position: relative; z-index: 1; }

.intro-badge {
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: #edf8f1;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.5px;
}

.intro-copy h1 {
  max-width: 420px;
  margin: 24px 0 15px;
  color: #fff;
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 650;
  letter-spacing: -1.2px;
  line-height: 1.22;
}

.intro-copy p {
  max-width: 430px;
  margin: 0;
  color: rgba(255, 255, 255, 0.77);
  font-size: 15px;
  line-height: 1.8;
}

.org-visual {
  width: min(390px, 94%);
  margin: 28px auto 34px;
}

.visual-root,
.visual-branches > div {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
}

.visual-root {
  width: 132px;
  min-height: 46px;
  margin: 0 auto;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 650;
}

.visual-line { margin: 0 auto; background: rgba(255, 255, 255, 0.3); }
.visual-line.vertical { width: 1px; height: 28px; }
.visual-line.horizontal { width: 72%; height: 1px; }

.visual-branches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.visual-branches > div {
  position: relative;
  min-height: 66px;
  flex-direction: column;
  gap: 8px;
  border-radius: 11px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
}

.visual-branches > div::before {
  position: absolute;
  top: -1px;
  left: 50%;
  width: 1px;
  height: 15px;
  transform: translate(-50%, -100%);
  background: rgba(255, 255, 255, 0.3);
  content: "";
}

.visual-branches i {
  width: 8px;
  height: 8px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
}

.intro-footnote {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
}

.intro-footnote span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d2b574;
}

.login-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 54px 54px 48px;
  background: #fff;
}

.form-heading > span {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.form-heading h2 {
  margin: 10px 0 10px;
  color: var(--dark);
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.5px;
}

.form-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.login-message {
  margin-top: 22px;
  padding: 12px 14px;
  border: 1px solid #edc9c3;
  border-radius: 9px;
  background: #fff7f5;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.6;
}

.login-message.success {
  border-color: #cfe2d3;
  background: #eff8f1;
  color: #236246;
}

#login-form {
  display: grid;
  gap: 9px;
  margin-top: 26px;
}

#login-form label {
  margin-top: 8px;
  color: #3e5a4b;
  font-size: 13px;
  font-weight: 650;
}

.field-control { position: relative; }

.field-control > svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 19px;
  height: 19px;
  transform: translateY(-50%);
  fill: none;
  stroke: #6e8376;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.field-control input {
  width: 100%;
  min-height: 50px;
  padding: 12px 44px 12px 44px;
  border: 1px solid #cbd8cf;
  border-radius: 9px;
  outline: none;
  background: #fff;
  color: #203c30;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field-control input::placeholder { color: #97a59c; }

.field-control input:focus {
  border-color: #6ca585;
  box-shadow: 0 0 0 3px rgba(138, 187, 157, 0.28);
}

.password-control button {
  position: absolute;
  top: 50%;
  right: 8px;
  display: inline-grid;
  width: 38px;
  height: 38px;
  transform: translateY(-50%);
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6f8176;
}

.password-control button:hover { background: #f2f6f2; color: var(--green); }

.password-control button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eye-closed { display: none; }
.password-control button[aria-pressed="true"] .eye-open { display: none; }
.password-control button[aria-pressed="true"] .eye-closed { display: block; }

.login-submit {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
  padding: 12px 18px;
  border: 1px solid var(--green);
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  font-weight: 650;
  transition: background 150ms ease, transform 150ms ease;
}

.login-submit:hover { background: var(--green-hover); }
.login-submit:active { transform: translateY(1px); }
.login-submit:disabled { cursor: wait; opacity: 0.72; }

.login-submit svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.security-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 28px;
  padding-top: 21px;
  border-top: 1px solid #e6ebe6;
}

.security-note svg { flex: 0 0 auto; margin-top: 1px; }
.security-note strong { color: #3d5949; font-size: 13px; }
.security-note p { margin: 5px 0 0; color: #75867b; font-size: 12px; line-height: 1.6; }

.login-footer {
  display: flex;
  min-height: 59px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px clamp(20px, 3vw, 52px);
  border-top: 1px solid #edf0ed;
  color: #849188;
  font-size: 12px;
}

@media (max-width: 860px) {
  .login-main { padding: 30px 20px; }
  .login-shell { grid-template-columns: minmax(0, 1fr); }
  .login-intro { min-height: 330px; padding: 40px; }
  .intro-copy h1 { font-size: 34px; }
  .org-visual { display: none; }
  .intro-footnote { margin-top: 34px; }
  .login-panel { padding: 44px 40px; }
}

@media (max-width: 560px) {
  .login-topbar { min-height: 68px; padding: 10px 16px; }
  .login-brand { gap: 8px; }
  .login-brand img { width: 74px; height: 42px; }
  .login-brand > span, .login-brand small { display: none; }
  .login-brand strong { font-size: 14px; }
  .secure-status { padding: 8px; font-size: 0; }
  .login-main { min-height: calc(100vh - 120px); padding: 18px 16px 24px; }
  .login-shell { min-height: 0; border-radius: 14px; }
  .login-intro { min-height: 245px; padding: 30px 26px; }
  .intro-copy h1 { margin-top: 18px; font-size: 29px; }
  .intro-copy p { font-size: 14px; }
  .intro-footnote { margin-top: 26px; }
  .login-panel { padding: 34px 25px 30px; }
  .form-heading h2 { font-size: 25px; }
  .login-footer { align-items: flex-start; flex-direction: column; gap: 4px; padding: 15px 16px; }
}

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