:root {
  --ink: #17221e;
  --muted: #64716c;
  --line: #dce4df;
  --surface: #ffffff;
  --canvas: #f2f6f3;
  --brand: #156f4a;
  --brand-dark: #0c5035;
  --brand-soft: #dff3e8;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--canvas);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
}

button,
input {
  font: inherit;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
}

.auth-intro {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: clamp(32px, 5vw, 72px);
  color: #f7fff9;
  background:
    radial-gradient(circle at 82% 18%, rgba(121, 218, 164, 0.35), transparent 28%),
    radial-gradient(circle at 18% 85%, rgba(69, 154, 110, 0.35), transparent 30%),
    linear-gradient(145deg, #092a1d 0%, #0f5035 52%, #17744d 100%);
}

.auth-intro::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -120px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(255, 255, 255, 0.04),
    0 0 0 140px rgba(255, 255, 255, 0.025);
}

.auth-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
}

.auth-brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: #0d5136;
  background: #e7fff0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.auth-intro-copy {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.auth-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.auth-intro h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.auth-intro-copy > p:last-child {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(247, 255, 249, 0.78);
  font-size: 18px;
  line-height: 1.8;
}

.auth-benefits {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(247, 255, 249, 0.86);
  font-size: 14px;
}

.auth-benefits li::before {
  content: "✓";
  margin-right: 8px;
  color: #91efb8;
  font-weight: 900;
}

.auth-card {
  align-self: center;
  width: min(480px, calc(100% - 48px));
  margin: 48px auto;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(28, 54, 42, 0.11);
}

.auth-card-heading h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.auth-card-heading > p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.auth-card .auth-kicker {
  color: var(--brand);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 28px 0 24px;
  padding: 5px;
  border-radius: 12px;
  background: var(--canvas);
}

.auth-tab {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.auth-tab.is-active {
  color: var(--brand-dark);
  background: #fff;
  box-shadow: 0 3px 14px rgba(24, 63, 44, 0.09);
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-form[hidden] {
  display: none;
}

.auth-form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #cfd9d3;
  border-radius: 10px;
  outline: none;
  background: #fff;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.auth-form input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(21, 111, 74, 0.12);
}

.auth-submit {
  min-height: 50px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--brand);
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(21, 111, 74, 0.2);
}

.auth-submit:hover {
  background: var(--brand-dark);
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.6;
}

.auth-link {
  border: 0;
  color: var(--brand);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.auth-fine-print {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.auth-message {
  min-height: 22px;
  margin: 20px 0 0;
  color: var(--brand-dark);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.auth-message.is-error {
  color: var(--danger);
}

@media (max-width: 880px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-intro {
    min-height: auto;
    gap: 48px;
    padding: 32px 24px 48px;
  }

  .auth-intro h1 {
    font-size: clamp(34px, 10vw, 52px);
  }

  .auth-benefits {
    display: grid;
  }

  .auth-card {
    width: min(520px, calc(100% - 32px));
    margin: 28px auto 48px;
  }
}
