:root {
  color-scheme: light;
  --paper: #f7efe2;
  --paper-deep: #efe0c8;
  --ink: #1f2b24;
  --muted: #647068;
  --line: rgba(50, 66, 54, 0.16);
  --primary: #315c45;
  --primary-strong: #254433;
  --gold: #b8894b;
  --surface: rgba(255, 252, 246, 0.9);
  --shadow: 0 24px 80px rgba(58, 45, 28, 0.16);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 18%, rgba(184, 137, 75, 0.18), transparent 30%),
    radial-gradient(circle at 84% 10%, rgba(49, 92, 69, 0.14), transparent 28%),
    linear-gradient(135deg, #fbf6ed 0%, var(--paper) 42%, #ead8bb 100%);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(49, 92, 69, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 92, 69, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--primary-strong);
  text-decoration: underline;
}

.register-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.94fr) minmax(320px, 520px);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  width: min(1160px, calc(100% - 40px));
  min-height: 100dvh;
  margin: 0 auto;
  padding: 48px 0;
}

.brand-panel {
  min-height: 620px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.72), rgba(255, 246, 231, 0.48)),
    url("/landing/assets/writing-desk.jpg") center / cover;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.brand-panel::after {
  content: "";
  position: absolute;
}

.brand-mark {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid rgba(49, 92, 69, 0.22);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.76);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  backdrop-filter: blur(14px);
}

.brand-copy {
  max-width: 620px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 252, 246, 0.72);
  backdrop-filter: blur(16px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

h1,
h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.05;
}

h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.18;
}

.lead,
.form-heading p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feature-list span {
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid rgba(49, 92, 69, 0.18);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.78);
  color: #31463a;
  font-size: 13px;
  font-weight: 700;
}

.form-card {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.form-heading {
  margin-bottom: 28px;
}

form {
  display: grid;
  gap: 18px;
}

.field-grid,
.captcha-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field-group {
  display: grid;
  gap: 8px;
}

label,
legend {
  color: #2c3b31;
  font-size: 14px;
  font-weight: 700;
}

input[type="text"],
input[type="password"],
input:not([type]) {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input::placeholder {
  color: rgba(100, 112, 104, 0.68);
}

input:focus {
  border-color: rgba(49, 92, 69, 0.6);
  box-shadow: 0 0 0 4px rgba(49, 92, 69, 0.12);
  background: #fffdfa;
}

.captcha-button {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary);
  cursor: pointer;
  display: grid;
  place-items: center;
  gap: 4px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.captcha-button:hover,
.captcha-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(49, 92, 69, 0.45);
  background: #fffdfa;
}

.captcha-button img {
  width: 116px;
  height: 38px;
  object-fit: contain;
}

.consent-card {
  margin: 2px 0 0;
  padding: 18px;
  border: 1px solid rgba(49, 92, 69, 0.14);
  border-radius: 22px;
  background: rgba(246, 239, 227, 0.58);
}

.consent-card legend {
  padding: 0 8px;
}

.consent-card label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 36px;
  margin-top: 10px;
  color: #34463a;
  font-weight: 600;
  line-height: 1.6;
}

.consent-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--primary);
  flex: 0 0 auto;
}

.rule-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.rule-links a {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(49, 92, 69, 0.14);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: #8a3f2d;
  font-size: 14px;
  line-height: 1.55;
}

.form-message.success {
  color: #2f6f49;
}

.primary-button {
  min-height: 52px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fffaf0;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(49, 92, 69, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(49, 92, 69, 0.28);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
  box-shadow: none;
}

.footer-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 920px) {
  .register-shell {
    grid-template-columns: 1fr;
    width: min(680px, calc(100% - 28px));
    padding: 28px 0;
  }

  .brand-panel {
    min-height: 420px;
  }
}

@media (max-width: 560px) {
  .register-shell {
    width: min(100% - 20px, 680px);
  }

  .brand-panel,
  .form-card {
    border-radius: 24px;
  }

  .field-grid,
  .captcha-row {
    grid-template-columns: 1fr;
  }

  .captcha-button {
    min-height: 68px;
  }

  .feature-list span {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}
