:root {
  --ink: #15211f;
  --ink-soft: #465551;
  --paper: #f5f1e8;
  --card: #fffdf8;
  --line: #ded8cb;
  --accent: #d95d3f;
  --accent-dark: #b8452b;
  --sage: #687e70;
  --ok: #2e7d61;
  --danger: #b33f30;
  --shadow: 0 32px 80px rgba(26, 35, 31, .12);
  --radius: 22px;
  --font-sans: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Songti SC", "Noto Serif SC", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(217, 93, 63, .08), transparent 30rem),
    radial-gradient(circle at 94% 96%, rgba(104, 126, 112, .12), transparent 32rem),
    var(--paper);
  font: 15px/1.7 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input { font: inherit; }
.shell {
  width: min(1240px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px 0;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: stretch;
}
.brand-panel {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  padding: 54px 54px 44px;
  border-radius: var(--radius) 0 0 var(--radius);
  color: #f8f4e9;
  background:
    linear-gradient(155deg, rgba(255,255,255,.04), transparent 40%),
    #172522;
  display: flex;
  flex-direction: column;
}
.brand-panel::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -230px;
  top: -190px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 150px rgba(255,255,255,.018);
}
.brand-panel::after {
  content: "";
  position: absolute;
  left: -70px;
  bottom: 150px;
  width: 230px;
  height: 230px;
  background: linear-gradient(145deg, #cf6b4f, #7c4437);
  border-radius: 48% 52% 58% 42%;
  transform: rotate(24deg);
  opacity: .6;
  filter: blur(2px);
}
.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  font-family: var(--font-serif);
  font-size: 22px;
  color: #f3b49f;
}
.brand small {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .22em;
  color: rgba(255,255,255,.5);
}
.brand-copy {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-bottom: 60px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #d6a58f;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}
.brand-copy h1 {
  margin: 0;
  max-width: 440px;
  font-family: var(--font-serif);
  font-size: clamp(40px, 4.2vw, 62px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.brand-copy h1 em {
  color: #e6a48e;
  font-style: normal;
}
.brand-copy > p {
  max-width: 390px;
  margin: 24px 0 0;
  color: rgba(248,244,233,.64);
  font-size: 14px;
  line-height: 1.9;
}
.feature-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.feature-list span {
  display: flex;
  gap: 9px;
  align-items: center;
  color: rgba(248,244,233,.64);
  font-size: 12.5px;
}
.feature-list svg { flex: none; color: #d58b70; }

.form-panel {
  display: flex;
  flex-direction: column;
  min-height: 760px;
  padding: 46px 54px 38px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}
.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}
.version {
  color: #8b928d;
  font-size: 12px;
  letter-spacing: .08em;
}
.steps {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a4a7a0;
  font-size: 11.5px;
}
.steps b {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  margin-right: 3px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
}
.steps .is-active { color: var(--ink); }
.steps .is-active b {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.steps .is-done { color: var(--ok); }
.steps .is-done b { color: var(--ok); border-color: rgba(46,125,97,.35); background: rgba(46,125,97,.08); }
.steps i { width: 16px; height: 1px; background: var(--line); }
.panel-body { flex: 1; }
.panel-step { animation: rise .45s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
h2 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.lede { margin: 0 0 26px; color: #7b827d; font-size: 13.5px; }

.check-list {
  display: grid;
  gap: 9px;
  margin: 0 0 22px;
}
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid #ebe6db;
  border-radius: 12px;
  background: #fbf9f3;
}
.check-icon {
  flex: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ok);
  background: rgba(46,125,97,.09);
}
.check.is-bad .check-icon { color: var(--danger); background: rgba(179,63,48,.08); }
.check.is-optional { opacity: .72; }
.check-label { flex: 1; font-size: 13px; }
.check-value { color: #8a918b; font-size: 11.5px; text-align: right; }
.check.is-bad .check-value { color: var(--danger); }
.notice {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f3efe4;
  color: #686e68;
  font-size: 12px;
  line-height: 1.7;
}
.notice svg { flex: none; margin-top: 2px; color: var(--sage); }
.alert {
  display: flex;
  gap: 10px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(179,63,48,.18);
  border-radius: 12px;
  color: #8e3325;
  background: #fdf3ef;
  font-size: 13px;
}
.alert svg { flex: none; margin-top: 3px; }

.form-section { margin-bottom: 22px; }
.section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  color: #8b8f88;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: #ece7dc; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.span-2 { grid-column: span 2; }
.field label { color: #505a54; font-size: 12px; font-weight: 600; }
.field label span { margin-left: 4px; color: #a1a59f; font-weight: 400; }
.input, .select {
  width: 100%;
  height: 43px;
  padding: 0 13px;
  border: 1px solid #ddd7ca;
  border-radius: 10px;
  outline: 0;
  color: var(--ink);
  background: #fffefa;
  font-size: 13.5px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input:focus {
  border-color: #b76a54;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(217,93,63,.1);
}
.input::placeholder { color: #b6b7b1; }
.password-wrap { position: relative; }
.password-wrap .input { padding-right: 46px; }
.password-wrap .input::-ms-reveal,
.password-wrap .input::-ms-clear { display: none; }
.reveal {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #9a9e97;
  background: transparent;
  line-height: 0;
  cursor: pointer;
  transform: translateY(-50%);
  -webkit-appearance: none;
  appearance: none;
}
.reveal svg { display: block; }
.reveal:hover { color: var(--ink); background: #f4f0e7; }
.reveal:focus-visible { outline: 2px solid #b76a54; outline-offset: 2px; }
.helper { color: #9da19b; font-size: 11px; line-height: 1.5; }
.demo-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #e7e1d5;
  border-radius: 12px;
  background: #fbf9f4;
  cursor: pointer;
}
.demo-toggle input { margin-top: 4px; accent-color: var(--accent); }
.demo-toggle strong { display: block; font-size: 12.5px; }
.demo-toggle small { color: #8d938d; font-size: 11px; }

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid #eee9de;
}
.secure-note { display: flex; align-items: center; gap: 7px; color: #9ca099; font-size: 11px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 20px rgba(217,93,63,.22);
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-ghost {
  color: var(--ink);
  border-color: #ddd7cb;
  background: #fffdf8;
}
.btn-ghost:hover { background: #f7f3ea; }

.success-wrap { display: grid; place-items: center; height: 100%; text-align: center; padding: 30px 0; }
.success-mark {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #3c8a6d, #245f4c);
  box-shadow: 0 18px 36px rgba(46,125,97,.2);
}
.success-wrap h2 { font-size: 34px; }
.success-wrap p { max-width: 390px; margin: 0 auto 26px; color: #7c837d; font-size: 13.5px; }
.success-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 26px; }
.credential-note { max-width: 430px; margin: 0 auto; padding: 14px 16px; border: 1px dashed #d9d2c4; border-radius: 12px; color: #7e857f; font-size: 12px; text-align: left; }
.credential-note strong { color: #9b4b35; }
.footnote { margin-top: auto; padding-top: 22px; color: #a5a7a3; font-size: 10.5px; display: flex; justify-content: space-between; gap: 12px; }
.hidden { display: none !important; }
.spinner { display: inline-block; width: 13px; height: 13px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: install-spin .7s linear infinite; vertical-align: -2px; }
@keyframes install-spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .shell { width: min(720px, calc(100% - 32px)); grid-template-columns: 1fr; padding: 20px 0; }
  .brand-panel { min-height: auto; border-radius: var(--radius) var(--radius) 0 0; padding: 34px 32px; }
  .brand-copy { margin-top: 56px; padding-bottom: 24px; }
  .brand-copy h1 { font-size: 40px; }
  .feature-list { display: none; }
  .form-panel { min-height: auto; border-radius: 0 0 var(--radius) var(--radius); border-left: 1px solid var(--line); border-top: 0; padding: 32px; }
}
@media (max-width: 600px) {
  .shell { width: 100%; padding: 0; }
  .brand-panel { border-radius: 0; padding: 26px 22px 30px; }
  .brand-copy { margin-top: 38px; padding-bottom: 0; }
  .brand-copy h1 { font-size: 34px; }
  .brand-copy > p { margin-top: 14px; font-size: 12.5px; }
  .form-panel { border-radius: 0; border: 0; padding: 26px 22px 30px; box-shadow: none; }
  .panel-top { margin-bottom: 24px; }
  .steps span { display: none; }
  .steps .is-active span, .steps .is-active b { display: inline-grid; }
  .steps .is-active b { margin-right: 0; }
  .field-grid { grid-template-columns: 1fr; }
  .field.span-2 { grid-column: span 1; }
  .actions { flex-direction: column-reverse; align-items: stretch; }
  .actions .btn { width: 100%; }
  .secure-note { justify-content: center; }
  .footnote { flex-direction: column; gap: 4px; }
  .credential-note { text-align: center; }
}
