:root {
  color-scheme: light;
  --brand-900: #073f3a;
  --brand-800: #075e56;
  --brand-700: #08766b;
  --brand-600: #078f80;
  --brand-500: #12aa98;
  --brand-100: #dff7f1;
  --brand-50: #f0fbf8;
  --ink-950: #102321;
  --ink-700: #425b57;
  --ink-500: #718783;
  --line: #d8e6e2;
  --surface: #ffffff;
  --danger: #a63838;
  --shadow: 0 24px 70px rgba(4, 70, 63, 0.14);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: #f5faf8;
  color: var(--ink-950);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

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

.login-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: clamp(42px, 6vw, 86px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent 44%),
    linear-gradient(150deg, #07443e 0%, #06766b 62%, #0a8d7d 100%);
  color: #f8fffd;
}

.brand-glow {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(2px);
}

.brand-glow-top {
  width: 520px;
  height: 520px;
  top: -240px;
  right: -180px;
  background: radial-gradient(circle, rgba(121, 240, 214, 0.34), rgba(121, 240, 214, 0));
}

.brand-glow-bottom {
  width: 640px;
  height: 640px;
  bottom: -410px;
  left: -280px;
  border: 1px solid rgba(204, 255, 245, 0.2);
  box-shadow:
    0 0 0 78px rgba(204, 255, 245, 0.035),
    0 0 0 158px rgba(204, 255, 245, 0.025);
}

.brand-content {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  margin: auto;
  display: grid;
  gap: clamp(54px, 8vh, 96px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-lockup img {
  border-radius: 17px;
  box-shadow: 0 12px 30px rgba(0, 32, 28, 0.3);
}

.brand-lockup div {
  display: grid;
  gap: 3px;
}

.brand-lockup strong {
  font-size: 27px;
  letter-spacing: 0.08em;
}

.brand-lockup span {
  color: rgba(233, 255, 250, 0.72);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.brand-message {
  max-width: 590px;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 18px;
  color: #8edfd0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-message h1 {
  margin: 0;
  font-size: clamp(42px, 4.6vw, 68px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.045em;
}

.brand-copy {
  max-width: 550px;
  margin: 28px 0 0;
  color: rgba(234, 255, 251, 0.75);
  font-size: 16px;
  line-height: 1.9;
}

.brand-points {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(241, 255, 252, 0.84);
  font-size: 14px;
}

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

.brand-points span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid rgba(209, 255, 247, 0.28);
  border-radius: 50%;
  color: #a9f2e4;
  font-size: 10px;
  font-weight: 700;
}

.login-panel {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: clamp(28px, 5vw, 76px);
  background:
    radial-gradient(circle at 76% 12%, rgba(18, 170, 152, 0.08), transparent 32%),
    #f7fbfa;
}

.login-card {
  width: min(430px, 100%);
  display: grid;
  gap: 20px;
  padding: clamp(30px, 4vw, 44px);
  border: 1px solid rgba(202, 223, 217, 0.86);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow);
}

.login-card header {
  margin-bottom: 6px;
}

.panel-kicker {
  margin-bottom: 10px;
  color: var(--brand-700);
}

.login-card h2 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.04em;
}

.login-card header p:last-child {
  margin: 12px 0 0;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.7;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 600;
}

.field input {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: #fbfdfc;
  color: var(--ink-950);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input:focus {
  border-color: var(--brand-500);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(18, 170, 152, 0.11);
}

.password-input {
  position: relative;
}

.password-input input {
  padding-right: 68px;
}

.password-input button {
  position: absolute;
  top: 50%;
  right: 9px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--brand-700);
  cursor: pointer;
  font-size: 12px;
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-500);
  font-size: 12px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-700);
  cursor: pointer;
}

.remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-600);
}

.login-status {
  display: none;
  margin: -4px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-800);
  font-size: 12px;
  line-height: 1.6;
}

.login-status.is-visible {
  display: block;
}

.login-status.is-error {
  background: #fff3f2;
  color: var(--danger);
}

.login-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(105deg, var(--brand-800), var(--brand-600));
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(7, 118, 107, 0.22);
}

.login-submit:hover {
  filter: brightness(1.04);
}

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

.device-approval {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #bcded5;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand-800);
  font-size: 12px;
}

.device-approval[hidden] {
  display: none;
}

.device-approval p {
  margin: 0;
  line-height: 1.6;
}

.approval-progress {
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(8, 118, 107, 0.12);
}

.approval-progress span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: var(--brand-500);
  animation: approval-wait 1.5s ease-in-out infinite alternate;
}

@keyframes approval-wait {
  from { transform: translateX(-20%); }
  to { transform: translateX(180%); }
}

.login-card footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 4px;
  color: var(--ink-500);
  font-size: 10px;
  line-height: 1.5;
}

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

  .login-brand {
    min-height: auto;
    padding: 34px 28px 48px;
  }

  .brand-content {
    gap: 38px;
  }

  .brand-message h1 {
    font-size: 38px;
  }

  .brand-points {
    display: none;
  }

  .login-panel {
    min-height: auto;
    padding: 28px 18px 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
