:root {
  --bg: #101010;
  --panel: #181818;
  --panel-soft: #202020;
  --text: #f6f5f1;
  --muted: #b7b2aa;
  --line: #34312e;
  --accent: #f06a00;
  --accent-hot: #ff3e9d;
  --danger: #ffb7a9;
  --success: #b7f3ce;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(240, 106, 0, 0.22), transparent 1px) 0 100% / 28px 120px repeat-x,
    radial-gradient(circle at 78% 20%, rgba(240, 106, 0, 0.16), transparent 28rem),
    var(--bg);
  color: var(--text);
}

button,
input {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 48px);
  margin: 24px auto;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 0.72fr);
  background: rgba(18, 18, 18, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.visual-panel {
  position: relative;
  min-height: 720px;
  padding: 42px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(16, 16, 16, 0.92) 0%, rgba(16, 16, 16, 0.72) 46%, rgba(16, 16, 16, 0.42) 100%),
    linear-gradient(0deg, rgba(240, 106, 0, 0.52), rgba(240, 106, 0, 0.04)),
    url("bike-store-template.jpg") center / cover;
}

.visual-panel::after {
  content: "";
  position: absolute;
  right: 34px;
  bottom: 34px;
  width: 180px;
  height: 180px;
  border-right: 18px solid rgba(240, 106, 0, 0.85);
  border-bottom: 18px solid rgba(240, 106, 0, 0.85);
}

.brand-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.logo {
  width: 220px;
  height: auto;
  padding: 10px 12px;
  background: #fff;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin-top: 116px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1;
}

h1 {
  max-width: 8ch;
  font-size: clamp(4.2rem, 7vw, 7rem);
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy p:last-child {
  max-width: 440px;
  margin: 26px 0 0;
  color: #e8e3dc;
  font-size: 1.05rem;
  line-height: 1.6;
}

.accent-grid {
  position: absolute;
  z-index: 1;
  right: 22%;
  top: 48%;
  display: grid;
  grid-template-columns: repeat(3, 18px);
  gap: 16px;
}

.accent-grid span {
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 999px;
}

.form-panel {
  padding: 38px;
  background: linear-gradient(180deg, #202020, #151515);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.form-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.form-heading img {
  width: 148px;
  height: auto;
  padding: 8px;
  background: #fff;
}

.form-heading h2 {
  font-size: 2rem;
}

.alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid;
  background: rgba(255, 255, 255, 0.04);
  line-height: 1.45;
}

.alert ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.alert.success {
  color: var(--success);
  border-color: rgba(183, 243, 206, 0.34);
}

.alert.error {
  color: var(--danger);
  border-color: rgba(255, 183, 169, 0.36);
}

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

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.segmented legend {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.segmented label {
  cursor: pointer;
}

.segmented input {
  position: absolute;
  opacity: 0;
}

.segmented span {
  display: grid;
  min-height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-weight: 800;
}

.segmented input:checked + span {
  border-color: var(--accent);
  background: rgba(240, 106, 0, 0.15);
  color: #fff;
}

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

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

.field span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  background: #111;
  color: #fff;
}

.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240, 106, 0, 0.18);
}

.field small {
  color: #938e86;
  font-size: 0.78rem;
  line-height: 1.35;
}

.checks {
  display: grid;
  gap: 12px;
  margin-top: 2px;
}

.check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #e8e3dc;
  font-size: 0.92rem;
  line-height: 1.45;
}

.check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.text-button {
  margin-left: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.submit-button {
  min-height: 52px;
  margin-top: 8px;
  border: 0;
  background: linear-gradient(90deg, var(--accent), #ff8b24);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 16px 32px rgba(240, 106, 0, 0.22);
}

.submit-button:hover {
  filter: brightness(1.07);
}

.legal-dialog {
  width: min(560px, calc(100% - 32px));
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 30px;
  background: #171717;
  color: var(--text);
  box-shadow: var(--shadow);
}

.legal-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.legal-dialog h2 {
  margin-right: 38px;
  font-size: 1.8rem;
}

.legal-dialog p {
  color: #d8d2ca;
  line-height: 1.6;
}

.legal-dialog a {
  color: var(--accent);
  font-weight: 800;
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: #101010;
  color: #fff;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

@media (max-width: 940px) {
  .shell {
    grid-template-columns: 1fr;
  }

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

  .hero-copy {
    margin-top: 74px;
  }

  h1 {
    max-width: 11ch;
    font-size: 4.2rem;
  }

  .accent-grid {
    right: 44px;
  }

  .form-panel {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 620px) {
  .shell {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border: 0;
  }

  .visual-panel,
  .form-panel {
    padding: 24px;
  }

  .visual-panel {
    min-height: 330px;
  }

  .visual-panel::after,
  .accent-grid {
    display: none;
  }

  .logo {
    width: 176px;
  }

  .hero-copy {
    margin-top: 54px;
  }

  h1 {
    font-size: 3rem;
  }

  .hero-copy p:last-child {
    font-size: 0.95rem;
  }

  .form-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-heading img {
    width: 140px;
  }

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