/* Auth */
.auth-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
}

.auth-checkbox-row input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.auth-panel--waitlist h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin-bottom: 0.5rem;
}

.auth-label__optional {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  opacity: 0.65;
}

.auth-checkbox-row a {
  color: inherit;
  text-decoration: underline;
}

.auth-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    var(--cloud-header-offset)
    var(--layout-gutter)
    clamp(3rem, 8vw, 5rem);
  overflow: clip;
}

.auth-page__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.auth-page__backdrop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transform: scale(1.12);
  transform-origin: center 12%;
  filter: saturate(0.9) contrast(1.05);
}

.auth-page__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.35) 38%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.18) 50%, rgba(0, 0, 0, 0.55) 100%);
}

.auth-layout {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
}

.auth-panel-stack {
  position: relative;
  width: 100%;
}

.auth-panel-stack .auth-panel {
  width: 100%;
}

.auth-panel--waitlist:not(.is-entered),
.auth-panel--signin:not(.is-entered) {
  opacity: 0;
  transform: translateY(3rem);
}

@keyframes auth-panel-rise {
  from {
    opacity: 0;
    transform: translateY(3rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-panel--waitlist.is-entered,
.auth-panel--signin.is-entered {
  animation: auth-panel-rise 0.9s var(--ease-out-expo) both;
}

.auth-panel-stack.is-signin-view .auth-panel--waitlist {
  display: none;
}

.auth-panel-stack.is-waitlist-view .auth-panel--signin {
  display: none;
}

.auth-panel-stack--waitlist-off .auth-panel--waitlist,
.auth-panel-stack--waitlist-off #auth-flip-to-waitlist {
  display: none !important;
}

.acct-email-confirm-step[hidden] {
  display: none !important;
}

.auth-code-step[hidden] {
  display: none !important;
}

.auth-turnstile-gate {
  margin: 0.25rem 0 0.15rem;
}

.auth-turnstile-gate[hidden],
.auth-consent-gate[hidden],
.auth-continue[hidden] {
  display: none !important;
}

.auth-consent-gate {
  margin: 0.25rem 0 0.15rem;
}

.auth-consent-gate__lead {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}

.auth-turnstile-gate__lead {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}

.auth-turnstile-gate__status {
  margin: 0.7rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.5);
}

.auth-turnstile {
  margin: 0;
}

.auth-turnstile[hidden] {
  display: none !important;
}

.auth-email-actions {
  align-items: center;
}

.auth-email-actions .btn[hidden] {
  display: none !important;
}

.auth-panel-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.75rem 0 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: rgba(255, 255, 255, 0.52);
  font-family: var(--font-meta);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s ease;
}

.auth-panel-switch__arrow {
  display: inline-flex;
  font-size: 0.875rem;
  transition: transform 0.35s var(--ease-out-expo), color 0.25s ease;
}

.auth-panel-switch:hover,
.auth-panel-switch:focus-visible {
  color: var(--color-white);
}

.auth-panel-switch:hover .auth-panel-switch__arrow,
.auth-panel-switch:focus-visible .auth-panel-switch__arrow {
  transform: translateY(3px);
  color: var(--color-white);
}

#auth-flip-to-waitlist:hover .auth-panel-switch__arrow,
#auth-flip-to-waitlist:focus-visible .auth-panel-switch__arrow {
  transform: translateY(-3px);
}

.auth-panel {
  width: min(100%, 28rem);
  padding: clamp(1.5rem, 4vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.25rem;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.auth-panel__brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin-bottom: clamp(1.25rem, 3vw, 1.5rem);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-panel__mark {
  display: block;
  height: clamp(1rem, 2.8vw, 1.125rem);
  width: auto;
  max-width: min(100%, 8.5rem);
  flex-shrink: 0;
}

.auth-panel__product {
  font-family: var(--font-meta);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1;
  padding: 0.2rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
}

.auth-panel h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.auth-panel .lede {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.55;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.5);
}

.auth-oauth {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0;
}

.auth-oauth-btn {
  width: 100%;
  min-height: 2.75rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-white);
  font-family: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.auth-oauth-btn:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.auth-oauth-btn:active:not(:disabled):not(.is-busy) {
  transform: scale(0.98);
}

.auth-oauth-btn.is-busy {
  pointer-events: none;
  cursor: wait;
  opacity: 0.88;
}

.auth-oauth-btn.is-busy::after {
  content: "";
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  margin-left: 0.5rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.65s linear infinite;
  vertical-align: middle;
}

.auth-hello {
  margin: 0 0 0.25rem;
}

.auth-hello[hidden] {
  display: none !important;
}

@media (pointer: coarse) {
  .auth-hello,
  .auth-hello + .auth-oauth-sep {
    display: none !important;
  }
}

.auth-more {
  margin-top: 0;
}

.auth-hello__lead {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}

.auth-hello__cmd {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.auth-hello__cmd:hover,
.auth-hello__cmd:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
}

.auth-hello__cmd code {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.8rem 0.95rem;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  user-select: none;
}

.auth-hello__copy {
  flex: 0 0 auto;
  padding: 0 0.95rem;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.auth-hello__copy:hover,
.auth-hello__copy:focus-visible {
  color: var(--color-white);
}

.auth-hello__status {
  margin: 0.55rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.5);
}

.auth-oauth-sep {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-oauth-sep__line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.setup-layout {
  width: min(100%, 48rem);
  margin-inline: auto;
}

.setup-page .auth-page__backdrop img {
  filter: saturate(1.05) contrast(1.02) brightness(1.12);
}

.setup-page .auth-page__backdrop::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.18) 40%, rgba(0, 0, 0, 0.48) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.08) 50%, rgba(0, 0, 0, 0.28) 100%);
}

.setup-panel.auth-panel {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(18, 22, 30, 0.78);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
}

.setup-panel .auth-panel__brand {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.setup-panel .auth-panel__product {
  color: rgba(255, 255, 255, 0.62);
  border-color: rgba(255, 255, 255, 0.2);
}

.setup-panel .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.setup-panel .lede {
  width: 100%;
  max-width: none;
  margin-bottom: 1.35rem;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.setup-panel h1 {
  font-size: clamp(1.55rem, 3.5vw, 2rem);
}

.setup-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.setup-choice {
  display: block;
  cursor: pointer;
  min-width: 0;
  -webkit-tap-highlight-color: transparent;
}

.setup-choice--both {
  grid-column: 1 / -1;
}

.setup-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.setup-choice__body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  height: 100%;
  min-height: 12.5rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.setup-choice--both .setup-choice__body {
  flex-direction: row;
  align-items: center;
  gap: 0.9rem;
  min-height: 0;
  padding: 1rem 1.15rem;
}

.setup-choice__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.setup-choice__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  flex-shrink: 0;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.setup-choice__icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.setup-choice__radio {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
  position: relative;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.setup-choice__radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #fff;
  transform: scale(0);
  transition: transform 0.16s ease;
}

.setup-choice__copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.setup-choice__title {
  display: block;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #fff;
}

.setup-choice__hint {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.68);
}

.setup-choice__desc {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.68);
}

.setup-choice__desc li {
  position: relative;
  padding-left: 0.9rem;
}

.setup-choice__desc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.setup-choice:hover .setup-choice__body {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.11);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 28px rgba(0, 0, 0, 0.28);
}

.setup-choice:hover .setup-choice__icon {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.16);
}

.setup-choice:hover .setup-choice__radio {
  border-color: rgba(255, 255, 255, 0.65);
}

.setup-choice:active .setup-choice__body {
  transform: translateY(0);
}

.setup-choice input:focus-visible + .setup-choice__body {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
}

.setup-choice input:checked + .setup-choice__body {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.25),
    0 12px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.setup-choice input:checked + .setup-choice__body .setup-choice__icon {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.2);
}

.setup-choice input:checked + .setup-choice__body .setup-choice__radio {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.setup-choice input:checked + .setup-choice__body .setup-choice__radio::after {
  transform: scale(1);
}

.setup-actions {
  margin-top: 0.15rem;
}

.setup-actions--row {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
}

.setup-actions--row .setup-continue {
  flex: 1;
}

.setup-back {
  flex: 0 0 auto;
  min-height: 2.85rem;
  min-width: 5.5rem;
}

.setup-continue {
  width: 100%;
  min-height: 2.85rem;
  justify-content: center;
}

.setup-panel .setup-continue:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.setup-step {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.setup-field-label {
  display: block;
  margin: 0 0 0.45rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.setup-screen .cloud-select {
  margin-bottom: 1.25rem;
}

.setup-tutorial-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.setup-tutorial-choices--single {
  grid-template-columns: 1fr;
}

.setup-tutorial-card {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  width: 100%;
  min-height: 9.5rem;
  padding: 1.15rem 1.2rem 1.2rem;
  text-align: left;
  cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.setup-tutorial-card:hover,
.setup-tutorial-card:focus-visible {
  border-color: rgba(94, 186, 125, 0.55);
  background: rgba(94, 186, 125, 0.1);
  box-shadow: 0 0 0 1px rgba(94, 186, 125, 0.18);
  outline: none;
}

.setup-tutorial-card:active {
  transform: translateY(1px);
}

.setup-tutorial-card__eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.setup-tutorial-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.96);
}

.setup-tutorial-card__body {
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.68);
}

.setup-tutorial-actions {
  margin-top: 0.25rem;
}

.setup-tutorial-docs {
  margin: 0.85rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.58);
  text-align: center;
}

.setup-tutorial-docs a {
  color: rgba(160, 220, 180, 0.95);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.setup-tutorial-docs a:hover {
  color: rgba(200, 240, 210, 1);
}

@media (max-width: 720px) {
  .setup-choices {
    grid-template-columns: 1fr;
  }

  .setup-choice__body {
    min-height: 0;
  }

  .setup-choice--both .setup-choice__body {
    align-items: flex-start;
  }

  .setup-tutorial-choices {
    grid-template-columns: 1fr;
  }
}

