:root {
  color-scheme: light;
  --bg: #171226;
  --panel: #fff8ef;
  --panel-soft: #f3e8dc;
  --text: #2c2137;
  --muted: #786b70;
  --border: rgba(74, 46, 55, 0.17);
  --primary: #d96d3d;
  --primary-strong: #8f432d;
  --primary-soft: #f7dfca;
  --success: #447b61;
  --danger: #b83b43;
  --warning: #9b651f;
  --shadow: 0 30px 80px rgba(15, 10, 29, 0.32);
}

body {
  position: relative;
  min-height: 100svh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(225, 131, 67, 0.2), transparent 27%),
    linear-gradient(145deg, #211936, #110e1e 72%);
  color: var(--text);
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 18, 38, 0.2), rgba(23, 18, 38, 0.72) 72%, #171226 100%),
    url("./assets/pozhan-register-bg.webp") center / cover no-repeat;
  content: "";
  opacity: 0.24;
}

body::after {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(rgba(255, 232, 200, 0.12) 0.7px, transparent 0.7px);
  background-size: 20px 20px;
  content: "";
  mask-image: linear-gradient(90deg, #000, transparent 58%);
  pointer-events: none;
}

.page {
  width: min(1340px, 100%);
  min-height: calc(100svh - 70px);
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(410px, 500px);
  gap: 20px;
  padding: 22px;
}

.intro {
  position: sticky;
  top: 22px;
  display: flex;
  min-height: calc(100svh - 44px);
  max-width: none;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 4vw, 58px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(24, 16, 40, 0.2), rgba(27, 17, 41, 0.26) 43%, rgba(24, 15, 38, 0.91) 100%),
    url("./assets/pozhan-register-bg.webp") center 42% / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 227, 189, 0.05), var(--shadow);
  color: #fff;
}

.intro::after {
  position: absolute;
  right: -92px;
  bottom: -92px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 210, 150, 0.25);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 48px rgba(255, 210, 150, 0.035), 0 0 0 94px rgba(255, 210, 150, 0.025);
}

.brand {
  position: relative;
  z-index: 2;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 9px 25px rgba(17, 10, 28, 0.25);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1;
}

.brand strong { font-size: 15px; }
.brand small { margin-top: 6px; color: rgba(255, 255, 255, 0.6); font-size: 8px; font-weight: 600; letter-spacing: 0.15em; }

.intro-copy { position: relative; z-index: 2; max-width: 620px; margin-top: auto; padding-top: 240px; }
.intro-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 18px !important; color: #ffd08e !important; font-size: 9px !important; font-weight: 800; letter-spacing: 0.19em; }
.intro-kicker span { width: 28px; height: 1px; background: currentColor; }

h1 {
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(52px, 6vw, 88px);
  line-height: 0.94;
  letter-spacing: -0.06em;
  text-shadow: 0 5px 30px rgba(18, 10, 28, 0.42);
}

h1 em { color: #ffd49a; font-family: Georgia, "Songti SC", serif; font-style: normal; font-weight: 650; }
.intro-copy > p:last-child { max-width: 500px; color: rgba(255, 255, 255, 0.68); font-size: 14px; line-height: 1.8; }

.contract {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0 0;
}

.contract li {
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(30, 20, 44, 0.28);
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 650;
  backdrop-filter: blur(10px);
}

.check {
  width: 15px;
  height: 15px;
  background: rgba(239, 157, 91, 0.18);
  color: #ffc57f;
  font-size: 9px;
}

.register-card {
  align-self: start;
  width: 100%;
  margin: 0;
  padding: 30px;
  border: 1px solid rgba(255, 236, 214, 0.62);
  border-radius: 28px;
  background: rgba(255, 248, 239, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.card-head {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.card-head > div > p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.card-head > a { flex: 0 0 auto; padding: 7px 0; color: var(--primary-strong); font-size: 9px; font-weight: 760; text-decoration: none; }
.card-kicker { display: block; margin-bottom: 8px; color: var(--primary); font-size: 8px; font-weight: 800; letter-spacing: 0.17em; }
.card-title { color: #31243b; font-size: 25px; letter-spacing: -0.03em; }

.form { gap: 11px; }
.section-label { display: flex; align-items: center; gap: 9px; margin: 7px 0 1px; color: var(--primary-strong); font-size: 10px; letter-spacing: 0.12em; }
.section-label::after { height: 1px; flex: 1; background: var(--border); content: ""; }
.field { gap: 6px; }
.field label { color: #51434c; font-size: 11px; font-weight: 730; }

input {
  min-height: 45px;
  border-color: rgba(87, 59, 66, 0.18);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.8);
  color: #2c2137;
}

input:focus {
  border-color: #d57948;
  box-shadow: 0 0 0 4px rgba(217, 109, 61, 0.13);
}

input[readonly] { background: #eee3d9; color: #83747a; }
.field-error { min-height: 14px; color: var(--danger); font-size: 10px; }
.phone-grid { grid-template-columns: 86px minmax(0, 1fr); }
.code-grid { grid-template-columns: minmax(0, 1fr) 108px; }

.send-button,
.submit-button,
.copy-button {
  min-height: 45px;
  border-radius: 11px;
}

.send-button {
  margin-top: 22px;
  border-color: rgba(183, 88, 44, 0.24);
  background: #f5dfca;
  color: #8f432d;
  font-size: 11px;
}

.submit-button {
  min-height: 49px;
  margin-top: 3px;
  background: linear-gradient(135deg, #e58449, #c75c36);
  box-shadow: 0 12px 24px rgba(179, 72, 41, 0.2);
  color: #fff;
  font-size: 12px;
}

.submit-button:not(:disabled):hover { background: linear-gradient(135deg, #ee9555, #cf653c); }
.copy-button { border-color: var(--border); background: #fffaf4; color: var(--primary-strong); }
.password-button { color: #89787e; }
.agreement-label { color: #796b70; font-size: 11px; }
.agreement-label input { accent-color: var(--primary); }
.agreement-label a { color: var(--primary-strong); }
.status { min-height: 18px; color: var(--muted); font-size: 11px; }

.company-footer {
  width: min(1340px, 100%);
  grid-template-columns: repeat(3, auto);
  justify-content: center;
  gap: 18px;
  padding: 6px 22px 22px;
  color: rgba(255, 255, 255, 0.4);
}

.company-footer p,
.company-footer a { color: inherit; font-size: 9px; text-decoration: none; }

body.is-register-success::before { opacity: 0.55; }
body.is-register-success .page { width: min(560px, 100%); min-height: calc(100svh - 70px); }
body.is-register-success .register-card { max-width: 500px; padding: 0; border: 0; background: transparent; }
body.is-register-success .result.show { gap: 18px; }
.success-brand { color: #fff0dd; }
.success-brand img { width: 42px; height: 42px; }
.success-hero {
  padding: 45px 28px;
  border: 1px solid rgba(255, 232, 202, 0.5);
  border-radius: 24px;
  background: rgba(255, 248, 239, 0.96);
  box-shadow: var(--shadow);
}
.success-mark { background: rgba(224, 125, 66, 0.14); color: #b85b35; }
.result h2 { color: #31243b; }
.success-message { color: #786b70; }

@media (max-width: 900px) {
  .page { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
  .intro { position: relative; top: auto; min-height: 540px; padding: 30px; }
  .intro-copy { padding-top: 220px; }
  .register-card { padding: 28px; }
  .company-footer { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 560px) {
  .page { gap: 10px; padding: 8px; }
  .intro { min-height: 390px; padding: 20px; border-radius: 20px; background-position: center 38%; }
  .brand-mark { width: 32px; height: 32px; }
  .brand small { display: none; }
  .intro-copy { padding-top: 150px; }
  .intro-kicker { margin-bottom: 10px !important; }
  h1 { margin-bottom: 12px; font-size: 42px; }
  .intro-copy > p:last-child { font-size: 12px; line-height: 1.6; }
  .contract { display: none; }
  .register-card { padding: 20px 16px; border-radius: 20px; }
  .card-head { align-items: flex-start; }
  .card-head > a { display: none; }
  .card-title { font-size: 22px; }
  .phone-grid, .code-grid { grid-template-columns: 1fr; }
  .send-button { width: 100%; margin-top: 0; }
  .company-footer { padding: 8px 12px 18px; }
  body.is-register-success .page { padding: 16px; }
  .success-message { white-space: normal; }
}

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