.fixed[data-registration-glass] {
  padding: clamp(0.75rem, 3vw, 2rem);
  perspective: 1400px;
  perspective-origin: center;
  background:
    radial-gradient(ellipse at 50% 12%, rgb(12 45 76 / 36%), transparent 58%),
    rgb(1 5 12 / 82%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.fixed[data-registration-glass] > div {
  position: relative;
  transform-style: preserve-3d;
  width: min(100%, 680px);
  max-width: 680px;
  max-height: min(94dvh, 880px);
  border: 1px solid rgb(77 191 255 / 54%);
  border-radius: 26px;
  background:
    radial-gradient(ellipse at 12% 0%, rgb(23 106 155 / 27%), transparent 42%),
    linear-gradient(145deg, rgb(9 24 40 / 97%), rgb(4 12 23 / 98%) 62%);
  box-shadow:
    0 28px 90px rgb(0 0 0 / 62%),
    0 0 34px rgb(26 165 255 / 19%),
    inset 0 1px 0 rgb(224 247 255 / 12%);
  color: #eef8ff;
}

@keyframes auth-glass-login-enter {
  from {
    opacity: 0.35;
    transform: rotateY(-82deg) scale(0.96);
    box-shadow:
      0 10px 24px rgb(0 0 0 / 35%),
      0 0 12px rgb(26 165 255 / 10%);
  }

  68% {
    opacity: 1;
    transform: rotateY(5deg) scale(1);
  }

  to {
    opacity: 1;
    transform: rotateY(0) scale(1);
    box-shadow:
      0 28px 90px rgb(0 0 0 / 62%),
      0 0 34px rgb(26 165 255 / 19%),
      inset 0 1px 0 rgb(224 247 255 / 12%);
  }
}

@keyframes auth-glass-register-enter {
  from {
    opacity: 0.35;
    transform: rotateY(82deg) scale(0.96);
    box-shadow:
      0 10px 24px rgb(0 0 0 / 35%),
      0 0 12px rgb(26 165 255 / 10%);
  }

  68% {
    opacity: 1;
    transform: rotateY(-5deg) scale(1);
  }

  to {
    opacity: 1;
    transform: rotateY(0) scale(1);
    box-shadow:
      0 28px 90px rgb(0 0 0 / 62%),
      0 0 34px rgb(26 165 255 / 19%),
      inset 0 1px 0 rgb(224 247 255 / 12%);
  }
}

.fixed[data-registration-glass] > div::before,
.fixed[data-registration-glass] > div::after {
  position: absolute;
  z-index: 2;
  width: 30px;
  height: 30px;
  content: "";
  pointer-events: none;
  border-color: rgb(71 190 255 / 82%);
}

.fixed[data-registration-glass] > div::before {
  top: 0;
  left: 0;
  border-top: 2px solid;
  border-left: 2px solid;
  border-top-left-radius: 25px;
}

.fixed[data-registration-glass] > div::after {
  right: 0;
  bottom: 0;
  border-right: 2px solid;
  border-bottom: 2px solid;
  border-bottom-right-radius: 25px;
}

.fixed[data-registration-glass] > div > :first-child {
  position: relative;
  z-index: 1;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgb(88 172 214 / 23%);
  background: linear-gradient(90deg, rgb(10 31 51 / 92%), rgb(8 20 34 / 72%));
}

.fixed[data-registration-glass] h2 {
  color: #f1f9ff !important;
  text-shadow: 0 0 18px rgb(49 178 255 / 24%);
  letter-spacing: 0.01em;
}

.fixed[data-registration-glass] h2::before {
  display: block;
  margin-bottom: 0.3rem;
  color: #46c0ff;
  content: "YANGI HISOB";
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.fixed[data-registration-glass][data-auth-mode="login"] > div {
  max-width: 460px;
  border: 4px solid transparent;
  border-image: conic-gradient(
      from var(--ad-frame-angle, 0deg),
      #ff3b30 0deg 24deg,
      #ffe44d 24deg 50deg,
      #35d07f 50deg 76deg,
      rgb(53 208 127 / 18%) 76deg 150deg,
      rgb(255 59 48 / 16%) 150deg 245deg,
      rgb(255 228 77 / 20%) 245deg 310deg,
      rgb(53 208 127 / 18%) 310deg 360deg
    )
    1;
  background:
    radial-gradient(ellipse at 12% 0%, rgb(23 106 155 / 16%), transparent 44%),
    linear-gradient(145deg, rgb(9 24 40 / 44%), rgb(4 12 23 / 40%) 62%);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transform-origin: right center;
  animation:
    auth-glass-login-enter 620ms cubic-bezier(0.2, 0.75, 0.25, 1) both,
    ad-frame-ring-spin 3s linear infinite;
}

.fixed[data-registration-glass][data-auth-mode="login"] {
  background: rgb(1 5 12 / 46%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.fixed[data-registration-glass][data-auth-mode="login"] > div::before {
  top: 4px;
  right: 5px;
  left: auto;
  width: 62px;
  height: 20px;
  border-top: 3px solid;
  border-right: 3px solid;
  border-left: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 11px;
  filter:
    drop-shadow(0 0 4px rgb(70 192 255 / 90%))
    drop-shadow(0 0 10px rgb(35 164 255 / 65%));
}

.fixed[data-registration-glass][data-auth-mode="login"] > div::after {
  top: 4px;
  right: 79px;
  bottom: auto;
  width: 26px;
  height: 4px;
  border: 0;
  border-top: 4px solid #46c0ff;
  border-right: 0;
  border-radius: 0;
  transform: rotate(-13deg);
  filter:
    drop-shadow(0 0 4px rgb(70 192 255 / 95%))
    drop-shadow(0 0 9px rgb(35 164 255 / 70%));
}

.fixed[data-registration-glass][data-auth-mode="login"] > div > :first-child {
  border-bottom-color: rgb(88 172 214 / 18%);
  background: linear-gradient(90deg, rgb(10 31 51 / 40%), rgb(8 20 34 / 26%));
}

.fixed[data-registration-glass][data-auth-mode="register"] > div {
  transform-origin: left center;
  animation: auth-glass-register-enter 620ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.fixed[data-registration-glass][data-auth-mode="login"] h2::before {
  content: "XUSH KELIBSIZ";
}

.fixed[data-registration-glass] > div > :first-child > button {
  border-color: rgb(104 188 230 / 32%);
  background: rgb(11 31 49 / 74%);
  color: #dcedf8;
}

.fixed[data-registration-glass] > div > :first-child > button:hover {
  border-color: rgb(70 192 255 / 75%);
  background: rgb(19 53 78 / 90%);
}

.fixed[data-registration-glass] > div > :nth-child(2) {
  position: relative;
  z-index: 1;
  padding: 1.25rem 1.5rem 1.5rem;
  scrollbar-color: rgb(55 142 190 / 58%) transparent;
}

.fixed[data-registration-glass] form {
  gap: 1rem;
}

.fixed[data-registration-glass] form > p,
.fixed[data-registration-glass] form > div > p {
  color: #a9bfd0 !important;
  line-height: 1.55;
}

.fixed[data-registration-glass] form label,
.fixed[data-registration-glass] form > div > label {
  color: #d7e9f5 !important;
  letter-spacing: 0.01em;
}

.fixed[data-registration-glass] form input:not([type="checkbox"]),
.fixed[data-registration-glass] form select {
  min-height: 42px;
  border: 1px solid rgb(92 148 183 / 35%) !important;
  border-radius: 12px;
  background: rgb(8 23 38 / 78%) !important;
  color: #eef8ff !important;
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 18%);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.fixed[data-registration-glass] form input:not([type="checkbox"])::placeholder {
  color: #8ca5b8 !important;
  opacity: 0.86;
}

.fixed[data-registration-glass] form input:not([type="checkbox"]):focus,
.fixed[data-registration-glass] form select:focus {
  border-color: #42bdff !important;
  background: rgb(9 29 47 / 96%) !important;
  box-shadow:
    0 0 0 3px rgb(43 169 239 / 17%),
    0 0 18px rgb(28 159 231 / 13%);
  outline: none;
}

.fixed[data-registration-glass] form select option {
  background: #0b1a2a;
  color: #eef8ff;
}

.fixed[data-registration-glass] form input[type="checkbox"] {
  accent-color: #39b9ff;
}

.fixed[data-registration-glass] form > button[type="submit"] {
  min-height: 46px;
  border: 1px solid rgb(128 218 255 / 78%);
  border-radius: 12px;
  background: linear-gradient(100deg, #18a8f3, #55d2ff) !important;
  color: #041522 !important;
  box-shadow:
    0 8px 24px rgb(14 158 235 / 28%),
    inset 0 1px 0 rgb(255 255 255 / 42%);
  letter-spacing: 0.015em;
}

.fixed[data-registration-glass] form > button[type="submit"]:hover {
  filter: brightness(1.09);
  box-shadow:
    0 10px 30px rgb(14 158 235 / 38%),
    inset 0 1px 0 rgb(255 255 255 / 48%);
}

.fixed[data-registration-glass] form > div:last-child {
  color: #a9bfd0 !important;
}

.fixed[data-registration-glass] form > div:last-child button {
  color: #4fc4ff !important;
}

@media (max-width: 640px) {
  .fixed[data-registration-glass] > div {
    max-height: 94dvh;
    border-radius: 22px;
  }

  .fixed[data-registration-glass] > div > :first-child {
    padding: 1rem 1.1rem;
  }

  .fixed[data-registration-glass] > div > :nth-child(2) {
    padding: 1rem 1.1rem 1.25rem;
  }

  .fixed[data-registration-glass] form {
    gap: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fixed[data-registration-glass][data-auth-mode] > div {
    animation: none;
  }

  .fixed[data-registration-glass] form input:not([type="checkbox"]),
  .fixed[data-registration-glass] form select {
    transition: none;
  }
}
