:root {
  --auth-brand: #00ab4e;
  --auth-brand-deep: #008f41;
  --auth-brand-soft: #e8fff3;
  --auth-signal: #06f17b;
  --auth-lime: #06f17b;
  --auth-paper: #f7f8fa;
  --auth-ink: #333842;
  --auth-muted: #69717e;
  --auth-line: #e1e4eb;
  --auth-danger: #b42318;
  --auth-success: #157347;
  --auth-radius: 10px;
  --vvh: 100dvh;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html.auth-root,
html.auth-root body {
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body.auth-public {
  margin: 0;
  background: var(--auth-paper);
  color: var(--auth-ink);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

button,
input,
select,
textarea {
  font: inherit;
}

.auth-layout {
  display: grid;
  height: 100%;
  height: var(--vvh, 100dvh);
  max-height: 100%;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 40vw);
}

body[data-auth-page="subscription-checkout"] .auth-layout {
  grid-template-columns: minmax(320px, 36vw) minmax(0, 1fr);
}

.auth-scene {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: var(--auth-brand-deep);
}

.auth-scene-image,
.auth-scene-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.auth-scene-image {
  width: 124%;
  height: 124%;
  inset: auto;
  top: -8%;
  left: -12%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.88) contrast(1.05);
  transform-origin: center;
  transition: opacity 220ms ease;
  animation: auth-scene-pan 48s ease-in-out infinite alternate;
  will-change: transform;
}

.auth-scene-image.is-changing {
  opacity: 0;
}

.auth-scene-shade {
  background:
    linear-gradient(180deg, rgba(18, 54, 56, 0.05) 30%, rgba(18, 54, 56, 0.84) 100%),
    linear-gradient(90deg, rgba(18, 54, 56, 0.22), transparent 55%);
}

.auth-scene-copy {
  position: absolute;
  right: clamp(2rem, 5vw, 5rem);
  bottom: clamp(2rem, 7vh, 5rem);
  left: clamp(2rem, 5vw, 5rem);
  max-width: 34rem;
  color: #fff;
}

.auth-scene-city {
  display: inline-flex;
  margin: 0 0 1rem;
  align-items: center;
  gap: 0.5rem;
  border-left: 3px solid var(--auth-signal);
  padding-left: 0.75rem;
  font-size: 13px;
  font-weight: 700;
}

.auth-scene-message {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(1.75rem, 3.4vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.03;
  text-wrap: balance;
}

.auth-workspace {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: var(--auth-paper);
  box-shadow: -22px 0 60px rgba(18, 54, 56, 0.13);
}

.auth-workspace-inner {
  display: flex;
  width: min(100%, 520px);
  min-height: 0;
  height: 100%;
  margin-inline: auto;
  flex-direction: column;
  padding: clamp(1.25rem, 3vw, 2.75rem);
  overflow: hidden;
}

.auth-workspace--wide .auth-workspace-inner {
  width: min(100%, 780px);
  overflow: auto;
  overscroll-behavior: contain;
}

.auth-brand {
  display: inline-flex;
  flex-shrink: 0;
  width: fit-content;
  align-items: center;
  gap: 0.875rem;
  border-radius: 8px;
  background: var(--auth-brand-deep);
  padding: 0.625rem 0.875rem;
  color: #fff;
  text-decoration: none;
  animation: auth-rise 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.auth-brand span {
  display: grid;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  padding-left: 0.875rem;
  line-height: 1.15;
}

.auth-brand strong {
  font-size: 16px;
  font-weight: 750;
}

.auth-brand small {
  margin-top: 0.15rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 600;
}

.auth-brand:focus-visible,
.auth-link:focus-visible,
.auth-submit:focus-visible,
.auth-button:focus-visible,
.auth-password-toggle:focus-visible,
.auth-email-local:focus-visible,
.auth-plan:focus-visible,
.auth-flash button:focus-visible {
  outline: 3px solid rgba(243, 183, 27, 0.72);
  outline-offset: 3px;
}

.auth-page-content {
  display: grid;
  flex: 1 1 auto;
  align-content: center;
  min-height: 0;
  padding-block: 1.25rem;
  overflow: hidden;
  animation: auth-rise 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-workspace--wide .auth-page-content,
body[data-auth-page="subscription-checkout"] .auth-page-content,
body[data-auth-page="invite"] .auth-page-content,
body[data-auth-page="reset-password"] .auth-page-content {
  align-content: start;
  overflow: auto;
  overscroll-behavior: contain;
}

.auth-header {
  margin-bottom: 1.35rem;
}

.auth-login-logo {
  display: block;
  width: auto;
  height: 38px;
  margin: 0 0 1.4rem;
  object-fit: contain;
  object-position: left center;
}

.auth-header h1 {
  margin: 0;
  color: var(--auth-ink);
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.auth-header p {
  max-width: 48ch;
  margin: 0.75rem 0 0;
  color: var(--auth-muted);
  font-size: 14px;
}

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

.auth-provider-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 14px;
  color: #718096;
  font-size: 12px;
}

.auth-provider-divider::before,
.auth-provider-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dce3e9;
}

.auth-provider-button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  background: #fff;
  color: #10213b;
  text-decoration: none;
  font-weight: 700;
}

.auth-provider-button:hover {
  background: #f7f9fb;
  border-color: #aebdca;
}

.auth-provider-help--legal {
  margin-top: 0.55rem;
  text-align: center;
}

.auth-google-mark {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid #dce3e9;
  border-radius: 50%;
  color: #356ae6;
  font-weight: 800;
}

.auth-google-icon {
  color: #4285f4;
  font-size: 18px;
}

.auth-field {
  display: grid;
  gap: 0.45rem;
}

.auth-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.auth-label {
  color: #33423f;
  font-size: 13px;
  font-weight: 700;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-icon {
  position: absolute;
  top: 50%;
  left: 0.875rem;
  color: #84918e;
  transform: translateY(-50%);
  pointer-events: none;
}

.auth-input,
.auth-select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #c9d4d0;
  border-radius: var(--auth-radius);
  outline: 0;
  background: #fff;
  padding: 0.7rem 0.875rem;
  color: var(--auth-ink);
  font-size: 16px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.auth-input-wrap .auth-input {
  padding-left: 2.65rem;
}

.auth-input-wrap .auth-input.has-action {
  padding-right: 2.75rem;
}

.auth-email-lock {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #c9d4d0;
  border-radius: var(--auth-radius);
  background: #fff;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.auth-email-lock:focus-within {
  border-color: var(--auth-brand);
  box-shadow: 0 0 0 3px rgba(30, 77, 79, 0.14);
}

.auth-email-lock.is-invalid {
  border-color: var(--auth-danger);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.1);
}

.auth-email-lock .auth-input-icon {
  z-index: 1;
}

.auth-email-local {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding-left: 2.65rem;
}

.auth-email-local:focus {
  border: 0;
  box-shadow: none;
}

.auth-email-domain {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  align-self: stretch;
  max-width: 52%;
  border-left: 1px solid var(--auth-line);
  background: var(--auth-brand-soft);
  padding: 0 0.85rem;
  color: var(--auth-brand-deep);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.auth-email-lock.is-invalid .auth-email-domain {
  border-left-color: #efc4bf;
  background: #fdf2f0;
  color: #7d1d15;
}

.auth-input::placeholder {
  color: #899491;
}

.auth-input:focus,
.auth-select:focus {
  border-color: var(--auth-brand);
  box-shadow: 0 0 0 3px rgba(30, 77, 79, 0.14);
  transform: none;
}

.auth-input[readonly] {
  background: #eef3f1;
  color: #4b5855;
}

.auth-input[aria-invalid="true"],
.auth-input.is-invalid,
.auth-select.is-invalid {
  border-color: var(--auth-danger);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.1);
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #66736f;
  cursor: pointer;
  place-items: center;
  transform: translateY(-50%);
}

.auth-password-toggle:hover {
  background: var(--auth-brand-soft);
  color: var(--auth-brand);
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--auth-muted);
  cursor: pointer;
  font-size: 13px;
}

.auth-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--auth-brand);
}

.auth-link {
  color: var(--auth-brand);
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.auth-link:hover {
  color: var(--auth-brand-deep);
}

.auth-submit,
.auth-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  border: 1px solid transparent;
  border-radius: var(--auth-radius);
  background: var(--auth-brand);
  padding: 0.72rem 1.1rem;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.auth-submit:hover,
.auth-button:hover {
  background: var(--auth-brand-deep);
}

.auth-submit:active,
.auth-button:active {
  transform: translateY(1px);
}

.auth-submit:disabled,
.auth-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.auth-submit.is-loading .auth-button-label {
  opacity: 0.72;
}

.auth-spinner {
  display: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: auth-spin 700ms linear infinite;
}

.is-loading .auth-spinner {
  display: inline-block;
}

.auth-help,
.auth-error {
  margin: 0;
  font-size: 12px;
}

.auth-help {
  color: var(--auth-muted);
}

.auth-error {
  color: var(--auth-danger);
}

.auth-flashes {
  display: grid;
  margin-top: 1.5rem;
  gap: 0.625rem;
}

.auth-flash {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.625rem;
  border: 1px solid var(--auth-line);
  border-radius: var(--auth-radius);
  background: #fff;
  padding: 0.75rem 0.875rem;
  font-size: 13px;
}

.auth-flash--error {
  border-color: #efc4bf;
  color: #7d1d15;
}

.auth-flash--success {
  border-color: #b8d9c8;
  color: #0f5b38;
}

.auth-flash--warning {
  border-color: #eed38a;
  color: #725500;
}

.auth-flash--info {
  border-color: #b8d4df;
  color: #20566b;
}

.auth-flash button {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  opacity: 0.7;
  place-items: center;
}

.auth-footer {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--auth-line);
  padding-top: 0.85rem;
  color: var(--auth-muted);
  font-size: 12px;
}

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

.auth-strength-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce4e1;
}

.auth-strength-bar {
  width: 0;
  height: 100%;
  background: var(--auth-danger);
  transition: width 160ms ease, background 160ms ease;
}

.auth-strength-text {
  min-height: 1.25rem;
  color: var(--auth-muted);
  font-size: 12px;
}

.auth-checkout {
  display: grid;
  gap: 1.5rem;
}

.auth-checkout-section {
  display: grid;
  gap: 1rem;
  border-top: 1px solid var(--auth-line);
  padding-top: 1.5rem;
}

.auth-checkout-section h2 {
  display: flex;
  margin: 0;
  align-items: center;
  gap: 0.75rem;
  font-size: 17px;
}

.auth-step {
  display: inline-grid;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--auth-brand);
  color: #fff;
  font-size: 12px;
  place-items: center;
}

.auth-plan-grid,
.auth-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.875rem;
}

.auth-plan {
  position: relative;
  display: grid;
  gap: 0.75rem;
  border: 1px solid var(--auth-line);
  border-radius: var(--auth-radius);
  background: #fff;
  padding: 1rem;
  cursor: pointer;
}

.auth-plan:hover {
  border-color: #9eaeaa;
}

.auth-plan.selected {
  border-color: var(--auth-brand);
  box-shadow: 0 0 0 2px rgba(30, 77, 79, 0.14);
}

.auth-plan-price {
  margin: 0;
  color: var(--auth-ink);
  font-size: 1.4rem;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.auth-plan-price span {
  color: var(--auth-muted);
  font-size: 12px;
  font-weight: 500;
}

.auth-feature-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0.4rem;
  color: var(--auth-muted);
  font-size: 13px;
  list-style: none;
}

.auth-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.auth-feature-list i {
  width: 1rem;
  color: var(--auth-brand);
  text-align: center;
}

.auth-plan .plan-badge {
  display: none;
}

.auth-plan.selected .plan-badge {
  display: inline-flex;
}

.auth-badge {
  width: fit-content;
  border-radius: 999px;
  background: var(--auth-brand-soft);
  padding: 0.2rem 0.55rem;
  color: var(--auth-brand);
  font-size: 12px;
  font-weight: 700;
}

.auth-surface {
  border: 1px solid var(--auth-line);
  border-radius: var(--auth-radius);
  background: #fff;
  padding: 1rem;
}

.auth-form-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auth-field-narrow {
  max-width: 22rem;
}

.auth-summary {
  display: grid;
  gap: 0.9rem;
}

.auth-checkout-submit {
  display: grid;
  justify-items: start;
  gap: 0.55rem;
}

.auth-dialog {
  width: min(92vw, 28rem);
  border: 0;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 24px 70px rgba(18, 54, 56, 0.25);
}

.auth-dialog::backdrop {
  background: rgba(18, 37, 36, 0.66);
}

.auth-dialog-body {
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
}

.auth-dialog-body h2,
.auth-dialog-body p {
  margin: 0;
}

.auth-dialog-icon {
  color: var(--auth-success);
  font-size: 2.75rem;
}

@keyframes auth-spin {
  to { transform: rotate(360deg); }
}

@keyframes auth-scene-pan {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-9%, -3%, 0) scale(1.08);
  }
}

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

@media (max-width: 1100px) {
  .auth-layout {
    grid-template-columns: minmax(280px, 42vw) minmax(0, 1fr);
  }

  body[data-auth-page="subscription-checkout"] .auth-layout {
    grid-template-columns: minmax(240px, 34vw) minmax(0, 1fr);
  }

  .auth-workspace-inner {
    padding: 1.5rem 1.75rem;
  }

  .auth-scene-copy {
    right: 1.5rem;
    bottom: 1.75rem;
    left: 1.5rem;
  }

  .auth-scene-message {
    font-size: clamp(1.45rem, 3.2vw, 2.3rem);
  }
}

@media (max-width: 860px) {
  .auth-product-showcase {
    height: clamp(180px, 27vh, 220px);
    min-height: calc(180px + env(safe-area-inset-top));
    max-height: calc(220px + env(safe-area-inset-top));
  }

  .auth-layout,
  body[data-auth-page="subscription-checkout"] .auth-layout {
    display: flex;
    flex-direction: column;
  }

  .auth-scene {
    flex: 0 0 auto;
    height: clamp(132px, 22vh, 168px);
    min-height: calc(132px + env(safe-area-inset-top));
    max-height: calc(168px + env(safe-area-inset-top));
  }

  .auth-scene-image {
    width: 118%;
    height: 118%;
    top: -6%;
    left: -8%;
  }

  .auth-scene-shade {
    background:
      linear-gradient(180deg, rgba(18, 54, 56, 0.28) 0%, rgba(18, 54, 56, 0.08) 42%, rgba(18, 54, 56, 0.72) 100%);
  }

  .auth-scene-copy {
    top: calc(0.7rem + env(safe-area-inset-top));
    right: 1rem;
    bottom: auto;
    left: 1rem;
    max-width: none;
  }

  .auth-scene-city {
    margin: 0 0 0.4rem;
    font-size: 11px;
  }

  .auth-scene-message {
    display: block;
    max-width: 15ch;
    font-size: clamp(1rem, 4.2vw, 1.15rem);
    letter-spacing: -0.03em;
    line-height: 1.1;
  }

  .auth-workspace {
    flex: 1 1 auto;
    min-height: 0;
    margin-top: -1.35rem;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -18px 36px rgba(18, 54, 56, 0.18);
  }

  .auth-workspace-inner {
    width: 100%;
    padding: 0.85rem 1.1rem calc(0.7rem + env(safe-area-inset-bottom));
  }

  .auth-brand {
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.3rem 0.65rem 0.3rem 0.3rem;
  }

  .auth-brand img {
    width: 28px;
  }

  .auth-brand span {
    padding-left: 0.55rem;
  }

  .auth-brand strong {
    font-size: 13px;
  }

  .auth-brand small {
    margin-top: 0;
    font-size: 10px;
  }

  .auth-page-content,
  .auth-workspace--wide .auth-page-content,
  body[data-auth-page="subscription-checkout"] .auth-page-content,
  body[data-auth-page="invite"] .auth-page-content,
  body[data-auth-page="reset-password"] .auth-page-content {
    align-content: start;
    padding-block: 0.65rem;
  }

  body[data-auth-page="login"] .auth-header p,
  body[data-auth-page="forgot-password"] .auth-header p {
    display: none;
  }

  .auth-header {
    margin-bottom: 0.75rem;
  }

  .auth-header h1 {
    font-size: 1.35rem;
    letter-spacing: -0.03em;
  }

  .auth-header p {
    max-width: none;
    margin-top: 0.4rem;
    font-size: 13px;
  }

  .auth-form {
    gap: 0.7rem;
  }

  .auth-input,
  .auth-select,
  .auth-submit,
  .auth-button,
  .auth-email-lock {
    min-height: 44px;
  }

  .auth-email-lock .auth-input-icon {
    top: 50%;
  }

  .auth-email-domain {
    max-width: none;
    padding: 0 0.65rem;
    font-size: 11px;
  }

  .auth-flashes {
    margin-top: 0.65rem;
  }

  .auth-footer {
    gap: 0.5rem;
    padding-top: 0.65rem;
    font-size: 11px;
  }

  .auth-form-grid,
  .auth-form-grid--three,
  .auth-plan-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .auth-scene {
    height: clamp(120px, 20vh, 148px);
    min-height: calc(120px + env(safe-area-inset-top));
    max-height: calc(148px + env(safe-area-inset-top));
  }

  .auth-workspace-inner {
    padding: 0.75rem 0.95rem calc(0.65rem + env(safe-area-inset-bottom));
  }

  .auth-header h1 {
    font-size: 1.25rem;
  }

  .auth-field-row {
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
  }
}

body.is-keyboard-open .auth-scene {
  display: none;
}

body.is-keyboard-open .auth-workspace {
  margin-top: 0;
  border-radius: 0;
}

body.is-keyboard-open .auth-footer {
  display: none;
}

body.is-keyboard-open .auth-page-content {
  padding-block: 0.45rem;
  overflow: auto;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .auth-scene-image {
    width: 100%;
    height: 100%;
    inset: 0;
    animation: none;
  }
}

/* Auth is infrastructure; this showcase lives only on its public access shell. */
.auth-product-showcase {
  isolation: isolate;
}

.auth-product-scene {
  position: absolute;
  inset: 0;
  animation: auth-product-reveal 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-product-scene .auth-scene-image {
  width: 112%;
  height: 112%;
  top: -6%;
  left: -6%;
  animation: none;
  filter: saturate(0.9) contrast(1.02);
}

.auth-product-scene .auth-scene-shade {
  background:
    linear-gradient(180deg, rgba(7, 25, 43, 0.08) 28%, rgba(7, 25, 43, 0.9) 100%),
    linear-gradient(90deg, rgba(7, 25, 43, 0.28), transparent 62%);
}

.auth-product-tabs {
  position: absolute;
  z-index: 5;
  top: clamp(1.25rem, 4vw, 3rem);
  left: clamp(1.25rem, 5vw, 5rem);
  display: flex;
  max-width: calc(100% - 2.5rem);
  gap: 0.35rem;
  padding: 0.35rem;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: rgba(8, 27, 46, 0.35);
  backdrop-filter: blur(14px);
}

.auth-product-tabs button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 0.45rem 0.75rem;
  color: rgba(255, 255, 255, 0.74);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.auth-product-tabs button img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.auth-product-tabs button[aria-selected="true"] {
  background: #fff;
  color: #10213b;
}

.auth-product-tabs button:focus-visible {
  outline: 3px solid var(--auth-signal);
  outline-offset: 2px;
}

.auth-product-scene .auth-scene-copy {
  z-index: 3;
}

.auth-product-scene .auth-scene-city {
  border-left-color: #fff;
  color: rgba(255, 255, 255, 0.78);
}

.auth-product-scene .auth-scene-city img {
  width: 34px;
  height: 34px;
  margin-right: 0.2rem;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.94);
  object-fit: contain;
}

.auth-product-scene .auth-scene-message {
  max-width: 17ch;
  font-size: clamp(2rem, 4vw, 4.15rem);
}

.auth-scene-impact {
  display: grid;
  width: fit-content;
  margin: 1.25rem 0 0;
  border-left: 3px solid var(--auth-signal);
  padding-left: 0.85rem;
}

.auth-scene-impact strong {
  font-size: 15px;
}

.auth-scene-impact span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
}

.auth-provider-button--primary {
  min-height: 52px;
  border-color: var(--auth-brand);
  background: var(--auth-brand);
  color: #fff;
}

.auth-provider-button--primary:hover {
  border-color: var(--auth-brand-deep);
  background: var(--auth-brand-deep);
}

.auth-provider-button--primary .auth-google-mark {
  background: #fff;
}

.auth-provider-help,
.auth-access-switch {
  margin: 0.75rem 0 0;
  color: var(--auth-muted);
  font-size: 12px;
  text-align: center;
}

.auth-button--secondary {
  width: 100%;
  border-color: #c9d4d0;
  background: #fff;
  color: var(--auth-ink);
}

.auth-button--secondary:hover {
  background: var(--auth-brand-soft);
  color: var(--auth-brand-deep);
}

@keyframes auth-product-reveal {
  from { opacity: 0; transform: scale(1.015); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .auth-product-tabs {
    top: calc(0.55rem + env(safe-area-inset-top));
    right: 0.75rem;
    left: 0.75rem;
    justify-content: space-between;
  }

  .auth-product-tabs button {
    min-height: 28px;
    padding: 0.25rem 0.45rem;
    font-size: 10px;
  }

  .auth-product-scene .auth-scene-copy {
    top: auto;
    bottom: 1.8rem;
  }

  .auth-product-scene .auth-scene-city {
    display: none;
  }

  .auth-product-scene .auth-scene-message {
    max-width: 26ch;
    font-size: 1rem;
  }

  .auth-product-scene .auth-scene-impact {
    display: block;
    margin-top: 0.4rem;
    padding-left: 0.55rem;
    line-height: 1.15;
  }

  .auth-product-scene .auth-scene-impact strong {
    font-size: 11px;
  }

  .auth-product-scene .auth-scene-impact span {
    display: none;
  }

  body[data-auth-page="login"] .auth-page-content,
  body[data-auth-page="forgot-password"] .auth-page-content {
    align-content: center;
    padding-block: clamp(1rem, 5vh, 3.5rem);
  }
}

@media (max-width: 860px) and (max-height: 720px) {
  body[data-auth-page="login"] .auth-page-content,
  body[data-auth-page="forgot-password"] .auth-page-content {
    align-content: start;
    padding-block: 0.65rem;
  }
}

/* Enterprise frame: a branded product window beside a quiet access surface. */
@media (min-width: 861px) {
  body.auth-public {
    display: grid;
    place-items: center;
    background: #07192b;
    padding: clamp(1.25rem, 3vw, 3.25rem);
  }

  .auth-layout {
    width: min(1480px, 100%);
    height: min(920px, calc(var(--vvh, 100dvh) - clamp(2.5rem, 6vw, 6.5rem)));
    min-height: min(680px, calc(var(--vvh, 100dvh) - 2.5rem));
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(0, 8, 18, 0.38);
  }

  body[data-auth-page="subscription-checkout"] .auth-layout {
    grid-template-columns: minmax(360px, 0.76fr) minmax(0, 1.24fr);
  }

  .auth-scene {
    margin: 5px;
    border-radius: 25px;
  }

  .auth-workspace {
    background: #fff;
    box-shadow: none;
  }

  .auth-workspace-inner {
    width: min(100%, 570px);
    padding: clamp(2rem, 4vw, 4.5rem);
  }

  .auth-header {
    margin-bottom: 1.65rem;
  }

  .auth-header h1 {
    max-width: 14ch;
    font-size: clamp(2rem, 3.1vw, 3.25rem);
    font-weight: 750;
    line-height: 1.02;
  }

  .auth-header p {
    max-width: 44ch;
    margin-top: 0.9rem;
    font-size: 14px;
  }

  .auth-footer {
    color: #7d8986;
  }
}

/* Mobile is intentionally only the task at hand: no product carousel or auth badge. */
@media (max-width: 860px) {
  html.auth-root,
  html.auth-root body {
    background: #fff;
  }

  body.auth-public {
    display: block;
    padding: 0;
  }

  .auth-layout {
    display: block;
    width: 100%;
    height: var(--vvh, 100dvh);
    min-height: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
  }

  .auth-scene {
    display: none;
  }

  .auth-workspace {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .auth-workspace-inner {
    width: min(100%, 520px);
    padding: calc(1rem + env(safe-area-inset-top)) 1.25rem calc(0.75rem + env(safe-area-inset-bottom));
  }

  body[data-auth-page="login"] .auth-page-content,
  body[data-auth-page="forgot-password"] .auth-page-content {
    align-content: center;
    padding-block: 1rem;
    overflow: auto;
  }

  .auth-header {
    margin-bottom: 1.2rem;
  }

  .auth-header h1 {
    max-width: 16ch;
    font-size: clamp(1.65rem, 8vw, 2.2rem);
    line-height: 1.04;
  }

  .auth-header p {
    margin-top: 0.65rem;
    font-size: 13px;
    line-height: 1.5;
  }

  .auth-footer {
    padding-top: 0.65rem;
  }
}

@media (max-width: 420px) {
  .auth-workspace-inner {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .auth-header h1 {
    font-size: 1.65rem;
  }
}
