html {
  height: 100%;
  background: #000;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
  touch-action: pan-y;
}

body.auth-page {
  min-height: 100%;
  overflow-x: hidden;
  overscroll-behavior: none;
  color: #fff;
  background: radial-gradient(120% 90% at 50% 45%, #0f0b0c 0%, #060506 40%, #000 100%);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.registration-page #dots { opacity: 1; }

.auth-ecosystem { display: none; }

.auth-soften {
  z-index: 1;
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  width: min(820px, 94vw);
  height: min(940px, 96vh);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(6px) brightness(.84);
  -webkit-backdrop-filter: blur(6px) brightness(.84);
  -webkit-mask-image: radial-gradient(closest-side, #000 42%, rgba(0, 0, 0, .55) 66%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 42%, rgba(0, 0, 0, .55) 66%, transparent 100%);
}

.auth-vignette {
  z-index: 1;
  background: radial-gradient(120% 100% at 50% 50%, transparent 40%, rgba(0, 0, 0, .75) 100%);
}

.auth-stage {
  position: relative;
  z-index: 2;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 20px;
}

.registration-form {
  width: 100%;
  max-width: 430px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .8);
  backdrop-filter: none;
  animation: registration-enter .8s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes registration-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.registration-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
  text-align: center;
}

.registration-mark {
  position: relative;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: #fff;
  animation: registration-breathe 4.5s ease-in-out infinite;
}

.registration-mark::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 0, .75) 0%, rgba(212, 42, 79, .28) 45%, rgba(212, 42, 79, 0) 72%);
}

.registration-mark img {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 0 22px -6px rgba(212, 42, 79, .9);
}

@keyframes registration-breathe {
  0%, 100% { filter: drop-shadow(0 0 14px rgba(212, 42, 79, .40)); }
  50% { filter: drop-shadow(0 0 26px rgba(255, 107, 138, .70)); }
}

.registration-brand h1 {
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -.03em;
}

.registration-brand h1 b { color: #c11d40; font-weight: 700; }
.registration-brand p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .38);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
}

.registration-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 26px;
}
.registration-step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .35);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.registration-step i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  font-size: 11px;
  font-style: normal;
}
.registration-step.active { color: #fff; }
.registration-step.active i { border-color: transparent; background: linear-gradient(120deg, #8d0d29, #e04468); }
.registration-step-line { width: 26px; height: 1px; background: rgba(255, 255, 255, .16); }

.registration-field { margin-bottom: 16px; }
.registration-field label {
  display: block;
  margin-bottom: 8px;
  padding-left: 18px;
  color: rgba(255, 255, 255, .5);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.registration-input-wrap { position: relative; display: flex; align-items: center; }
.registration-lead {
  position: absolute;
  left: 18px;
  width: 15px;
  height: 15px;
  color: rgba(255, 255, 255, .45);
  pointer-events: none;
  transition: color .25s;
}
.registration-input-wrap input {
  width: 100%;
  height: 50px;
  padding: 0 46px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  outline: none;
  color: #fff;
  background: rgba(255, 255, 255, .055);
  font-size: 14.5px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.registration-input-wrap input::placeholder { color: rgba(255, 255, 255, .30); }
.registration-input-wrap input:focus {
  border-color: rgba(255, 107, 138, .75);
  background: rgba(255, 255, 255, .085);
  box-shadow: 0 0 0 4px rgba(255, 107, 138, .14);
}
.registration-input-wrap:focus-within .registration-lead { color: #ff6b8a; }

.registration-eye {
  position: absolute;
  right: 7px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, .45);
  background: transparent;
  cursor: pointer;
}
.registration-eye svg { width: 17px; height: 17px; }
.registration-eye:hover { color: #fff; background: rgba(255, 255, 255, .10); }

.registration-help {
  margin: 8px 0 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, .35);
  font-size: 12px;
}
.registration-help.warning { color: #ffcf6b; }
.registration-help.success { color: #3ddc97; }
.registration-help.error { color: #ff6b8a; }
.registration-password-bars { display: flex; gap: 5px; margin: 10px 0 0; padding-left: 18px; }
.registration-password-bars i { height: 3px; flex: 1; border-radius: 99px; background: rgba(255, 255, 255, .12); }

.registration-button {
  width: 100%;
  height: 50px;
  display: grid;
  place-items: center;
  margin-top: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(120deg, #8d0d29 0%, #c11d40 48%, #e04468 100%);
  box-shadow: 0 16px 34px -18px rgba(212, 42, 79, .9), inset 0 1px 0 rgba(255, 255, 255, .22);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.2, .8, .2, 1);
}
.registration-button:hover { color: #fff; transform: translateY(-2px); }
.registration-button:disabled { cursor: wait; opacity: .65; transform: none; }

.registration-back {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 10px;
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, .70);
  background: transparent;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.registration-back:hover { color: #fff; }
.registration-back svg { width: 15px; height: 15px; color: #ff6b8a; }

.registration-legal {
  margin: 26px 0 0;
  color: rgba(255, 255, 255, .35);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}
.registration-legal a { color: rgba(255, 255, 255, .70); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .2); }

.registration-errors {
  margin: -8px 0 18px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 107, 138, .38);
  border-radius: 18px;
  color: #ffc3d0;
  background: rgba(193, 29, 64, .13);
  font-size: 12px;
  line-height: 1.5;
}
.registration-errors ul { margin: 4px 0 0; padding-left: 18px; }

.registration-success { text-align: center; }
.registration-success-circle {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  border: 1px solid rgba(255, 107, 138, .4);
  border-radius: 50%;
  box-shadow: 0 0 40px -8px rgba(212, 42, 79, .8);
}
.registration-success-circle svg { width: 32px; height: 32px; color: #ff6b8a; }
.registration-success h1 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 26px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: -.02em;
}
.registration-success p {
  max-width: 360px;
  margin: 0 auto 26px;
  color: rgba(255, 255, 255, .70);
  font-size: 14.5px;
  line-height: 1.7;
}

[hidden] { display: none !important; }

@media (max-width: 560px) {
  .auth-stage { padding: 28px 20px; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .registration-form, .registration-mark { animation: none; }
}
