/* Premium auth — compact viewport fit, wide form column */

.app-body--auth {
  --auth-ink: #0c1220;
  --auth-muted: #64748b;
  --auth-border: rgba(15, 23, 42, 0.09);
  --auth-border-strong: rgba(15, 23, 42, 0.14);
  --auth-surface: #ffffff;
  --auth-primary: #0f766e;
  --auth-primary-hover: #0b5c56;
  --auth-primary-ring: rgba(15, 118, 110, 0.2);
  --auth-radius: 12px;
  --auth-radius-lg: 18px;
  --auth-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 16px 48px rgba(15, 23, 42, 0.07);
  --auth-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --auth-input-h: 42px;
  color: var(--auth-ink);
  background: #f8f7f4;
  height: 100vh;
  overflow: hidden;
}

.auth-scene {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.auth-scene__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.5;
}

.auth-scene__orb--teal {
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  top: -8%;
  right: 48%;
  background: rgba(15, 118, 110, 0.13);
}

.auth-scene__orb--gold {
  width: min(32vw, 320px);
  height: min(32vw, 320px);
  bottom: -4%;
  left: 42%;
  background: rgba(201, 162, 39, 0.1);
}

.auth-scene__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, black 12%, transparent 70%);
  opacity: 0.4;
}

.auth-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 0.64fr);
  height: 100vh;
  max-height: 100vh;
}

.auth-split__brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.75rem 2rem;
  border-right: 1px solid var(--auth-border);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.78) 0%,
    rgba(248, 247, 244, 0.5) 100%
  );
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.auth-split__logo .brand-logo-switch__img {
  height: auto;
  max-height: 34px;
  width: auto;
}

.auth-split__pitch {
  margin-top: 1.75rem;
  max-width: 22rem;
}

.auth-split__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--auth-primary);
}

.auth-split__headline {
  margin: 0;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.auth-split__lede {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--auth-muted);
}

.auth-split__features {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.auth-split__features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.84rem;
  color: #475569;
}

.auth-split__feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--auth-primary);
  flex-shrink: 0;
}

.auth-split__feature-icon svg {
  width: 14px;
  height: 14px;
}

.auth-split__footnote {
  margin: auto 0 0;
  padding-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--auth-muted);
}

.auth-split__main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  overflow: hidden;
}

.auth-split__main-inner {
  width: min(100%, 480px);
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
}

.app-body--login .auth-split__main-inner {
  width: min(100%, 420px);
}

.app-body--signup .auth-split__main-inner {
  width: min(100%, 500px);
}

.app-body--forgot .auth-split__main-inner {
  width: min(100%, 640px);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

.auth-split__logo-mobile {
  display: none;
  margin: 0 auto 0.75rem;
  width: fit-content;
}

.auth-split__logo-mobile img {
  max-height: 30px;
  width: auto;
}

.auth-card {
  background: var(--auth-surface);
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius-lg);
  box-shadow: var(--auth-shadow);
  padding: 1.25rem 1.35rem 1.15rem;
  flex: 0 1 auto;
  min-height: 0;
}

.app-body--login .auth-card {
  padding: 1.2rem 1.3rem 1.1rem;
}

.auth-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.auth-card__head-main {
  min-width: 0;
}

.auth-card__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.auth-card__sub {
  margin: 0.3rem 0 0;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--auth-muted);
  max-width: 28rem;
}

.auth-card__aside {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  text-align: right;
  color: var(--auth-muted);
  white-space: nowrap;
}

.auth-card__aside a {
  color: var(--auth-primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-card__aside a:hover {
  text-decoration: underline;
}

.auth-card__foot {
  display: none;
}

.auth-card__back {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
}

.auth-card__back a {
  color: var(--auth-muted);
  text-decoration: none;
  font-weight: 500;
}

.auth-card__back a:hover {
  color: var(--auth-primary);
}

.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  font-size: 0.83rem;
  line-height: 1.4;
  margin-bottom: 0.7rem;
}

.auth-alert--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.auth-alert--info {
  background: #f0f9ff;
  color: #0c4a6e;
  border: 1px solid #bae6fd;
  font-size: 0.82rem;
  line-height: 1.45;
}

.auth-alert--info code {
  font-size: 0.78em;
  word-break: break-all;
}

.auth-alert--success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.auth-alert__icon {
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.auth-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--auth-primary);
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-google {
  margin-bottom: 0;
}

.auth-google__slot {
  display: flex;
  justify-content: stretch;
  min-height: 40px;
}

.auth-google__slot > div {
  width: 100% !important;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.7rem 0;
  color: var(--auth-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--auth-border);
}

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

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

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

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

.auth-field--full {
  grid-column: 1 / -1;
}

.auth-field {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

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

.auth-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
}

.auth-label-optional {
  font-weight: 500;
  color: var(--auth-muted);
}

.auth-hint {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: var(--auth-muted);
}

.auth-legal-inline {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--auth-muted);
  text-align: center;
}

.auth-legal-inline a {
  color: var(--auth-primary);
  text-decoration: none;
}

.auth-legal-inline a:hover {
  text-decoration: underline;
}

.auth-optional-toggle {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--auth-primary);
  cursor: pointer;
  text-align: left;
}

.auth-optional-toggle:hover {
  text-decoration: underline;
}

.auth-optional-body {
  margin-top: 0.45rem;
}

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

.auth-input {
  width: 100%;
  height: var(--auth-input-h);
  border: 1px solid var(--auth-border-strong);
  border-radius: var(--auth-radius);
  padding: 0 0.85rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--auth-ink);
  background: #fff;
  transition: border-color 0.18s var(--auth-ease), box-shadow 0.18s var(--auth-ease);
}

.auth-input::placeholder {
  color: #94a3b8;
}

.auth-input:hover {
  border-color: rgba(15, 23, 42, 0.2);
}

.auth-input:focus {
  outline: none;
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px var(--auth-primary-ring);
}

.auth-input--password {
  padding-right: 2.5rem;
}

.auth-input--code {
  letter-spacing: 0.2em;
  font-variant-numeric: tabular-nums;
}

.auth-input-toggle {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--auth-muted);
  cursor: pointer;
}

.auth-input-toggle:hover {
  background: rgba(15, 23, 42, 0.05);
  color: var(--auth-ink);
}

.auth-input-toggle__hide {
  display: none;
}

.auth-input-toggle[aria-pressed="true"] .auth-input-toggle__show {
  display: none;
}

.auth-input-toggle[aria-pressed="true"] .auth-input-toggle__hide {
  display: block;
}

.auth-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--auth-input-h);
  border: 0;
  border-radius: 999px;
  padding: 0 1.1rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s var(--auth-ease), transform 0.12s ease, opacity 0.18s ease;
}

.auth-btn--primary {
  background: var(--auth-primary);
  color: #fff;
}

.auth-btn--ghost {
  background: transparent;
  color: var(--auth-ink);
  border: 1px solid var(--auth-border-strong);
}

.auth-btn--ghost:hover:not(:disabled) {
  background: rgba(15, 23, 42, 0.04);
}

.auth-btn--google {
  background: #fff;
  color: #1f2937;
  border: 1px solid var(--auth-border-strong);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  gap: 0.65rem;
}

.auth-btn--google:hover:not(:disabled) {
  background: #fafafa;
  border-color: rgba(15, 23, 42, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.auth-btn__google-icon {
  flex-shrink: 0;
}

.auth-google__hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.auth-live-region:empty {
  display: none;
}

.auth-field-error {
  margin: 0.2rem 0 0;
  font-size: 0.76rem;
  color: #b91c1c;
  line-height: 1.35;
}

.auth-field.has-error .auth-input {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.auth-strength {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.auth-strength__bar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.auth-strength__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #ef4444;
  transition: width 0.2s ease, background 0.2s ease;
}

.auth-strength[data-level="fair"] .auth-strength__fill {
  background: #f59e0b;
}

.auth-strength[data-level="good"] .auth-strength__fill,
.auth-strength[data-level="strong"] .auth-strength__fill {
  background: #0f766e;
}

.auth-strength__text {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--auth-muted);
  min-width: 3rem;
  text-align: right;
}

.auth-match {
  margin: 0.2rem 0 0;
  font-size: 0.76rem;
}

.auth-match--ok {
  color: #0f766e;
}

.auth-match--bad {
  color: #b91c1c;
}

.auth-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.3rem 0.45rem;
  margin: 0.7rem 0 0;
  padding-top: 0.7rem;
  border-top: 1px solid var(--auth-border);
  font-size: 0.72rem;
  color: var(--auth-muted);
}

.auth-trust svg {
  color: var(--auth-primary);
}

.auth-trust a {
  color: var(--auth-muted);
  text-decoration: none;
}

.auth-trust a:hover {
  color: var(--auth-ink);
  text-decoration: underline;
}

.auth-next {
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(15, 118, 110, 0.06);
  border: 1px solid rgba(15, 118, 110, 0.12);
}

.auth-next__title {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--auth-primary);
}

.auth-next__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: #475569;
}

.auth-next__check {
  color: #0f766e;
  font-weight: 700;
  margin-right: 0.25rem;
}

.auth-next__arrow {
  color: var(--auth-muted);
  margin-right: 0.25rem;
}

.auth-wizard__label {
  margin: 0 0 0.6rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--auth-muted);
}

.auth-wizard__panel {
  display: none;
}

.auth-wizard__panel.is-active {
  display: grid;
  gap: 0.65rem;
}

.auth-wizard__actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.15rem;
}

.auth-alert a {
  color: inherit;
  font-weight: 700;
}

.auth-btn--primary:hover:not(:disabled) {
  background: var(--auth-primary-hover);
}

.auth-btn--primary:active:not(:disabled) {
  transform: scale(0.99);
}

.auth-btn:disabled {
  opacity: 0.72;
  cursor: wait;
}

.auth-btn__spinner {
  display: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-spin 0.7s linear infinite;
}

.auth-btn.is-loading .auth-btn__label {
  opacity: 0;
}

.auth-btn.is-loading .auth-btn__spinner {
  display: block;
  position: absolute;
}

.auth-form__submit-row {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.55rem;
}

/* Forgot password — side-by-side on wide screens */
.auth-forgot-grid {
  display: grid;
  gap: 0.75rem;
}

.auth-panel {
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius);
  padding: 0.85rem 0.9rem;
  background: rgba(248, 247, 244, 0.45);
}

.auth-panel.is-active {
  border-color: rgba(15, 118, 110, 0.2);
  background: #fff;
}

.auth-panel__title {
  margin: 0 0 0.65rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: #334155;
}

.auth-legal {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.75rem;
}

.auth-legal a {
  color: var(--auth-muted);
  text-decoration: none;
}

.auth-legal a:hover {
  color: var(--auth-ink);
  text-decoration: underline;
}

.auth-legal span {
  margin: 0 0.3rem;
  color: #cbd5e1;
}

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

.app-body--upgrade {
  height: auto;
  min-height: 100vh;
  overflow: auto;
}

/* ── Upgrade gate (premium split layout) ── */

.app-body--upgrade-v2 {
  background: #eceff3;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

.app-body--upgrade-v2 .auth-login-frame {
  padding: clamp(1rem, 2.5vw, 1.5rem);
}

.app-body--upgrade-v2 .auth-upgrade-shell {
  width: min(100%, 1060px);
}

.app-body--upgrade-v2 .auth-upgrade-form {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
  justify-content: flex-start;
}

.app-body--upgrade-v2 .auth-upgrade-form.auth-login-form {
  justify-content: flex-start;
  padding: 0;
}

.auth-upgrade-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1rem clamp(1.25rem, 3vw, 1.5rem);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  background: #fff;
}

.auth-upgrade-topbar__logo {
  justify-self: start;
  min-width: 0;
}

.auth-upgrade-topbar__plan {
  justify-self: center;
  max-width: 100%;
}

.auth-upgrade-topbar__signout {
  justify-self: end;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--auth-muted);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.auth-upgrade-topbar__logo .brand-logo-switch__img {
  height: auto;
  max-height: 30px;
  width: auto;
}

.auth-upgrade-topbar__signout:hover {
  color: var(--auth-ink);
  background: rgba(15, 23, 42, 0.04);
}

.app-body--upgrade-v2 .auth-upgrade-form .auth-login-form__inner.auth-upgrade-form__inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: flex-start;
  gap: 0;
  width: 100%;
  max-width: 26rem;
  margin: 0;
  min-height: 0;
  overflow-y: auto;
}

.auth-upgrade-form__inner {
  padding: clamp(1.35rem, 3vh, 2rem) clamp(1.25rem, 4vw, 2.5rem) clamp(1.5rem, 3vh, 2.25rem);
}

.auth-upgrade-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-bottom: 1rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--auth-primary);
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.12);
}

.auth-upgrade-plan-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.55rem 0.28rem 0.65rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.75rem;
}

.auth-upgrade-plan-pill__label {
  color: var(--auth-muted);
}

.auth-upgrade-plan-pill__value {
  font-weight: 700;
  color: var(--auth-ink);
}

.auth-upgrade-head {
  margin-bottom: 1.35rem;
}

.auth-upgrade-head .auth-login-head__title {
  font-size: clamp(1.4rem, 2.4vw, 1.65rem);
  letter-spacing: -0.035em;
}

.auth-upgrade-head .auth-login-head__sub {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: none;
}

.auth-upgrade-features {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.auth-upgrade-feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: flex-start;
}

.auth-upgrade-feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  color: var(--auth-primary);
  flex-shrink: 0;
}

.auth-upgrade-feature__text {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  padding-top: 0.1rem;
}

.auth-upgrade-feature__text strong {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--auth-ink);
  line-height: 1.3;
}

.auth-upgrade-feature__text span {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--auth-muted);
}

.auth-upgrade-actions {
  display: grid;
  gap: 0.65rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.auth-upgrade-checkout {
  margin: 0;
  padding: 0;
  border: 0;
}

.auth-upgrade-billing {
  margin: 0;
  padding: 0;
  border: 0;
}

.auth-upgrade-billing__legend {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-upgrade-billing__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.auth-upgrade-billing__option {
  display: block;
  cursor: pointer;
}

.auth-upgrade-billing__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-upgrade-billing__card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  height: 100%;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  border: 1.5px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-upgrade-billing__option input:checked + .auth-upgrade-billing__card {
  border-color: var(--auth-primary);
  background: rgba(15, 118, 110, 0.04);
  box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.12);
}

.auth-upgrade-billing__option input:focus-visible + .auth-upgrade-billing__card {
  outline: 2px solid var(--auth-primary);
  outline-offset: 2px;
}

.auth-upgrade-billing__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.auth-upgrade-billing__price {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.auth-upgrade-billing__sub {
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--auth-muted);
}

.auth-alert {
  margin: 0.85rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.auth-alert--error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.auth-alert--info {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.auth-upgrade-cta {
  text-decoration: none;
  box-sizing: border-box;
}

.auth-upgrade-cta.auth-btn--primary {
  box-shadow: 0 1px 2px rgba(15, 118, 110, 0.2), 0 6px 20px rgba(15, 118, 110, 0.18);
}

.auth-upgrade-cta.auth-btn--primary:hover {
  box-shadow: 0 2px 4px rgba(15, 118, 110, 0.22), 0 10px 28px rgba(15, 118, 110, 0.22);
}

.auth-upgrade-cta--secondary {
  font-weight: 600;
}

.auth-upgrade-footnote {
  margin: 1.1rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--auth-muted);
}

.auth-upgrade-footnote strong {
  color: #475569;
  font-weight: 600;
}

.auth-split--upgrade {
  display: block;
  height: auto;
  min-height: 100vh;
}

.auth-split__main-inner--upgrade {
  width: min(100%, 520px);
  max-height: none;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
}

.auth-upgrade-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.auth-upgrade-bar__logo img {
  display: block;
  height: auto;
  max-height: 32px;
  width: auto;
}

.auth-card--upgrade {
  padding: 1.5rem;
}

.auth-card__head--stack {
  flex-direction: column;
  gap: 0;
}

.auth-card__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--auth-primary);
}

.auth-upgrade-hint {
  margin: 1rem 0 0;
  text-align: center;
}

.auth-btn--ghost {
  text-decoration: none;
}

@media (max-width: 900px) {
  .app-body--upgrade-v2 {
    height: auto;
    max-height: none;
    overflow: auto;
  }

  .app-body--upgrade-v2 .auth-login-frame {
    padding: 0;
    min-height: 100vh;
  }

  .app-body--upgrade-v2 .auth-upgrade-shell {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
    min-height: 100vh;
    border-radius: 0;
  }

  .auth-upgrade-form__inner,
  .app-body--upgrade-v2 .auth-upgrade-form .auth-login-form__inner.auth-upgrade-form__inner {
    max-width: none;
    margin: 0 auto;
    width: 100%;
  }

  .auth-upgrade-topbar {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo signout"
      "plan plan";
    row-gap: 0.65rem;
  }

  .auth-upgrade-topbar__logo {
    grid-area: logo;
  }

  .auth-upgrade-topbar__plan {
    grid-area: plan;
    justify-self: start;
  }

  .auth-upgrade-topbar__signout {
    grid-area: signout;
  }
}

@media (max-height: 760px) {
  .app-body--upgrade-v2 .auth-upgrade-shell {
    min-height: min(680px, calc(100vh - 1.5rem));
    height: min(720px, calc(100vh - 1.5rem));
  }

  .auth-upgrade-features {
    gap: 0.65rem;
    margin-bottom: 1.15rem;
  }

  .auth-upgrade-feature__icon {
    width: 2rem;
    height: 2rem;
  }
}

@media (min-width: 961px) and (max-height: 780px) {
  .auth-split__features,
  .auth-split__footnote {
    display: none;
  }

  .auth-split__pitch {
    margin-top: 1rem;
  }

  .auth-split__headline {
    font-size: 1.35rem;
  }

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

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

  .auth-form,
  .auth-form-grid {
    gap: 0.55rem;
  }
}

@media (min-width: 961px) {
  .auth-forgot-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (max-width: 960px) {
  .app-body--auth {
    height: auto;
    min-height: 100vh;
    overflow: auto;
  }

  .auth-split {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
  }

  .auth-split__brand {
    display: none;
  }

  .auth-split__logo-mobile {
    display: block;
  }

  .auth-split__main {
    align-items: flex-start;
    padding: 1.25rem 1rem 2rem;
    overflow: visible;
  }

  .auth-split__main-inner,
  .app-body--signup .auth-split__main-inner,
  .app-body--forgot .auth-split__main-inner {
    width: min(100%, 480px);
    max-height: none;
    overflow: visible;
  }

  .auth-card__head {
    flex-direction: column;
    gap: 0.35rem;
  }

  .auth-card__aside {
    text-align: left;
    white-space: normal;
  }

  .auth-form-grid--2,
  .auth-form-grid--signup {
    grid-template-columns: 1fr;
  }

  .auth-forgot-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-btn__spinner {
    animation: none;
  }
}

/* ── Login v2 — split card (form left, showcase right) ── */

.app-body--auth-split {
  --auth-login-panel: #0f766e;
  --auth-login-panel-dark: #094e49;
  background: #e8ecef;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

.auth-login-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  max-height: 100vh;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  box-sizing: border-box;
}

.auth-login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: min(100%, 1040px);
  min-height: min(700px, calc(100vh - 2.5rem));
  height: min(720px, calc(100vh - 2.5rem));
  max-height: calc(100vh - 2.5rem);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 24px 64px rgba(15, 23, 42, 0.11);
}

.auth-login-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: clamp(2rem, 4vh, 2.75rem) clamp(2rem, 4.5vw, 3rem);
  min-height: 0;
  overflow: hidden;
}

.auth-login-form__inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  gap: 0;
  max-width: 22rem;
  width: 100%;
  margin: 0 auto;
  min-height: 0;
}

.auth-login-logo {
  display: inline-flex;
  margin-bottom: clamp(1rem, 2.5vh, 1.25rem);
  flex-shrink: 0;
}

.auth-login-logo .brand-logo-switch__img {
  height: auto;
  max-height: 34px;
  width: auto;
}

.auth-login-head {
  margin-bottom: 1.15rem;
  flex-shrink: 0;
}

.auth-login-head__title {
  margin: 0;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--auth-ink);
}

.auth-login-head__sub {
  margin: 0.45rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--auth-muted);
}

.auth-login-fields {
  gap: 0.75rem;
}

.auth-label--sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-field--icon {
  position: relative;
}

.auth-field__icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  color: #94a3b8;
  pointer-events: none;
  z-index: 1;
}

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

.auth-input-wrap--icon .auth-input--password {
  padding-right: 2.5rem;
}

.auth-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.25rem 0 0.35rem;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #475569;
  cursor: pointer;
  user-select: none;
}

.auth-check input {
  width: 0.95rem;
  height: 0.95rem;
  margin: 0;
  accent-color: var(--auth-primary);
}

.auth-login-switch {
  margin: 1.35rem 0 0;
  padding-top: 1.15rem;
  border-top: 1px solid var(--auth-border);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--auth-muted);
  flex-shrink: 0;
}

.auth-login-switch a {
  color: var(--auth-primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-login-switch a:hover {
  text-decoration: underline;
}

.app-body--auth-split .auth-google {
  margin-bottom: 0;
  flex-shrink: 0;
}

.app-body--auth-split .auth-divider {
  margin: 1rem 0;
  flex-shrink: 0;
}

.app-body--auth-split .auth-alert {
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.app-body--auth-split .auth-btn--primary {
  margin-top: 0.35rem;
}

.app-body--auth-split .auth-input {
  height: 44px;
  background: #f8fafc;
  border-color: #e2e8f0;
}

.app-body--auth-split .auth-input:focus {
  background: #fff;
}

.app-body--auth-split .auth-btn--google {
  min-height: 44px;
}

.app-body--signup-v2 .auth-login-form__inner {
  max-width: 27rem;
}

.app-body--signup-v2 .auth-register-fields {
  gap: 0.65rem;
}

.app-body--signup-v2 .auth-wizard__label {
  margin: 0 0 0.7rem;
  font-size: 0.74rem;
}

.app-body--signup-v2 .auth-wizard__panel.is-active {
  gap: 0.65rem;
}

.app-body--signup-v2 .auth-form-grid {
  gap: 0.65rem;
}

.app-body--signup-v2 .auth-login-head {
  margin-bottom: 0.95rem;
}

.app-body--signup-v2 .auth-strength {
  margin-top: 0.25rem;
}

.app-body--signup-v2 .auth-wizard__actions {
  margin-top: 0.1rem;
}

.app-body--signup-v2 .auth-legal-inline {
  margin-top: 0.35rem;
}

.app-body--recovery-v2 .auth-login-logo {
  margin-bottom: clamp(0.85rem, 2vh, 1.1rem);
}

.app-body--recovery-v2 .auth-login-head__sub strong {
  color: var(--auth-ink);
  font-weight: 600;
}

.auth-login-back {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
}

.auth-login-back a {
  color: var(--auth-muted);
  text-decoration: none;
  font-weight: 500;
}

.auth-login-back a:hover {
  color: var(--auth-primary);
}

/* Auth shells: respect light/dark logo switch (do not force both imgs visible). */
.auth-login-logo .brand-logo-switch__img--dark,
.auth-split__logo .brand-logo-switch__img--dark,
.auth-split__logo-mobile .brand-logo-switch__img--dark,
.auth-invite__logo .brand-logo-switch__img--dark,
.auth-upgrade-topbar__logo .brand-logo-switch__img--dark {
  display: none;
}

[data-theme="dark"] .auth-login-logo .brand-logo-switch__img--light,
[data-theme="dark"] .auth-split__logo .brand-logo-switch__img--light,
[data-theme="dark"] .auth-split__logo-mobile .brand-logo-switch__img--light,
[data-theme="dark"] .auth-invite__logo .brand-logo-switch__img--light,
[data-theme="dark"] .auth-upgrade-topbar__logo .brand-logo-switch__img--light {
  display: none;
}

[data-theme="dark"] .auth-login-logo .brand-logo-switch__img--dark,
[data-theme="dark"] .auth-split__logo .brand-logo-switch__img--dark,
[data-theme="dark"] .auth-split__logo-mobile .brand-logo-switch__img--dark,
[data-theme="dark"] .auth-invite__logo .brand-logo-switch__img--dark,
[data-theme="dark"] .auth-upgrade-topbar__logo .brand-logo-switch__img--dark {
  display: block;
}

.auth-login-logo .brand-logo-switch__img--light,
.auth-split__logo .brand-logo-switch__img--light,
.auth-split__logo-mobile .brand-logo-switch__img--light,
.auth-invite__logo .brand-logo-switch__img--light,
.auth-upgrade-topbar__logo .brand-logo-switch__img--light,
:root:not([data-theme="dark"]) .auth-login-logo .brand-logo-switch__img--light,
:root:not([data-theme="dark"]) .auth-split__logo .brand-logo-switch__img--light,
:root:not([data-theme="dark"]) .auth-split__logo-mobile .brand-logo-switch__img--light,
:root:not([data-theme="dark"]) .auth-invite__logo .brand-logo-switch__img--light,
:root:not([data-theme="dark"]) .auth-upgrade-topbar__logo .brand-logo-switch__img--light {
  display: block;
}

.auth-input--otp {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  font-variant-numeric: tabular-nums;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}

.auth-hint--center {
  text-align: center;
  margin: 0.5rem 0 0;
}

.auth-hint--center .auth-link {
  font-size: inherit;
}

.auth-reset-fields {
  gap: 0.7rem;
}

.auth-login-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 4vh, 2.75rem) clamp(1.5rem, 3vw, 2.25rem);
  text-align: center;
  color: #fff;
  background: linear-gradient(155deg, var(--auth-login-panel) 0%, #0b5c56 48%, var(--auth-login-panel-dark) 100%);
  min-height: 0;
  overflow: hidden;
}

.auth-login-showcase__slides {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.auth-login-showcase__slide {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 22rem;
  animation: auth-showcase-fade 0.45s var(--auth-ease);
}

.auth-login-showcase__slide.is-active {
  display: flex;
}

.auth-login-showcase__title {
  margin: clamp(1rem, 2.5vh, 1.35rem) 0 0;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.auth-login-showcase__lead {
  margin: 0.55rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  max-width: 20rem;
}

.auth-login-showcase__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: clamp(1rem, 2.5vh, 1.5rem);
  flex-shrink: 0;
}

.auth-login-showcase__dot {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.auth-login-showcase__dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

.auth-showcase-visual {
  width: min(100%, 300px);
  flex-shrink: 0;
}

.auth-showcase-visual--image img {
  display: block;
  width: 100%;
  max-height: min(34vh, 220px);
  object-fit: contain;
  border-radius: 14px;
}

.auth-showcase-orbit {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 1;
  margin: 0 auto;
}

.auth-showcase-orbit__ring {
  position: absolute;
  inset: 8%;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 50%;
}

.auth-showcase-orbit__icon {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.auth-showcase-orbit__icon--scissors { top: 4%; left: 50%; transform: translateX(-50%); }
.auth-showcase-orbit__icon--ruler { bottom: 18%; left: 2%; }
.auth-showcase-orbit__icon--needle { bottom: 18%; right: 2%; }
.auth-showcase-orbit__icon--thread { top: 38%; right: -2%; }

.auth-showcase-orbit__card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58%;
  padding: 0.75rem 0.8rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.auth-showcase-orbit__card-row {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.45rem;
  align-items: center;
  padding: 0.35rem 0;
}

.auth-showcase-orbit__card-row + .auth-showcase-orbit__card-row {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.auth-showcase-orbit__card-row span:first-child {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #ccfbf1, #99f6e4);
}

.auth-showcase-orbit__card-row span:last-child {
  display: block;
  height: 0.45rem;
  border-radius: 999px;
  background: #e2e8f0;
}

.auth-showcase-orbit__card-row:nth-child(2) span:last-child { width: 78%; }
.auth-showcase-orbit__card-row:nth-child(3) span:last-child { width: 62%; }

.auth-showcase-timeline {
  width: min(100%, 270px);
  padding: 0.85rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  text-align: left;
}

.auth-showcase-timeline__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.5rem 0;
}

.auth-showcase-timeline__row + .auth-showcase-timeline__row {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-showcase-timeline__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-showcase-timeline__body {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.auth-showcase-timeline__name {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
}

.auth-showcase-timeline__meta {
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.25;
}

.auth-showcase-timeline__badge {
  font-size: 0.58rem;
  font-weight: 700;
  padding: 0.2rem 0.4rem;
  border-radius: 999px;
  white-space: nowrap;
}

.auth-showcase-timeline__badge--progress { background: rgba(251, 191, 36, 0.25); color: #fef3c7; }
.auth-showcase-timeline__badge--ready { background: rgba(52, 211, 153, 0.25); color: #d1fae5; }
.auth-showcase-timeline__badge--new { background: rgba(147, 197, 253, 0.25); color: #dbeafe; }

@keyframes auth-showcase-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-height: 760px) {
  .auth-login-shell {
    min-height: min(640px, calc(100vh - 1.5rem));
    height: min(680px, calc(100vh - 1.5rem));
  }

  .auth-login-form {
    padding: 1.75rem 2rem;
  }

  .auth-login-head__sub {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .auth-showcase-visual {
    width: min(100%, 250px);
  }

  .auth-showcase-orbit {
    width: min(100%, 240px);
  }
}

@media (max-width: 900px) {
  .app-body--auth-split {
    height: auto;
    max-height: none;
    overflow: auto;
  }

  .auth-login-frame {
    min-height: 100vh;
    max-height: none;
    padding: 0;
  }

  .auth-login-shell {
    grid-template-columns: 1fr;
    width: 100%;
    height: auto;
    max-height: none;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

  .auth-login-showcase {
    display: none;
  }

  .auth-login-form {
    padding: 1.5rem 1.25rem 2rem;
  }

  .app-body--signup-v2 .auth-form-grid--2 {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-login-showcase__slide {
    animation: none;
  }
}

/* Invite accept — single-column premium */
.app-body--invite {
  overflow: auto;
}

.auth-invite {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
}

.auth-invite__shell {
  width: min(100%, 440px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.auth-invite__logo {
  display: block;
  margin-bottom: 1.75rem;
}

.auth-invite__logo .brand-logo-switch__img {
  height: auto;
  max-height: 32px;
  width: auto;
  margin: 0 auto;
}

.auth-invite__card {
  width: 100%;
  padding: 2rem 1.75rem 1.65rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 24px 64px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.auth-invite__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.1rem;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(15, 118, 110, 0.14), rgba(15, 118, 110, 0.06));
  color: var(--auth-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.auth-invite__eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--auth-primary);
}

.auth-invite__title {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.auth-invite__lede {
  margin: 0.75rem auto 0;
  max-width: 22rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--auth-muted);
}

.auth-invite__hint {
  margin: 0.85rem 0 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--auth-muted);
}

.auth-invite__account {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 1.25rem auto 0;
  padding: 0.85rem 1rem;
  max-width: 100%;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.auth-invite__account-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--auth-muted);
}

.auth-invite__account-email {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--auth-ink);
  word-break: break-all;
}

.auth-invite__points {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  text-align: left;
}

.auth-invite__points li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #334155;
}

.auth-invite__point-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.05rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--auth-primary);
  flex-shrink: 0;
}

.auth-invite__actions {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-invite__submit {
  width: 100%;
  min-height: 46px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15, 118, 110, 0.18), 0 10px 28px rgba(15, 118, 110, 0.16);
}

.auth-invite__submit:hover:not(:disabled) {
  box-shadow: 0 2px 4px rgba(15, 118, 110, 0.22), 0 14px 32px rgba(15, 118, 110, 0.2);
}

.auth-invite__alt-wrap {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--auth-muted);
}

.auth-invite__alt {
  color: var(--auth-primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-invite__alt:hover {
  text-decoration: underline;
}

.auth-invite__trust {
  width: 100%;
  margin-top: 1.25rem;
  padding-top: 0;
  border-top: none;
}

.auth-invite__account-role {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--auth-muted);
}

.auth-invite__form {
  margin-top: 1.25rem;
  text-align: left;
}

.auth-invite__form .auth-field {
  margin-bottom: 0.85rem;
}

.auth-invite__form .auth-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--auth-ink);
}

.auth-invite__form .auth-input {
  width: 100%;
  height: 44px;
  padding: 0 0.85rem;
  border: 1px solid var(--auth-border-strong);
  border-radius: 10px;
  font: inherit;
  font-size: 0.9rem;
  background: #f8fafc;
  color: var(--auth-ink);
}

.auth-invite__form .auth-input:focus {
  outline: none;
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px var(--auth-primary-ring);
  background: #fff;
}

.auth-invite__optional {
  font-weight: 500;
  color: var(--auth-muted);
}

.auth-invite__hint {
  margin: -0.35rem 0 0.5rem;
  font-size: 0.78rem;
  color: var(--auth-muted);
  text-align: left;
}

.auth-invite__card .auth-alert {
  margin-top: 1rem;
  text-align: left;
}

@media (max-width: 480px) {
  .auth-invite {
    padding: 1.5rem 1rem;
    align-items: flex-start;
  }

  .auth-invite__card {
    padding: 1.5rem 1.25rem 1.35rem;
    border-radius: 18px;
  }
}
