:root {
  color-scheme: dark;
}

html,
body {
  background: #030303;
}

body.auth-route-body {
  min-height: 100vh;
  margin: 0;
  color: #ffffff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #030303;
  position: relative;
  overflow-x: hidden;
}

body.auth-route-body::before {
  content: "";
  position: fixed;
  top: -42vh;
  right: -18vw;
  left: -18vw;
  height: 92vh;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.11), transparent 62%),
    radial-gradient(ellipse at 50% 46%, rgba(168, 85, 247, 0.06), transparent 58%);
  filter: blur(70px);
  opacity: 0.72;
  z-index: 0;
}

body.auth-route-body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.38;
  z-index: 0;
}

body.auth-route-body > * {
  position: relative;
  z-index: 1;
}

[hidden] {
  display: none !important;
}

.auth-site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  pointer-events: none;
}

body.auth-route-body > .auth-site-nav {
  z-index: 20;
}

.auth-site-nav__inner {
  width: 100%;
  max-width: 80rem;
  min-height: 87px;
  margin: 0 auto;
  padding: 20px 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  pointer-events: auto;
}

.auth-site-nav__brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: 118px;
  min-width: 0;
  text-decoration: none;
}

.auth-site-nav__brand img {
  display: block;
  width: 118px;
  height: auto;
  filter: drop-shadow(0 0 16px rgba(168, 85, 247, 0.18));
}

.auth-site-nav__links,
.auth-site-nav__actions {
  display: flex;
  align-items: center;
}

.auth-site-nav__links {
  justify-content: center;
  gap: 2rem;
  flex: 1 1 auto;
}

.auth-site-nav__actions {
  justify-content: flex-end;
  gap: 0.75rem;
  flex: 0 0 250px;
  min-width: 250px;
}

.auth-site-nav a {
  text-decoration: none;
  white-space: nowrap;
}

.auth-site-nav__links a,
.auth-site-nav__login {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  transition: color 160ms ease;
}

.auth-site-nav__links a:hover,
.auth-site-nav__login:hover {
  color: rgba(255, 255, 255, 0.92);
}

.auth-site-nav__signup {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0.7rem 1.3rem;
  border: 1px solid rgba(192, 132, 252, 0.55);
  border-radius: 0.75rem;
  background: linear-gradient(180deg, #a855f7 0%, #9333ea 100%);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow:
    0 14px 32px rgba(168, 85, 247, 0.22),
    0 0 24px rgba(168, 85, 247, 0.2);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

.auth-site-nav__signup:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow:
    0 18px 38px rgba(168, 85, 247, 0.3),
    0 0 30px rgba(168, 85, 247, 0.26);
}

@media (min-width: 768px) {
  .auth-site-nav__inner {
    padding-right: 3rem;
    padding-left: 3rem;
  }
}

.auth-enter {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  animation: auth-enter 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.auth-enter--delay {
  animation-delay: 0.14s;
}

.auth-panel-shadow {
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.38);
}

.auth-scan-line {
  animation: auth-scan 3s linear infinite;
  will-change: transform;
}

.auth-feature-copy {
  min-height: 2.85rem;
}

.auth-icon-button {
  background: transparent;
  border: 0;
  color: #555555;
  cursor: pointer;
  padding: 0;
}

.auth-icon-button:hover {
  color: rgba(168, 85, 247, 0.8);
}

.auth-password-meter {
  display: flex;
  gap: 0.375rem;
  height: 0.25rem;
  width: 100%;
}

.auth-password-meter span {
  flex: 1;
  height: 100%;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  opacity: 0.3;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.auth-password-rule {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #666666;
  transition: color 0.2s ease;
}

.auth-password-rule-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.auth-password-rule[data-met="true"] {
  color: #a855f7;
}

.auth-password-rule[data-met="true"] .auth-password-rule-dot {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: inset 0 0 0 2px rgba(168, 85, 247, 0.5);
}

.auth-success-icon {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}

@keyframes auth-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes auth-scan {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(100%);
  }
}

@media (max-width: 900px) {
  .auth-site-nav__inner {
    padding: 20px 18px;
    gap: 18px;
  }

  .auth-site-nav__brand,
  .auth-site-nav__brand img {
    width: 96px;
  }

  .auth-site-nav__links {
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .auth-site-nav__links::-webkit-scrollbar {
    display: none;
  }

  .auth-site-nav__links a,
  .auth-site-nav__login,
  .auth-site-nav__signup {
    font-size: 12px;
  }

  .auth-site-nav__actions {
    gap: 12px;
    flex-basis: auto;
    min-width: auto;
  }

  .auth-site-nav__signup {
    min-height: 36px;
    padding: 0 14px;
  }
}

@media (max-width: 640px) {
  .auth-site-nav__inner {
    justify-content: space-between;
  }

  .auth-site-nav__links {
    display: none;
  }

  .auth-site-nav__brand,
  .auth-site-nav__brand img {
    width: 90px;
  }
}
