.auth-page,
.billing-page {
  --auth-bg: #06090a;
  --auth-bg-soft: #0b1010;
  --auth-bg-panel: #101a12;
  --auth-border: #1c2e20;
  --auth-accent: #00f080;
  --auth-accent-soft: rgba(0, 240, 128, 0.1);
  --auth-accent-glow: rgba(0, 240, 128, 0.2);
  --auth-text: #dff0e4;
  --auth-text-muted: #6b9478;
  --auth-text-soft: #3d5e47;
  --auth-danger: #ff5a5a;
  background: var(--auth-bg);
  color: var(--auth-text);
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  min-height: 100vh;
  position: relative;
}

.auth-page {
  align-items: center;
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 1.5rem;
}

.auth-page__background {
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.auth-page__background::before {
  background-image: radial-gradient(circle, rgba(0, 240, 128, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  content: "";
  inset: 0;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 0%, transparent 100%);
  position: absolute;
}

.auth-page__background::after {
  animation: auth-breathe 9s ease-in-out infinite;
  background: radial-gradient(circle, rgba(0, 240, 128, 0.07) 0%, transparent 65%);
  border-radius: 50%;
  content: "";
  height: 31.25rem;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 31.25rem;
}

.auth-page__wrap {
  position: relative;
  width: 100%;
  z-index: 1;
}

.auth-page__wrap {
  margin: 0 auto;
  max-width: 25rem;
}

.auth-page__brand {
  color: var(--auth-text);
  display: block;
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 1.75rem;
  font-stretch: condensed;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 0.4rem;
  text-align: center;
  text-decoration: none;
}

.auth-page__tagline {
  color: var(--auth-text-muted);
  font-size: 0.82rem;
  margin: 0 0 1.75rem;
  text-align: center;
}

.auth-card {
  background: var(--auth-bg-soft);
  border: 1px solid var(--auth-border);
  border-radius: 1.25rem;
  box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.35);
  padding: 1.75rem;
}

.auth-tabs {
  background: var(--auth-bg-panel);
  border-radius: 0.75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  padding: 0.25rem;
}

.auth-tabs__link {
  border: 1px solid transparent;
  border-radius: 0.6rem;
  color: var(--auth-text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.6rem 0.75rem;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.auth-tabs__link.is-active {
  background: var(--auth-bg-soft);
  border-color: var(--auth-border);
  box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.28);
  color: var(--auth-text);
}

.auth-card__back {
  align-items: center;
  color: var(--auth-text-muted);
  display: inline-flex;
  font-size: 0.85rem;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  text-decoration: none;
}

.auth-form {
  display: grid;
  gap: 0.95rem;
}

.auth-form--compact {
  margin-top: 1rem;
}

.auth-form__group {
  display: grid;
  gap: 0.4rem;
}

.auth-form__label {
  color: var(--auth-text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-form__input {
  background: var(--auth-bg-panel);
  border: 1px solid var(--auth-border);
  border-radius: 0.65rem;
  box-sizing: border-box;
  color: var(--auth-text);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  padding: 0.85rem 0.95rem;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
  width: 100%;
}

.auth-form__input::placeholder {
  color: var(--auth-text-soft);
}

.auth-form__input:focus {
  border-color: rgba(0, 240, 128, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 240, 128, 0.07);
}

.auth-form__helper-link {
  margin: -0.1rem 0 0.15rem;
  text-align: right;
}

.auth-form__helper-link a,
.auth-page__back-link a {
  color: var(--auth-text-muted);
  text-decoration: none;
}

.auth-form__link-submit {
  background: transparent;
  border: 0;
  color: var(--auth-text-muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0;
  text-align: center;
  text-decoration: none;
}

.auth-form__link-submit:hover {
  color: var(--auth-accent);
}

.auth-form__submit {
  background: var(--auth-accent);
  border: 0;
  border-radius: 999px;
  box-sizing: border-box;
  color: #06090a;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.9rem 1.25rem;
  transition:
    box-shadow 180ms ease,
    transform 180ms ease;
  width: 100%;
}

.auth-form__submit:hover:hover {
  box-shadow: 0 0 1.75rem var(--auth-accent-glow);
  transform: translateY(-1px);
}

.auth-message {
  border-radius: 0.8rem;
  font-size: 0.82rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  padding: 0.8rem 0.9rem;
}

.auth-message--error {
  background: rgba(255, 90, 90, 0.1);
  border: 1px solid rgba(255, 90, 90, 0.25);
  color: var(--auth-danger);
}

.auth-message--success {
  background: var(--auth-accent-soft);
  border: 1px solid rgba(0, 240, 128, 0.2);
  color: var(--auth-accent);
}

.auth-message__list {
  margin: 0;
  padding-left: 1rem;
}

.auth-page__back-link {
  color: var(--auth-text-soft);
  font-size: 0.82rem;
  margin: 1.1rem 0 0;
  text-align: center;
}

@keyframes auth-breathe {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@media (max-width: 40rem) {
  .auth-page {
    align-items: flex-start;
    padding-top: 2.5rem;
  }

  .auth-card, {
    padding: 1.25rem;
  }

  .auth-page__background::after {
    height: 18rem;
    width: 18rem;
  }
}

.billing-page {
  overflow: auto;
  padding: 2rem 1.25rem 4rem;
}

.billing-page__shell {
  margin: 0 auto;
  max-width: 68rem;
  position: relative;
  z-index: 1;
}

.billing-header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.billing-header__brand {
  color: var(--auth-text);
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 1.55rem;
  font-stretch: condensed;
  font-weight: 800;
  text-decoration: none;
}

.billing-header__signout {
  background: rgba(223, 240, 228, 0.06);
  border: 1px solid rgba(223, 240, 228, 0.14);
  border-radius: 999px;
  color: var(--auth-text);
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.7rem 1rem;
}

.billing-layout {
  align-items: stretch;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr) minmax(21rem, 24rem);
}

.billing-hero,
.billing-plan {
  background: rgba(11, 16, 16, 0.92);
  border: 1px solid var(--auth-border);
  border-radius: 1.25rem;
  box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.32);
}

.billing-hero {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.billing-message {
  border-radius: 0.8rem;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0 0 1.25rem;
  padding: 0.8rem 0.95rem;
}

.billing-message--success {
  background: rgba(0, 240, 128, 0.08);
  border: 1px solid rgba(0, 240, 128, 0.2);
  color: var(--auth-accent);
}

.billing-message--error {
  background: rgba(255, 90, 90, 0.1);
  border: 1px solid rgba(255, 90, 90, 0.25);
  color: var(--auth-danger);
}

.billing-hero__eyebrow,
.billing-plan__topline {
  color: var(--auth-text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0;
  text-transform: uppercase;
}

.billing-hero__title {
  color: var(--auth-text);
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(2.35rem, 6vw, 4.4rem);
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0.75rem 0 1rem;
  max-width: 11ch;
}

.billing-hero__copy {
  color: #9bb7a4;
  font-size: 1rem;
  line-height: 1.75;
  margin: 0;
  max-width: 39rem;
}

.billing-account {
  background: rgba(0, 240, 128, 0.07);
  border: 1px solid rgba(0, 240, 128, 0.18);
  border-radius: 1rem;
  display: grid;
  gap: 0.35rem;
  margin-top: 1.75rem;
  max-width: 28rem;
  padding: 1rem;
}

.billing-account__label {
  color: var(--auth-text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.billing-account__email {
  color: var(--auth-accent);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.billing-benefits {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.75rem;
}

.billing-benefit {
  align-items: center;
  color: var(--auth-text);
  display: flex;
  gap: 0.75rem;
  line-height: 1.45;
}

.billing-benefit__mark {
  align-items: center;
  background: var(--auth-accent);
  border-radius: 999px;
  color: #06100a;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 900;
  height: 1.35rem;
  justify-content: center;
  width: 1.35rem;
}

.billing-plan {
  align-self: start;
  padding: 1.5rem;
}

.billing-plan__name {
  color: var(--auth-text);
  font-size: 1.2rem;
  margin: 0.8rem 0 0.4rem;
}

.billing-plan__description,
.billing-plan__footnote {
  color: var(--auth-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.billing-plan__price {
  align-items: flex-end;
  border-bottom: 1px solid var(--auth-border);
  border-top: 1px solid var(--auth-border);
  display: flex;
  justify-content: space-between;
  margin: 1.25rem 0;
  padding: 1.25rem 0;
}

.billing-plan__currency {
  color: var(--auth-text-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.billing-plan__amount {
  color: var(--auth-accent);
  font-size: 2rem;
  line-height: 1;
}

.billing-plan__details {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

.billing-plan__details div {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.billing-plan__details dt {
  color: var(--auth-text-muted);
  font-size: 0.85rem;
}

.billing-plan__details dd {
  color: var(--auth-text);
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0;
  text-align: right;
}

.billing-plan__form {
  margin: 0;
}

.billing-plan__button {
  background: var(--auth-accent);
  border: 0;
  border-radius: 0.75rem;
  color: #06100a;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 1rem 1.25rem;
  width: 100%;
}

.billing-plan__button:hover {
  box-shadow: 0 0 1.75rem var(--auth-accent-glow);
  transform: translateY(-1px);
}

.billing-plan__footnote {
  margin-top: 1rem;
}

@media (max-width: 52rem) {
  .billing-layout {
    grid-template-columns: 1fr;
  }

  .billing-hero__title {
    max-width: 14ch;
  }
}

@media (max-width: 40rem) {
  .billing-page {
    padding: 1rem 1rem 3rem;
  }

  .billing-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .billing-header form,
  .billing-header__signout {
    width: 100%;
  }
}
