:root {
  --auth-violet: #656096;
  --auth-violet-deep: #514c82;
  --auth-ink: #232333;
  --auth-muted: #6f7080;
  --auth-warm: #f7f5f0;
  --auth-paper: #fffdfa;
  --auth-curve: cubic-bezier(0.32, 0.72, 0, 1);
}

.auth-page-shell {
  background: var(--auth-warm);
  color: var(--auth-ink);
  font-family: "Plus Jakarta Sans", sans-serif;
}

.auth-page-shell .app-content.content {
  min-height: 100dvh;
  margin-left: 0 !important;
  padding: 0 !important;
  background: var(--auth-warm);
}

.auth-page-shell .content-wrapper,
.auth-page-shell .content-body {
  min-height: 100dvh;
  margin-top: 0 !important;
  padding: 0 !important;
}

.auth-page-shell .content-overlay,
.auth-page-shell .header-navbar-shadow,
.auth-page-shell .sidenav-overlay,
.auth-page-shell .drag-target,
.auth-page-shell .chat-support-button,
.auth-page-shell .footer {
  display: none !important;
}

.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(520px, 0.92fr);
  min-height: 100dvh;
  background: var(--auth-warm);
}

.auth-story {
  position: sticky;
  top: 0;
  display: flex;
  min-height: 100dvh;
  align-self: start;
  overflow: hidden;
  background-color: #171515;
  background-image: url("/images/auth/nightlife-auth.webp");
  background-position: 56% center;
  background-size: cover;
  isolation: isolate;
}

.auth-story::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 9, 13, 0.12) 0%, rgba(10, 9, 13, 0.1) 34%, rgba(10, 9, 13, 0.82) 100%);
  content: "";
}

.auth-story-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(8, 7, 11, 0.34) 0%, rgba(8, 7, 11, 0.04) 68%);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--auth-ink);
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-decoration: none;
  transition: opacity 500ms var(--auth-curve), transform 500ms var(--auth-curve);
}

.auth-brand:hover,
.auth-brand:focus {
  color: inherit;
  opacity: 0.78;
  text-decoration: none;
  transform: translateY(-1px);
}

.auth-brand--story {
  position: absolute;
  top: clamp(2rem, 5vw, 4.25rem);
  left: clamp(2rem, 5vw, 5.5rem);
  color: #fff;
  animation: auth-rise 900ms var(--auth-curve) both;
}

.auth-brand--story img {
  filter: brightness(0) invert(1);
}

.auth-brand--panel {
  margin-bottom: 2.15rem;
}

.auth-story-copy {
  width: min(680px, calc(100% - 4rem));
  margin: auto clamp(2rem, 5vw, 5.5rem) clamp(3rem, 7vh, 6.5rem);
  color: #fff;
  animation: auth-rise 1s 100ms var(--auth-curve) both;
}

.auth-eyebrow {
  display: inline-flex;
  margin: 0 0 1.2rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.auth-story h1 {
  max-width: 620px;
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 5vw, 5.7rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.98;
  text-wrap: balance;
}

.auth-story-description {
  max-width: 610px;
  margin: 1.55rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}

.auth-signal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.35rem 2.4rem;
  margin-top: 2.4rem;
}

.auth-signal-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  line-height: 1.35;
}

.auth-signal-item strong {
  display: block;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

.auth-signal-icon {
  position: relative;
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.auth-signal-icon::before,
.auth-signal-icon::after {
  position: absolute;
  content: "";
}

.auth-signal-icon--forecast::before {
  width: 0.82rem;
  height: 0.82rem;
  border: 2px solid #b9b4ff;
  border-radius: 50%;
}

.auth-signal-icon--forecast::after {
  width: 0.24rem;
  height: 0.24rem;
  border-radius: 50%;
  background: #fff;
}

.auth-signal-icon--live::before {
  width: 1.05rem;
  height: 0.65rem;
  background: linear-gradient(90deg, transparent 0 8%, #b9b4ff 8% 16%, transparent 16% 31%, #fff 31% 40%, transparent 40% 55%, #b9b4ff 55% 64%, transparent 64% 79%, #fff 79% 87%, transparent 87%);
}

.auth-signal-icon--global::before {
  width: 0.9rem;
  height: 0.9rem;
  border: 1px solid #b9b4ff;
  border-radius: 50%;
}

.auth-signal-icon--global::after {
  width: 0.35rem;
  height: 0.9rem;
  border-right: 1px solid #fff;
  border-left: 1px solid #fff;
  border-radius: 50%;
}

.auth-panel {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  padding: clamp(5.5rem, 8vw, 8rem) clamp(2rem, 5vw, 5rem) 4rem;
  background:
    radial-gradient(circle at 85% 8%, rgba(101, 96, 150, 0.09), transparent 30%),
    var(--auth-warm);
}

.auth-back-link {
  position: absolute;
  top: 2.25rem;
  right: clamp(2rem, 5vw, 4rem);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--auth-violet-deep);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 450ms var(--auth-curve), transform 450ms var(--auth-curve);
}

.auth-back-link:hover,
.auth-back-link:focus {
  color: var(--auth-ink);
  text-decoration: none;
  transform: translateX(-3px);
}

.auth-panel-inner {
  width: min(100%, 600px);
  animation: auth-rise 950ms 160ms var(--auth-curve) both;
}

.auth-card-shell {
  padding: 0.42rem;
  border-radius: 2.05rem;
  background: rgba(101, 96, 150, 0.07);
  box-shadow: 0 24px 70px rgba(54, 49, 82, 0.11), inset 0 0 0 1px rgba(101, 96, 150, 0.1);
}

.auth-card {
  padding: clamp(2rem, 4vw, 3.6rem);
  border-radius: 1.65rem;
  background: rgba(255, 253, 250, 0.97);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 0 0 1px rgba(101, 96, 150, 0.08);
}

.auth-heading {
  margin: 0;
  color: var(--auth-ink);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.auth-subheading {
  margin: 0.75rem 0 1.75rem;
  color: var(--auth-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.auth-card .form-group {
  margin-bottom: 1.05rem;
}

.auth-card .form-group label {
  display: block;
  margin: 0 0 0.5rem;
  color: var(--auth-ink);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.auth-card .form-control {
  min-height: 3.45rem;
  border: 0;
  border-radius: 1rem;
  background: rgba(247, 245, 240, 0.66);
  box-shadow: inset 0 0 0 1px rgba(67, 63, 89, 0.18), inset 0 1px 2px rgba(35, 35, 51, 0.03);
  color: var(--auth-ink);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.92rem;
  transition: background-color 450ms var(--auth-curve), box-shadow 450ms var(--auth-curve), transform 450ms var(--auth-curve);
}

.auth-card .form-control::placeholder {
  color: #9c9aa4;
}

.auth-card .form-control:hover {
  background: #fff;
}

.auth-card .form-control:focus {
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--auth-violet), 0 0 0 4px rgba(101, 96, 150, 0.12);
  transform: translateY(-1px);
}

.auth-name-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.auth-name-row .form-group {
  min-width: 0;
}

.auth-inline-link,
.auth-footer-link {
  color: var(--auth-violet-deep);
  font-weight: 600;
  text-decoration: none;
  transition: color 400ms var(--auth-curve);
}

.auth-inline-link:hover,
.auth-inline-link:focus,
.auth-footer-link:hover,
.auth-footer-link:focus {
  color: var(--auth-ink);
  text-decoration: none;
}

.auth-form-meta {
  display: flex;
  justify-content: flex-end;
  margin: -0.15rem 0 1.2rem;
  font-size: 0.82rem;
}

.auth-primary-button,
.auth-google-button {
  display: inline-flex;
  width: 100%;
  min-height: 3.45rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: box-shadow 500ms var(--auth-curve), color 500ms var(--auth-curve), background-color 500ms var(--auth-curve), transform 500ms var(--auth-curve);
}

.auth-primary-button {
  background: var(--auth-violet);
  box-shadow: 0 12px 28px rgba(101, 96, 150, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #fff;
}

.auth-primary-button:hover,
.auth-primary-button:focus {
  background: var(--auth-violet-deep);
  box-shadow: 0 16px 34px rgba(81, 76, 130, 0.28), 0 0 0 4px rgba(101, 96, 150, 0.12);
  color: #fff;
  transform: translateY(-2px);
}

.auth-primary-button:active,
.auth-google-button:active {
  transform: scale(0.985);
}

.auth-google-button {
  gap: 0.75rem;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(67, 63, 89, 0.15), 0 8px 22px rgba(54, 49, 82, 0.06);
  color: var(--auth-ink);
}

.auth-google-button:hover,
.auth-google-button:focus {
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(101, 96, 150, 0.42), 0 12px 28px rgba(54, 49, 82, 0.1), 0 0 0 4px rgba(101, 96, 150, 0.09);
  color: var(--auth-ink);
  text-decoration: none;
  transform: translateY(-2px);
}

.auth-google-icon {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 1.2rem;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.8rem;
  align-items: center;
  margin: 1.45rem 0;
  color: #9896a0;
  font-size: 0.72rem;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  background: rgba(67, 63, 89, 0.16);
  content: "";
}

.auth-footer-copy {
  margin: 1.35rem 0 0;
  color: var(--auth-muted);
  font-size: 0.8rem;
  line-height: 1.65;
  text-align: center;
}

.auth-secondary-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  justify-content: center;
  margin-top: 0.55rem;
  font-size: 0.74rem;
}

.auth-terms {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0.25rem 0 1rem;
  color: var(--auth-muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.auth-terms input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.1rem;
  flex: 0 0 1rem;
  accent-color: var(--auth-violet);
}

.auth-flash .alert,
.auth-card .alert {
  border: 0;
  border-radius: 0.95rem;
  box-shadow: inset 0 0 0 1px currentColor;
  font-size: 0.78rem;
  line-height: 1.45;
}

.auth-flash:empty {
  display: none;
}

.auth-card .field-error {
  margin: 0.4rem 0 0;
  font-size: 0.72rem;
}

.auth-card .cf-turnstile {
  overflow: hidden;
  max-width: 100%;
}

@keyframes auth-rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1199.98px) {
  .auth-page {
    grid-template-columns: minmax(0, 1fr) minmax(500px, 0.92fr);
  }

  .auth-signal-list {
    gap: 1rem 1.4rem;
  }

  .auth-signal-item:last-child {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .auth-page {
    display: block;
  }

  .auth-story {
    position: relative;
    min-height: 25rem;
    background-position: center 44%;
  }

  .auth-story::after {
    background: linear-gradient(180deg, rgba(10, 9, 13, 0.08) 0%, rgba(10, 9, 13, 0.1) 42%, rgba(10, 9, 13, 0.9) 100%);
  }

  .auth-brand--story {
    top: 1.75rem;
    left: 2rem;
  }

  .auth-story-copy {
    width: min(620px, calc(100% - 4rem));
    margin: auto 2rem 2.5rem;
  }

  .auth-story h1 {
    max-width: 580px;
    font-size: clamp(2.7rem, 8vw, 4.2rem);
  }

  .auth-story-description {
    margin-top: 1rem;
    font-size: 1rem;
  }

  .auth-signal-list {
    display: none;
  }

  .auth-panel {
    min-height: 0;
    padding: 5.5rem 2rem 3rem;
  }

  .auth-back-link {
    top: 1.7rem;
    right: 2rem;
  }

  .auth-brand--panel {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .auth-story {
    min-height: 22rem;
  }

  .auth-brand--story {
    top: 1.4rem;
    left: 1.25rem;
    gap: 0.65rem;
    font-size: 1.2rem;
  }

  .auth-brand--story img {
    width: 36px;
    height: auto;
  }

  .auth-story-copy {
    width: calc(100% - 2.5rem);
    margin: auto 1.25rem 2rem;
  }

  .auth-eyebrow {
    margin-bottom: 0.8rem;
    font-size: 0.58rem;
  }

  .auth-story h1 {
    max-width: 340px;
    font-size: 2.7rem;
    line-height: 1.02;
  }

  .auth-story-description {
    max-width: 340px;
    margin-top: 0.8rem;
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .auth-panel {
    padding: 4.7rem 1rem 2rem;
  }

  .auth-back-link {
    top: 1.45rem;
    right: 1.25rem;
    font-size: 0.78rem;
  }

  .auth-card-shell {
    padding: 0.28rem;
    border-radius: 1.65rem;
  }

  .auth-card {
    padding: 1.75rem 1.25rem;
    border-radius: 1.4rem;
  }

  .auth-heading {
    font-size: 2rem;
  }

  .auth-subheading {
    margin-bottom: 1.4rem;
  }

  .auth-name-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-brand,
  .auth-back-link,
  .auth-panel-inner,
  .auth-primary-button,
  .auth-google-button,
  .auth-story-copy,
  .auth-card .form-control {
    animation: none !important;
    transition: none !important;
  }
}
