:root {
  --bg: #eae8e4;
  --surface: #fdfcfa;
  --line: #dad7d1;
  --ink: #2c2a28;
  --muted: #8a8680;
  --accent: #5c6d73;
  --accent-hover: #4a585d;
  --danger: #9a6b65;
  --radius: 3px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 4vw, 48px) clamp(18px, 5vw, 72px) 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: clamp(32px, 6vh, 72px);
}

.logo-mark {
  width: 10px;
  height: 42px;
  background: var(--accent);
  border-radius: var(--radius);
  margin-top: 6px;
  flex-shrink: 0;
}

.brand-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-title {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  flex: 1;
}

.intro {
  padding-top: clamp(8px, 2vh, 24px);
  padding-right: clamp(0px, 3vw, 32px);
  max-width: 460px;
  animation: rise 0.7s var(--ease) both;
}

.intro-label {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.intro-title {
  margin: 0 0 18px;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.intro-copy {
  margin: 0 0 22px;
  font-size: 15px;
  color: var(--muted);
  max-width: 38ch;
}

.intro-meta {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}

.intro-meta li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
  opacity: 0.55;
}

.panel-wrap {
  justify-self: end;
  width: min(100%, 400px);
  margin-top: clamp(12px, 4vh, 48px);
  animation: rise 0.75s var(--ease) 0.05s both;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 26px;
}

.panel-head {
  margin-bottom: 22px;
}

.panel-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.field-input {
  appearance: none;
  width: 100%;
  padding: 11px 12px;
  font-size: 15px;
  color: var(--ink);
  background: #f7f6f4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.field-input:hover {
  border-color: #cbc8c1;
}

.field-input:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}

.captcha-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

.captcha-field {
  min-width: 0;
}

.captcha-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding-bottom: 2px;
}

.captcha-img {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7f6f4;
}

.btn-text {
  border: none;
  background: none;
  padding: 0;
  font-size: 12px;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

.btn-text:hover {
  color: var(--accent-hover);
}

.form-msg {
  min-height: 1.2em;
  margin: 0;
  font-size: 13px;
  color: var(--danger);
}

.form-msg.is-ok {
  color: var(--accent);
}

.btn-primary {
  margin-top: 4px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #f7f6f4;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.18s var(--ease);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.fineprint {
  margin: 14px 2px 0;
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}

.footer {
  margin-top: auto;
  padding-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 11px;
  color: var(--muted);
}

.footer-sep {
  opacity: 0.45;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 880px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .intro {
    max-width: none;
    padding-right: 0;
  }

  .panel-wrap {
    justify-self: stretch;
    width: 100%;
    margin-top: 8px;
  }

  .fineprint {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .captcha-row {
    grid-template-columns: 1fr;
  }

  .captcha-side {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
}
