:root {
  --ink: #101828;
  --muted: #667085;
  --line: rgba(16, 24, 40, 0.10);
  --panel: rgba(255, 255, 255, 0.94);
  --blue: #1767f2;
  --teal: #11a69c;
  --amber: #f3a61f;
  --deep: #091421;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: linear-gradient(180deg, #eef4fb 0%, #f7f9fc 100%);
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  padding: 20px;
  overflow-x: hidden;
}

.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(16, 24, 40, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 40, 0.035) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.34), transparent 48%);
}

.signup-shell {
  position: relative;
  width: min(760px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.intro-panel {
  position: sticky;
  top: 20px;
  min-height: min(680px, calc(100vh - 40px));
  display: grid;
  align-content: space-between;
  gap: 26px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.18), rgba(7, 17, 31, 0.88)),
    url("./assets/v2-mission-unitree-g1-workshop.jpg") center / cover no-repeat;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}

.intro-panel::after {
  content: "";
  position: absolute;
  inset: auto -20% -18% -20%;
  height: 44%;
  background: radial-gradient(circle at 52% 50%, rgba(17, 166, 156, 0.24), transparent 62%);
  pointer-events: none;
}

.brand-line {
  position: relative;
  z-index: 1;
  width: fit-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.brand-icon {
  width: 28px;
  height: 28px;
}

.intro-copy-block {
  position: relative;
  z-index: 1;
  align-self: end;
}

.eyebrow {
  margin: 0 0 12px;
  color: #94f4df;
  font-size: 13px;
  font-weight: 800;
}

h1 {
  margin: 0;
  max-width: 8em;
  font-size: clamp(38px, 5.5vw, 58px);
  line-height: 1.03;
  letter-spacing: 0;
}

.intro-copy {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  line-height: 1.72;
}

.target-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.target-strip span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(148, 244, 223, 0.38);
  border-radius: 8px;
  background: rgba(9, 20, 33, 0.42);
  color: #d7fff6;
  font-size: 12px;
  font-weight: 800;
}

.intro-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.intro-list span {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.90);
  font-size: 14px;
  backdrop-filter: blur(10px);
}

.intro-list strong {
  color: var(--amber);
  font-size: 12px;
}

.signup-form {
  display: grid;
  gap: 14px;
  padding: 0 0 20px;
}

.form-header,
.form-section,
.submit-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 20px 60px rgba(16, 24, 40, 0.08);
  backdrop-filter: blur(18px);
}

.form-header {
  padding: 22px 22px 20px;
}

.form-header p {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.form-header h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: 0;
}

.form-lead {
  margin-top: 12px;
  padding: 12px 14px;
  border-left: 4px solid var(--amber);
  border-radius: 8px;
  background: #fff7e8;
  color: #674d1a;
  font-size: 14px;
  line-height: 1.68;
}

.form-section {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title span {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.section-title h3 {
  margin: 0;
  font-size: 17px;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend,
label span {
  display: block;
  margin-bottom: 8px;
  color: #344054;
  font-size: 14px;
  font-weight: 800;
}

.option-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.option-group legend {
  width: 100%;
}

.field-hint {
  width: 100%;
  margin: -4px 0 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.option-group label {
  cursor: pointer;
}

.option-group input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.option-group label > span {
  min-height: 42px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 13px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-radius: 8px;
  background: #f7f9fc;
  color: #34445a;
  font-size: 14px;
}

.option-group input:checked + span {
  border-color: rgba(23, 103, 242, 0.60);
  background: #eaf2ff;
  color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(23, 103, 242, 0.12);
}

.identity-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.identity-options legend,
.identity-options .field-hint {
  grid-column: 1 / -1;
}

.identity-options label > span {
  min-height: 96px;
  width: 100%;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
}

.identity-options strong {
  color: inherit;
  font-size: 16px;
  line-height: 1.25;
}

.identity-options small {
  color: #667085;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.identity-options input:checked + span small {
  color: #315da8;
}

.chips input:checked + span {
  border-color: rgba(17, 166, 156, 0.58);
  background: #e9f8f5;
  color: #087f78;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  min-width: 0;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(16, 24, 40, 0.13);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  outline: none;
}

input,
select {
  min-height: 46px;
  padding: 0 13px;
}

textarea {
  resize: vertical;
  padding: 12px 13px;
  line-height: 1.6;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(23, 103, 242, 0.72);
  box-shadow: 0 0 0 3px rgba(23, 103, 242, 0.12);
}

.wide-field {
  display: block;
}

.submit-panel {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.submit-button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.form-status.is-success {
  color: #087f78;
}

.form-status.is-error {
  color: #b42318;
}

@media (max-width: 860px) {
  body {
    padding: 12px;
    background: linear-gradient(180deg, #eef4fb 0%, #f7f9fc 100%);
  }

  .signup-shell {
    width: 100%;
    gap: 12px;
  }

  .intro-panel {
    position: relative;
    top: auto;
    min-height: 360px;
    padding: 20px;
    border-radius: 12px;
  }

  h1 {
    max-width: 7em;
    font-size: 40px;
  }

  .intro-copy {
    max-width: 300px;
    font-size: 15px;
  }

  .intro-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .intro-list span {
    min-height: 58px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 9px 10px;
    font-size: 13px;
  }

  .form-header,
  .form-section,
  .submit-panel {
    border-radius: 12px;
  }

  .form-header {
    padding: 20px;
  }

  .form-header h2 {
    font-size: 24px;
  }

  .form-section {
    padding: 18px;
  }

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

  .identity-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .form-section {
    gap: 14px;
  }

  .identity-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .identity-options label > span {
    min-height: 58px;
    justify-content: center;
    gap: 0;
    padding: 10px;
  }

  .identity-options small {
    display: none;
  }
}
