: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;
}

.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-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;
}

.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-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-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); }
}

@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-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;
  }
}

/* Invite activation: deliberately two decisions, not a decorative wizard. */
.auth-workspace--signup .auth-page-content {
  min-height: 0;
}

.auth-signup-form {
  gap: 1.25rem;
}

.auth-signup-progress ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-signup-progress li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.55rem;
  border-bottom: 2px solid var(--auth-line);
  padding: 0 0 0.7rem;
  color: #798783;
  font-size: 12px;
}

.auth-signup-progress li + li {
  padding-left: 0.75rem;
}

.auth-signup-progress span {
  display: grid;
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 11px;
  place-items: center;
}

.auth-signup-progress b {
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-signup-progress li.is-active,
.auth-signup-progress li.is-complete {
  border-color: var(--auth-brand);
  color: var(--auth-brand-deep);
}

.auth-signup-progress li.is-active span,
.auth-signup-progress li.is-complete span {
  border-color: var(--auth-brand);
  background: var(--auth-brand);
  color: #fff;
}

.auth-signup-stage {
  display: grid;
  gap: 1rem;
}

.auth-signup-stage[hidden] {
  display: none;
}

.auth-signup-stage-heading {
  display: grid;
  gap: 0.4rem;
}

.auth-signup-eyebrow {
  margin: 0;
  color: var(--auth-brand);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-signup-stage h2 {
  margin: 0;
  color: var(--auth-ink);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.auth-signup-stage-heading > p:last-child,
.auth-field-note {
  margin: 0;
  color: var(--auth-muted);
  font-size: 12px;
  line-height: 1.45;
}

.auth-field-note i {
  margin-right: 0.25rem;
  color: var(--auth-brand);
}

.auth-signup-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: 0.65rem;
}

.auth-button--quiet {
  border-color: var(--auth-line);
  background: #fff;
  color: var(--auth-ink);
}

.auth-button--quiet:hover {
  border-color: #9eaeaa;
  background: #f7faf8;
  color: var(--auth-ink);
}

@media (prefers-reduced-motion: reduce) {
  .auth-signup-progress li,
  .auth-signup-progress span {
    transition: none;
  }
}

@media (max-width: 420px) {
  .auth-signup-actions {
    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;
  }
}

/* Auth refresh: the product is the visual evidence, the access surface stays calm. */
:root {
  --auth-brand: #007a46;
  --auth-brand-deep: #005f37;
  --auth-brand-soft: #e5f7ed;
  --auth-signal: #79f5ad;
  --auth-paper: #f8faf9;
  --auth-ink: #13231d;
  --auth-muted: #66746e;
  --auth-line: #dce5e0;
  --auth-radius: 12px;
}

.auth-scene {
  background: #092d22;
}

.auth-scene-image {
  width: 112%;
  height: 112%;
  top: -6%;
  left: -6%;
  filter: saturate(.82) contrast(1.04) brightness(.84);
}

.auth-scene-shade {
  background:
    linear-gradient(180deg, rgba(2, 30, 20, .04) 24%, rgba(2, 30, 20, .92) 100%),
    linear-gradient(90deg, rgba(2, 30, 20, .54), transparent 64%);
}

.auth-scene-copy {
  max-width: 37rem;
}

.auth-scene-kicker,
.auth-overline {
  margin: 0 0 .75rem;
  color: var(--auth-brand);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .045em;
  line-height: 1;
}

.auth-scene-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255, 255, 255, .82);
}

.auth-scene-city {
  margin-bottom: .9rem;
  border-left: 0;
  padding-left: 0;
  color: var(--auth-signal);
}

.auth-scene-city img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.auth-scene-message {
  max-width: 16ch;
  font-size: clamp(2.1rem, 4.2vw, 4.5rem);
  font-weight: 650;
  letter-spacing: -.055em;
  line-height: .98;
}

.auth-scene-impact {
  max-width: 36ch;
  margin-top: 1.35rem;
  border-left-color: var(--auth-signal);
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.auth-workspace {
  background: var(--auth-paper);
}

.auth-workspace-inner { width: min(100%, 510px); }

.auth-header h1 {
  max-width: 15ch;
  color: var(--auth-ink);
  font-weight: 720;
  letter-spacing: -.052em;
}

.auth-header p { color: var(--auth-muted); font-size: 14px; line-height: 1.55; }
.auth-login-brand {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 1.8rem;
  border-radius: 8px;
}

.auth-login-brand:focus-visible {
  outline: 3px solid rgba(0, 122, 70, .3);
  outline-offset: 4px;
}

.auth-login-logo {
  display: block;
  width: 112px;
  height: 41px;
  max-width: 100%;
  margin: 0;
  object-fit: contain;
  object-position: left center;
}
.auth-overline { color: var(--auth-brand); }
.auth-provider-button { border-color: #cfdcd6; border-radius: 12px; box-shadow: 0 1px 1px rgba(10, 35, 23, .03); }
.auth-provider-button:hover { border-color: #9db3a8; background: #fff; }
.auth-input, .auth-select { border-color: #cbd9d2; border-radius: 12px; background: #fff; }
.auth-input:focus, .auth-select:focus { border-color: var(--auth-brand); box-shadow: 0 0 0 4px rgba(0, 122, 70, .12); }
.auth-email-lock:focus-within { border-color: var(--auth-brand); box-shadow: 0 0 0 4px rgba(0, 122, 70, .12); }
.auth-submit, .auth-button { min-height: 50px; border-radius: 12px; background: var(--auth-brand); box-shadow: 0 7px 14px rgba(0, 95, 55, .14); }
.auth-submit:hover, .auth-button:hover { background: var(--auth-brand-deep); box-shadow: 0 9px 18px rgba(0, 95, 55, .19); }
.auth-access-switch { margin-top: 1.2rem; }
.auth-footer { color: #7b8882; }

/* CentralX uses an editorial city scene: people, media and the connected
   operation, while the form remains a separate quiet surface. */
.auth-scene--centralx .auth-scene-image {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  object-position: 62% center;
  filter: saturate(.88) contrast(1.02) brightness(.78);
}

.auth-scene--centralx .auth-scene-shade {
  background: linear-gradient(110deg, rgba(3, 26, 24, .28), rgba(3, 26, 24, .04) 70%);
}

@media (max-width: 860px) {
  .auth-scene--centralx {
    height: 172px;
    min-height: calc(172px + env(safe-area-inset-top));
    max-height: calc(172px + env(safe-area-inset-top));
  }

  .auth-scene--centralx .auth-scene-image {
    object-position: 62% 48%;
  }

  .auth-public--centralx .auth-workspace {
    height: calc(100% - 172px - env(safe-area-inset-top));
  }
}

@media (max-width: 860px) {
  .auth-login-brand { margin-bottom: 1.45rem; }
  .auth-overline { margin-bottom: .6rem; }
}

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

/* Cadu auth: one calm access surface, with the requested solution acting only
   as visual context. The scene is deliberately static: this is infrastructure,
   not a product demo. */
.auth-page-content,
.auth-product-scene,
.auth-scene-image {
  animation: none;
}

.auth-product-scene .auth-scene-image {
  width: 100%;
  height: 100%;
  inset: 0;
  filter: saturate(.78) contrast(1.04) brightness(.74);
  transform: none;
}

.auth-product-scene .auth-scene-shade {
  background:
    linear-gradient(180deg, rgba(5, 20, 35, .14) 12%, rgba(5, 20, 35, .9) 100%),
    linear-gradient(90deg, rgba(5, 20, 35, .4), transparent 72%);
}

.auth-scene-kicker,
.auth-overline {
  letter-spacing: 0;
}

.auth-scene-kicker {
  font-size: 13px;
  font-weight: 650;
}

.auth-scene-city {
  color: #fff;
}

.auth-product-scene .auth-scene-city img {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, .92);
}

.auth-product-scene .auth-scene-message {
  max-width: 15ch;
  font-size: clamp(2.15rem, 4vw, 4.35rem);
  font-weight: 650;
  letter-spacing: -.06em;
  line-height: .97;
}

.auth-scene-impact {
  max-width: 30ch;
  border-left-color: rgba(255, 255, 255, .7);
  color: rgba(255, 255, 255, .82);
}

.auth-header h1 {
  max-width: 13ch;
  font-weight: 700;
  letter-spacing: -.05em;
}

.auth-destination {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: .7rem;
  margin-top: 1.15rem;
  border: 1px solid #d8e3dd;
  border-radius: 10px;
  background: #f4f8f6;
  padding: .55rem .75rem .55rem .55rem;
  color: #53615a;
  font-size: 12px;
  line-height: 1.25;
}

.auth-destination img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #fff;
  object-fit: contain;
}

.auth-destination strong {
  display: block;
  margin-top: .1rem;
  color: var(--auth-ink);
  font-size: 13px;
}

.auth-submit,
.auth-button {
  box-shadow: none;
}

.auth-submit:hover,
.auth-button:hover {
  box-shadow: none;
}

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

@media (max-width: 860px) {
  .auth-scene {
    display: block;
    height: 148px;
    min-height: calc(148px + env(safe-area-inset-top));
    max-height: calc(148px + env(safe-area-inset-top));
    margin: 0;
    border-radius: 0;
  }

  .auth-workspace {
    height: calc(100% - 148px - env(safe-area-inset-top));
  }

  .auth-product-scene .auth-scene-copy {
    top: auto;
    right: 1.25rem;
    bottom: 1rem;
    left: 1.25rem;
  }

  .auth-product-scene .auth-scene-kicker,
  .auth-product-scene .auth-scene-message,
  .auth-product-scene .auth-scene-impact {
    display: none;
  }

  .auth-product-scene .auth-scene-city {
    display: inline-flex;
    margin: 0;
    color: #fff;
    font-size: 13px;
  }

  .auth-product-scene .auth-scene-city img {
    width: 28px;
    height: 28px;
  }

  .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);
  }

  .auth-destination {
    margin-top: .9rem;
  }
}

@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;
  }
}

/* Keep a concise visual cue on small screens without turning the auth flow
   into a product carousel. This is intentionally last to supersede legacy
   mobile variants above. */
@media (max-width: 860px) {
  .auth-scene {
    display: block;
    height: 148px;
    min-height: calc(148px + env(safe-area-inset-top));
    max-height: calc(148px + env(safe-area-inset-top));
    margin: 0;
    border-radius: 0;
  }

  .auth-workspace {
    height: calc(100% - 148px - env(safe-area-inset-top));
  }

  .auth-product-scene .auth-scene-copy {
    top: auto;
    right: 1.25rem;
    bottom: 1rem;
    left: 1.25rem;
  }

  .auth-product-scene .auth-scene-kicker,
  .auth-product-scene .auth-scene-message,
  .auth-product-scene .auth-scene-impact {
    display: none;
  }

  .auth-product-scene .auth-scene-city {
    display: inline-flex;
    margin: 0;
    color: #fff;
    font-size: 13px;
  }
}
