.page.page--register {
  padding: clamp(10px, 2.2vw, 24px) clamp(8px, 1.8vw, 18px);
}

.register-card {
  max-width: 1040px;
  width: min(100%, 1040px);
  max-height: none;
  padding: 0;
  text-align: left;
  overflow: visible;
}

.register-shell {
  display: grid;
  grid-template-columns: clamp(220px, 24vw, 270px) minmax(0, 1fr);
  min-height: clamp(560px, 72vh, 640px);
}

.register-aside {
  position: relative;
  padding: clamp(22px, 3vw, 34px) clamp(18px, 2.4vw, 26px);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.register-aside::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 166, 0, 0.2), transparent 70%);
  pointer-events: none;
}

.brand--register {
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  flex: 1;
}

.brand--register .brand__logo {
  width: clamp(84px, 9vw, 108px);
  max-width: 100%;
  margin: 0 auto 14px;
}

.brand--register .brand__name {
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: 2px;
  margin: 0 0 8px;
}

.brand--register .brand__subtitle {
  margin: 0;
  max-width: 240px;
  font-size: clamp(13px, 1.5vw, 16px);
  line-height: 1.4;
  text-align: center;
}

.register-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  align-self: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.register-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sodi-yellow);
  box-shadow: 0 0 0 4px rgba(251, 166, 0, 0.12);
}

.register-content {
  padding: clamp(22px, 3vw, 34px) clamp(20px, 3vw, 34px) clamp(20px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.2vw, 24px);
}

.register-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(12px, 1.8vw, 16px);
  margin-bottom: 22px;
}

.register-title {
  margin: 0;
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.register-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 14px) clamp(14px, 2vw, 18px);
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.field-group--full {
  grid-column: 1 / -1;
}

.field-label {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(12px, 1.5vw, 14px);
  font-weight: 800;
}

.register-card .input {
  height: clamp(44px, 5vw, 54px);
  font-size: clamp(15px, 2vw, 18px);
  min-width: 0;
}

.password-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(200px, 0.55fr);
  gap: 16px;
  align-items: start;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rules-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 0;
}

.rules-title {
  margin: 0 0 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.rules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.rules li {
  position: relative;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: all 0.18s ease;
}

.rules li.ok {
  color: #b9f9c2;
}

.rules li.ok::before {
  border-color: #9df0ae;
  background: #9df0ae;
  box-shadow: 0 0 0 4px rgba(157, 240, 174, 0.12);
}

.register-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
}

.btn.btn--register {
  width: auto;
  min-width: clamp(190px, 24vw, 238px);
  height: clamp(48px, 6vw, 58px);
  padding: 0 30px;
  font-size: clamp(16px, 2vw, 20px);
}

.back-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  line-height: 1;
}

.back-link img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

.back-link:hover {
  transform: translateY(-1px);
}

@media (max-height: 820px) and (min-width: 761px) {
  .page.page--register {
    min-height: 100dvh;
    align-items: flex-start;
    overflow: hidden;
  }

  .register-card {
    max-height: calc(100dvh - 28px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .register-shell {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .register-aside {
    min-height: 0;
  }

  .register-content {
    min-height: auto;
    overflow: visible;
    padding-right: clamp(20px, 3vw, 34px);
  }
}

@media (max-height: 720px) and (min-width: 761px) {
  .page.page--register {
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

@media (max-width: 1080px) {
  .register-card {
    max-width: 920px;
  }

  .register-shell {
    grid-template-columns: 230px minmax(0, 1fr);
    min-height: 580px;
  }

  .password-panel {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
}

@media (max-width: 980px) {
  .register-shell {
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: 540px;
  }

  .password-panel {
    grid-template-columns: minmax(0, 1fr) 220px;
  }

  .brand--register .brand__subtitle {
    max-width: 280px;
  }
}

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

  .register-aside {
    min-height: 220px;
    padding: 24px 18px 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

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

  .brand--register {
    gap: 8px;
  }

  .brand--register .brand__subtitle {
    max-width: 360px;
  }
}

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

  .password-panel {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  html,
  body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .page.page--register {
    min-height: 100dvh;
    height: auto;
    align-items: flex-start;
    overflow: hidden;
  }

  .register-card {
    height: auto;
    max-height: calc(100dvh - 20px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .register-shell {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .register-content {
    min-height: auto;
    overflow: visible;
  }

  .register-footer {
    justify-content: stretch;
  }

  .btn.btn--register {
    width: 100%;
    min-width: 0;
  }

  .register-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .back-link {
    align-self: flex-end;
  }
}

@media (max-width: 620px) {
  .register-header {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
  }

  .register-title {
    font-size: clamp(22px, 9vw, 34px);
    line-height: 1.02;
    max-width: 220px;
    text-wrap: balance;
  }

  .back-link {
    flex: 0 0 auto;
    align-self: flex-start;
    margin-top: 2px;
  }

  .register-aside {
    min-height: 0;
  }

  .password-panel {
    padding: 14px;
  }
}

@media (max-width: 480px) {
  .page.page--register {
    padding: 10px 8px;
  }

  .register-card {
    border-radius: 22px;
  }

  .register-content {
    padding: 18px 14px 16px;
  }

  .register-header {
    gap: 10px;
    margin-bottom: 16px;
  }

  .register-title {
    max-width: 190px;
  }

  .register-aside {
    min-height: 220px;
    padding: 18px 14px 16px;
  }

  .register-grid {
    gap: 12px;
  }

  .password-panel {
    padding: 12px;
  }

  .rules-card {
    padding: 12px;
  }

  .back-link img {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 380px) {
  .register-content {
    padding: 16px 12px 14px;
  }

  .register-aside {
    padding: 16px 12px 14px;
  }

  .password-panel {
    padding: 10px;
  }
}
