/* Registration sits in the normal site chrome: header above, footer below. */

html.page-register-start,
html.page-register-start body,
html.page-register-start body.page-auth,
html.page-register-start body.page-auth .main-content {
  background: var(--theme-bg, #f6f7fb);
}

.reg-start {
  --reg-blue: var(--theme-primary, #2f5eff);
  --reg-ink: var(--theme-text-primary, #1a1a1a);
  --reg-muted: var(--theme-text-secondary, #4b5563);
  --reg-line: var(--theme-border, #e6e8ef);
  --reg-ease: cubic-bezier(0.23, 1, 0.32, 1);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 36px 24px 48px;
  color: var(--reg-ink);
  position: relative;
  overflow: hidden;
}

.reg-start__layout {
  position: relative;
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 400px);
  gap: 72px;
  align-items: center;
}

.reg-start__story {
  position: relative;
  max-width: 440px;
  z-index: 0;
}

.reg-start__wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.reg-start__blob {
  position: absolute;
  border-radius: 50%;
  background: #e7ecf8;
}

.reg-start__blob--a {
  width: 240px;
  height: 240px;
  left: -72px;
  bottom: -36px;
}

.reg-start__blob--b {
  width: 180px;
  height: 180px;
  right: -8px;
  top: 18px;
  background: #eef2fb;
}

.reg-start__dash {
  position: absolute;
  left: 450px;
  top: 357px;
  width: 180px;
  height: 132px;
  color: #c5d0e6;
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 1080px) {
  .reg-start__dash {
    display: none;
  }
}

.reg-start__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: #e8edff;
  color: var(--reg-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.reg-start__kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--reg-blue);
}

.reg-start__title {
  margin: 0;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #1b2330;
}

.reg-start__lead {
  margin: 16px 0 0;
  max-width: 34em;
  font-size: 16px;
  line-height: 1.5;
  color: #6b7280;
}

.reg-start__points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reg-start__points li,
.reg-start__note {
  display: flex;
  align-items: center;
  gap: 14px;
}

.reg-start__mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: #e8efff;
  color: var(--reg-blue);
  border: 1px solid #b9ccff;
  box-shadow: 0 1px 2px rgba(47, 94, 255, 0.08);
}

.reg-start__mark--done {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  border: none;
  box-shadow: none;
}

.reg-start__mark svg {
  display: block;
}

.reg-start__points strong,
.reg-start__note strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--reg-ink);
}

.reg-start__points small,
.reg-start__note small {
  display: block;
  margin-top: 2px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--theme-text-muted, #7a8395);
}

.reg-start__note {
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e8ebf2;
  box-shadow: 0 8px 24px rgba(23, 32, 61, 0.04);
}

.reg-start__card {
  position: relative;
  z-index: 1;
  background: var(--theme-surface, #fff);
  border: 1px solid var(--reg-line);
  border-radius: 16px;
  padding: 28px 24px 20px;
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.05);
}

.reg-start__card-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.reg-start__card-head p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--reg-muted);
}

.reg-start__alert {
  margin: 16px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--theme-bg, #f6f7fb);
  color: var(--reg-ink);
  font-size: 13.5px;
  line-height: 1.4;
}

.reg-start__alert--error {
  background: #fff1f1;
  color: #9f1239;
}

.reg-start__alert--success {
  background: #ecfdf3;
  color: #166534;
}

.reg-start__oauth-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.reg-start__oauth,
.reg-start__submit {
  transition: transform 160ms var(--reg-ease), background-color 140ms ease, border-color 140ms ease;
}

.reg-start__oauth {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--reg-line);
  border-radius: 12px;
  background: #fff;
  color: var(--reg-ink);
  text-decoration: none;
}

.reg-start__oauth-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.reg-start__oauth-mark--yandex {
  background: transparent;
}

.reg-start__oauth-mark--yandex img {
  width: 28px;
  height: 28px;
  display: block;
}

.reg-start__oauth-mark--vk {
  background: #0077ff;
}

.reg-start__oauth-mark--sber {
  background: #21a038;
  border-radius: 50%;
}

.reg-start__oauth-mark--vk img,
.reg-start__oauth-mark--sber img {
  width: 16px;
  height: 16px;
  display: block;
}

.reg-start__oauth-label {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}

.reg-start__chevron {
  flex: 0 0 auto;
  color: #98a2b3;
  transition: transform 160ms var(--reg-ease);
}

.reg-start__divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 16px 0 14px;
  color: var(--theme-text-muted, #7a8395);
  font-size: 13px;
}

.reg-start__divider::before,
.reg-start__divider::after {
  content: "";
  height: 1px;
  background: var(--reg-line);
}

.reg-start__form {
  display: flex;
  flex-direction: column;
}

.reg-start__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reg-start__field > span:first-child {
  font-size: 13px;
  font-weight: 600;
  color: var(--reg-ink);
}

.reg-start__control {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--reg-line);
  border-radius: 12px;
  background: #fff;
  color: #98a2b3;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.reg-start__control:focus-within {
  border-color: color-mix(in srgb, var(--reg-blue) 55%, #fff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--reg-blue) 16%, transparent);
  color: var(--reg-blue);
}

.reg-start__control input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--reg-ink);
  font: inherit;
  font-size: 15px;
  padding: 0;
}

.reg-start__control input::placeholder {
  color: #98a2b3;
}

.reg-start__control input:-webkit-autofill {
  -webkit-text-fill-color: var(--reg-ink);
  box-shadow: 0 0 0 1000px #fff inset;
  caret-color: var(--reg-ink);
}

.reg-start__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  border: 0;
  border-radius: 12px;
  background: var(--reg-blue);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.reg-start__foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--reg-line);
  text-align: center;
}

.reg-start__foot p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--reg-muted);
}

.reg-start__foot a {
  color: var(--reg-blue);
  font-weight: 600;
  text-decoration: none;
}

.reg-start__foot .reg-start__legal {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  text-wrap: balance;
  color: var(--theme-text-muted, #7a8395);
}

.reg-start__legal a {
  color: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.reg-start__oauth:focus-visible,
.reg-start__submit:focus-visible,
.reg-start__foot a:focus-visible {
  outline: 2px solid var(--reg-blue);
  outline-offset: 3px;
}

.reg-start__oauth:active,
.reg-start__submit:active {
  transform: scale(0.98);
}

@media (hover: hover) and (pointer: fine) {
  .reg-start__oauth:hover {
    background: var(--theme-bg, #f6f7fb);
    border-color: color-mix(in srgb, var(--reg-line) 70%, var(--reg-ink));
    transform: translateX(3px);
  }

  .reg-start__oauth:hover .reg-start__chevron {
    transform: translateX(3px);
  }

  .reg-start__oauth:hover:active {
    transform: translateX(3px) scale(0.98);
  }

  .reg-start__submit:hover {
    background: color-mix(in srgb, var(--reg-blue) 88%, #000);
  }

  .reg-start__foot a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
  }
}

@media (max-width: 860px) {
  .reg-start {
    align-items: flex-start;
    padding: 20px 16px 32px;
  }

  .reg-start__layout {
    grid-template-columns: 1fr;
    width: min(440px, 100%);
  }

  .reg-start__story,
  .reg-start__dash {
    display: none;
  }

  .reg-start__card {
    width: 100%;
  }

  html.page-register-start .site-header .actions {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reg-start__oauth,
  .reg-start__submit,
  .reg-start__control,
  .reg-start__chevron {
    transition: none;
  }

  .reg-start__oauth:hover,
  .reg-start__oauth:active,
  .reg-start__oauth:hover:active,
  .reg-start__oauth:hover .reg-start__chevron,
  .reg-start__submit:active {
    transform: none;
  }
}
