:root {
  --bg: #f4f1e9;
  --panel: #fffdf8;
  --ink: #17201b;
  --muted: #68736c;
  --line: rgba(23, 32, 27, 0.12);
  --accent: #1f8a57;
  --blue: #3267a8;
  --red: #b94a48;
  --shadow: 0 22px 70px rgba(31, 47, 38, 0.14);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(31, 138, 87, 0.14), transparent 34rem),
    linear-gradient(315deg, rgba(50, 103, 168, 0.12), transparent 32rem),
    var(--bg);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

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

.shell {
  width: min(960px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 18px;
  align-items: stretch;
}

.intro,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.intro {
  min-height: 460px;
  padding: 34px;
  position: relative;
  overflow: hidden;
}

.intro::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: 240px;
  height: 126px;
  background:
    linear-gradient(180deg, transparent 0 20%, rgba(31, 138, 87, 0.18) 20% 24%, transparent 24% 45%, rgba(50, 103, 168, 0.2) 45% 49%, transparent 49% 70%, rgba(183, 120, 28, 0.18) 70% 74%, transparent 74%),
    linear-gradient(90deg, rgba(23, 32, 27, 0.09) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 32, 27, 0.08) 1px, transparent 1px);
  background-size: 100% 100%, 48px 100%, 100% 31px;
  border-radius: var(--radius);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 900;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(31, 138, 87, 0.14);
}

h1 {
  margin: 80px 0 14px;
  max-width: 620px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.96;
  letter-spacing: 0;
}

.intro p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.panel {
  padding: 28px;
}

.panel h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.panel-note {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.55;
}

.field {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}

input:focus {
  border-color: rgba(50, 103, 168, 0.65);
  box-shadow: 0 0 0 4px rgba(50, 103, 168, 0.12);
}

.primary {
  width: 100%;
  height: 44px;
  margin-top: 6px;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.primary:disabled {
  cursor: wait;
  opacity: 0.68;
}

.switch {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.switch a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.message {
  min-height: 22px;
  margin-top: 14px;
  color: var(--red);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 780px) {
  .page {
    padding: 14px;
  }

  .shell {
    grid-template-columns: 1fr;
  }

  .intro {
    min-height: 310px;
    padding: 24px;
  }

  .intro::after {
    opacity: 0.32;
  }

  h1 {
    margin-top: 48px;
  }
}
