:root {
  --red: #ee1b16;
  --ink: #171914;
  --muted: #74776f;
  --line: #e4e5df;
  --surface: #f5f6f2;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "Manrope", sans-serif;
}

button,
input {
  font: inherit;
}

.register-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(560px, 1.15fr);
  min-height: 100vh;
}

.register-visual {
  position: relative;
  display: flex;
  min-height: 720px;
  flex-direction: column;
  padding: 38px clamp(30px, 5vw, 76px);
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 70% 65%, rgba(238, 27, 22, 0.16), transparent 35%),
    var(--ink);
}

.register-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
}

.logo {
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  color: white;
  font-family: "Unbounded", sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.logo-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: var(--red);
  font-size: 19px;
}

.logo small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 7px;
  letter-spacing: 0.2em;
}

.visual-copy {
  z-index: 2;
  max-width: 590px;
  margin: auto 0;
}

.visual-copy > p,
.eyebrow {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.visual-copy > p span {
  display: inline-block;
  width: 28px;
  height: 2px;
  margin: 0 8px 3px 0;
  background: var(--red);
}

.visual-copy h1 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.visual-copy h1 em {
  color: var(--red);
  font-style: normal;
}

.visual-copy > span {
  display: block;
  max-width: 500px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  line-height: 1.75;
}

.track-art {
  position: absolute;
  right: -25%;
  bottom: -10%;
  width: 90%;
  opacity: 0.1;
}

.track-art path {
  fill: none;
  stroke: white;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 55;
}

.visual-number {
  z-index: 2;
  color: rgba(255, 255, 255, 0.16);
  font-family: "Unbounded", sans-serif;
  font-size: 12px;
}

.register-content {
  display: grid;
  padding: 48px clamp(24px, 6vw, 100px);
  place-items: center;
  background: white;
}

.register-card {
  width: min(650px, 100%);
}

.register-card h2 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.05em;
}

.intro {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.register-form {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.register-form label:not(.agreement) {
  display: grid;
  gap: 7px;
  color: #4f524b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.register-form input:not([type="checkbox"]) {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  background: white;
  color: var(--ink);
  font-size: 11px;
  text-transform: none;
  transition: 0.2s ease;
}

.register-form input:not([type="checkbox"]):focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(238, 27, 22, 0.07);
}

.register-form input.invalid {
  border-color: var(--red);
}

.register-form label small {
  min-height: 11px;
  color: var(--red);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.team-suggest-field {
  position: relative;
}

.team-suggest-list {
  position: absolute;
  z-index: 5;
  top: calc(100% - 8px);
  left: 0;
  right: 0;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.team-suggest-list button {
  padding: 11px 13px;
  border: 0;
  border-top: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}

.team-suggest-list button:first-child {
  border-top: 0;
}

.team-suggest-list button:hover {
  background: var(--surface);
}

.captcha-block {
  display: grid;
  grid-template-columns: 190px minmax(180px, 1fr);
  align-items: end;
  gap: 15px;
}

.captcha-image {
  position: relative;
  height: 68px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.captcha-image img {
  display: block;
  width: 190px;
  height: 68px;
}

.captcha-image button {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: white;
  background: rgba(23, 25, 20, 0.78);
  cursor: pointer;
}

.agreement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
  cursor: pointer;
}

.agreement input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--red);
}

.form-error {
  margin: 0;
  padding: 11px 13px;
  border-radius: 8px;
  color: #b31511;
  background: #fff0ef;
  font-size: 9px;
  line-height: 1.5;
}

.submit-button {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  color: white;
  background: var(--red);
  box-shadow: 0 12px 28px rgba(238, 27, 22, 0.2);
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

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

.submit-button span {
  font-size: 16px;
}

.success-view {
  text-align: center;
}

.success-icon {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 28px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--red);
  font-size: 30px;
}

.success-view .eyebrow {
  margin-bottom: 12px;
}

.success-view > p:not(.eyebrow) {
  max-width: 430px;
  margin: 18px auto 28px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.success-view .submit-button {
  max-width: 320px;
  margin: 0 auto;
}

@media (max-width: 980px) {
  .register-layout {
    grid-template-columns: 1fr;
  }

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

  .visual-copy {
    margin: auto 0 20px;
  }

  .visual-copy h1 {
    font-size: clamp(38px, 9vw, 64px);
  }
}

@media (max-width: 620px) {
  .register-visual {
    min-height: 360px;
    padding: 25px 20px;
  }

  .visual-copy > span {
    display: none;
  }

  .register-content {
    padding: 55px 20px;
  }

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

  .captcha-block {
    align-items: start;
  }
}

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