:root {
  --bg: #f4f7fb;
  --ink: #172033;
  --muted: #667085;
  --line: #d8e1ee;
  --panel: #ffffff;
  --blue: #2457d6;
  --green: #0f8a66;
  --shadow: 0 18px 55px rgba(32, 45, 72, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

.signup-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.intro {
  background: #101827;
  color: #ffffff;
  padding: 52px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-wrap: anywhere;
}
  justify-content: center;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.brand-logo-wrap {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
  display: block;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: var(--blue);
  border-radius: 8px;
  font-weight: 800;
}

.brand-row strong,
.brand-row span {
  display: block;
}

.brand-row span,
.intro p,
.trust-list span,
.connector-row p {
  color: #aab7cf;
}

.intro h1 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

.intro p {
  max-width: 560px;
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.55;
}

.trust-list {
  display: grid;
  gap: 10px;
  margin-top: 36px;
}

.trust-list span {
  padding-left: 18px;
  position: relative;
}

.trust-list span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.signup-card {
  padding: 42px;
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}

form {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 26px;
}

.stepper {
  width: 100%;
  max-width: 760px;
  margin: 0 auto 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.stepper span {
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e9eef7;
  color: #4b5871;
  font-weight: 700;
  font-size: 13px;
}

.stepper .active {
  background: var(--blue);
  color: #ffffff;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0 0 16px;
  padding: 18px;
}

legend {
  padding: 0 8px;
  font-weight: 800;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  color: #344054;
  font-weight: 650;
}

input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
}

.connector-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

.connector-row p {
  margin: 4px 0 0;
  color: var(--muted);
}

.primary-button,
.secondary-button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 800;
}

.primary-button {
  background: var(--blue);
  color: #ffffff;
}

.secondary-button {
  background: #e9eef7;
  color: #263954;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  margin-top: 10px;
  border-radius: 999px;
  background: #fff4df;
  color: #9a5b00;
  font-weight: 750;
  font-size: 13px;
}

.status-pill.connected {
  background: #e5f7ef;
  color: var(--green);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.check-row input {
  width: 18px;
  min-height: 18px;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.form-actions a {
  color: var(--blue);
  font-weight: 750;
  text-decoration: none;
}

.signup-status {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .signup-shell {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .intro,
  .signup-card {
    padding: 20px;
    min-width: 0;
    max-width: 100vw;
  }

  .signup-card input,
  .signup-card button,
  .form-actions {
    max-width: 100%;
  }
}
