:root {
  --auth-cream: #fff9ea;
  --auth-cream-deep: #efe5c9;
  --auth-surface: #fffdf5;
  --auth-ink: #1c1410;
  --auth-muted: #5f523b;
  --auth-red: #c3162b;
  --auth-red-dark: #9b0a1a;
  --auth-border: #ddd0ae;
  --auth-control-height: 54px;
  --auth-stage-gutter: clamp(42px, 7vw, 136px);
}

* {
  box-sizing: border-box;
}

html,
body.auth-page {
  min-height: 100%;
}

body.auth-page {
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background: var(--auth-cream);
  color: var(--auth-ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body.auth-page .app-bg {
  display: none;
}

body.auth-page button,
body.auth-page input {
  font-family: inherit;
}

body.auth-page button {
  cursor: pointer;
}

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

.auth-reference-main {
  min-height: 100dvh;
}

.auth-reference-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 58%) minmax(420px, 42%);
  min-height: 100dvh;
  overflow: hidden;
  background: var(--auth-cream);
}

.auth-reference-stage {
  position: relative;
  z-index: 1;
  min-width: 0;
  overflow: hidden;
  background: var(--auth-cream);
}

.auth-reference-stage::before {
  position: absolute;
  z-index: 0;
  inset: 0 0 0 52%;
  content: "";
  background: var(--auth-cream-deep);
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
}

.auth-reference-stage-logo {
  position: absolute;
  z-index: 4;
  top: clamp(36px, 5.1vh, 54px);
  left: var(--auth-stage-gutter);
  display: inline-flex;
}

.auth-reference-stage-logo img {
  display: block;
  width: auto;
  height: clamp(29px, 3.4vh, 36px);
}

.auth-reference-copy {
  position: relative;
  z-index: 3;
  width: min(360px, calc(100% - (var(--auth-stage-gutter) * 2)));
  margin: clamp(148px, 20vh, 210px) 0 0 var(--auth-stage-gutter);
}

.auth-reference-copy h1 {
  margin: 0;
  color: var(--auth-ink);
  font-size: clamp(3rem, 4.4vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.93;
}

.auth-reference-copy h1 span,
.auth-reference-copy h1 strong {
  display: block;
}

.auth-reference-copy h1 span {
  color: var(--auth-red);
}

.auth-reference-copy h1 strong {
  font-size: clamp(2.25rem, 3.55vw, 4.25rem);
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  white-space: nowrap;
}

.auth-reference-copy p {
  max-width: 318px;
  margin: 22px 0 0;
  color: var(--auth-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.auth-reference-benefits {
  display: grid;
  gap: 12px;
  width: min(100%, 312px);
  margin-top: 28px;
}

.auth-reference-benefits > span {
  display: grid;
  min-height: 53px;
  grid-template-columns: 29px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid var(--auth-border);
  border-radius: 14px;
  background: var(--auth-surface);
}

.auth-reference-benefits i {
  grid-row: 1 / span 2;
  color: var(--auth-red);
  font-size: 20px;
  font-style: normal;
  font-variation-settings: "FILL" 1;
}

.auth-reference-benefits b,
.auth-reference-benefits small {
  display: block;
}

.auth-reference-benefits b {
  color: var(--auth-ink);
  font-size: 0.76rem;
  font-weight: 800;
}

.auth-reference-benefits small {
  color: var(--auth-muted);
  font-size: 0.67rem;
  line-height: 1.2;
}

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

.auth-reference-shard,
.auth-reference-spark {
  position: absolute;
  display: block;
  will-change: transform;
  animation: auth-reference-float var(--auth-float-duration, 8s) ease-in-out var(--auth-float-delay, 0s) infinite alternate;
}

.auth-reference-shard {
  width: 18px;
  height: 32px;
  background: var(--auth-red);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  opacity: 0.7;
}

.auth-reference-shard-one { top: 11%; left: 52%; --auth-float-x: 7px; --auth-float-y: -14px; --auth-float-rotation: 10deg; --auth-float-duration: 7.5s; --auth-float-delay: -1.4s; }
.auth-reference-shard-two { top: 18%; left: 86%; width: 23px; height: 42px; --auth-float-x: -9px; --auth-float-y: -8px; --auth-float-rotation: -13deg; --auth-float-duration: 10.5s; --auth-float-delay: -4.2s; }
.auth-reference-shard-three { top: 47%; left: 58%; width: 13px; height: 24px; opacity: 0.48; --auth-float-x: 8px; --auth-float-y: -11px; --auth-float-rotation: 8deg; --auth-float-duration: 8.8s; --auth-float-delay: -2.3s; }
.auth-reference-shard-four { bottom: 17%; left: 47%; width: 12px; height: 22px; opacity: 0.52; --auth-float-x: -6px; --auth-float-y: -9px; --auth-float-rotation: -10deg; --auth-float-duration: 9.6s; --auth-float-delay: -5.1s; }
.auth-reference-shard-five { bottom: 11%; right: 8%; width: 16px; height: 28px; opacity: 0.4; --auth-float-x: 6px; --auth-float-y: -13px; --auth-float-rotation: 15deg; --auth-float-duration: 12s; --auth-float-delay: -7s; }

.auth-reference-spark {
  width: 10px;
  height: 10px;
  background: #c89a38;
  clip-path: polygon(50% 0, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0 50%, 37% 37%);
  opacity: 0.72;
}

.auth-reference-spark-one { top: 14%; left: 75%; --auth-float-x: -6px; --auth-float-y: -12px; --auth-float-rotation: -12deg; --auth-float-duration: 5.8s; --auth-float-delay: -0.9s; }
.auth-reference-spark-two { top: 33%; left: 68%; width: 16px; height: 16px; --auth-float-x: 9px; --auth-float-y: -7px; --auth-float-rotation: 16deg; --auth-float-duration: 8.4s; --auth-float-delay: -2.8s; }
.auth-reference-spark-three { bottom: 26%; right: 10%; --auth-float-x: -8px; --auth-float-y: -14px; --auth-float-rotation: -18deg; --auth-float-duration: 6.9s; --auth-float-delay: -3.6s; }

@keyframes auth-reference-float {
  0% {
    transform: translate3d(-2px, 2px, 0) rotate(-4deg) scale(0.96);
  }

  50% {
    transform: translate3d(var(--auth-float-x, 7px), var(--auth-float-y, -10px), 0) rotate(var(--auth-float-rotation, 10deg)) scale(1.05);
  }

  100% {
    transform: translate3d(3px, -3px, 0) rotate(3deg) scale(1);
  }
}

.auth-reference-art {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.auth-reference-art img {
  position: absolute;
  bottom: 0;
  left: var(--auth-reference-art-left, 0px);
  width: auto;
  max-width: none;
  height: var(--auth-reference-art-height, min(94dvh, 980px));
  object-fit: initial;
  filter: saturate(1.04) contrast(1.03);
  transform-origin: bottom left;
}

.auth-reference-panel {
  position: relative;
  z-index: 4;
  display: flex;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  padding: clamp(42px, 7vh, 76px) clamp(36px, 5.5vw, 96px);
  overflow-y: auto;
  background: var(--auth-cream);
}

.auth-reference-form {
  width: min(100%, 430px);
  margin: auto;
}

.auth-page-register .auth-reference-form {
  max-width: 460px;
}

.auth-page-signup-complete .auth-reference-form {
  max-width: 460px;
}

.auth-form-header {
  margin-bottom: 28px;
  text-align: center;
}

.auth-reference-form-mark {
  display: grid;
  width: 42px;
  height: 48px;
  margin: 0 auto 14px;
  place-items: center;
  color: var(--auth-red);
  background: var(--auth-cream-deep);
  clip-path: polygon(50% 0, 91% 21%, 85% 78%, 50% 100%, 15% 78%, 9% 21%);
}

.auth-reference-form-mark .material-symbols-rounded {
  font-size: 23px;
  font-variation-settings: "FILL" 1;
}

.auth-card-title {
  margin: 0;
  color: var(--auth-ink);
  font-size: clamp(2.15rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1;
}

.auth-card-subtitle {
  max-width: 320px;
  margin: 12px auto 0;
  color: var(--auth-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.auth-email-chip {
  color: var(--auth-red);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.field {
  margin-bottom: 14px;
}

.auth-page-signup-complete .phone-field {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 10px;
  overflow: visible;
}

.auth-page-signup-complete .phone-country-wrap {
  position: relative;
  z-index: 10;
  min-width: 0;
}

.auth-page-signup-complete .phone-country-trigger {
  display: flex;
  width: 100%;
  height: var(--auth-control-height);
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--auth-border);
  border-radius: 999px;
  outline: none;
  background: var(--auth-surface);
  color: var(--auth-ink);
  font-size: 0.9rem;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.auth-page-signup-complete .phone-country-trigger:hover,
.auth-page-signup-complete .phone-country-trigger:focus-visible {
  border-color: var(--auth-red);
}

.auth-page-signup-complete .phone-country-flag,
.auth-page-signup-complete .phone-country-option-flag {
  display: block;
  width: 24px;
  height: 18px;
  flex: 0 0 24px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(28, 20, 16, 0.1);
}

.auth-page-signup-complete .phone-country-code {
  font-weight: 750;
  white-space: nowrap;
}

.auth-page-signup-complete .phone-country-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  display: none;
  width: 210px;
  padding: 8px;
  border: 1px solid var(--auth-border);
  border-radius: 16px;
  background: var(--auth-surface);
  box-shadow: 0 18px 38px rgba(45, 31, 20, 0.18);
}

.auth-page-signup-complete .phone-country-wrap.open .phone-country-menu {
  display: grid;
  gap: 3px;
}

.auth-page-signup-complete .phone-country-option {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--auth-ink);
  font-size: 0.85rem;
  text-align: left;
}

.auth-page-signup-complete .phone-country-option:hover,
.auth-page-signup-complete .phone-country-option:focus-visible,
.auth-page-signup-complete .phone-country-option.is-selected {
  background: var(--auth-cream-deep);
}

.auth-page-signup-complete .phone-country-option-label {
  font-weight: 750;
}

.auth-page-signup-complete .phone-country-option-code {
  margin-left: auto;
  color: var(--auth-muted);
  font-weight: 650;
}

.auth-page-signup-complete .phone-number-floating {
  min-width: 0;
}

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

.auth-floating-field > input {
  width: 100%;
  height: var(--auth-control-height);
  padding: 0 48px 0 46px;
  border: 1px solid var(--auth-border);
  border-radius: 999px;
  outline: none;
  background: var(--auth-surface);
  color: var(--auth-ink);
  font-size: 1rem;
  line-height: 1.2;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.auth-floating-field > input::placeholder {
  color: transparent;
}

.auth-floating-field > input:focus {
  border-color: var(--auth-red);
  box-shadow: none;
}

.auth-floating-field-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 16px;
  color: #806d50;
  font-size: 19px;
  pointer-events: none;
  transform: translateY(-50%);
  transition: color 0.16s ease;
}

.auth-floating-field:focus-within > .auth-floating-field-icon,
.field.has-error .auth-floating-field-icon {
  color: var(--auth-red);
}

.auth-floating-label {
  position: absolute;
  top: 50%;
  left: 46px;
  color: var(--auth-muted);
  font-size: 1rem;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
  transition: top 0.16s ease, color 0.16s ease, font-size 0.16s ease;
}

.auth-floating-field > input:focus + .auth-floating-label,
.auth-floating-field > input:not(:placeholder-shown) + .auth-floating-label {
  top: 0;
  padding: 0 8px;
  background: var(--auth-surface);
  color: var(--auth-red);
  font-size: 0.75rem;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #806d50;
  transform: translateY(-50%);
}

.auth-password-toggle:focus-visible {
  outline: 2px solid var(--auth-red);
  outline-offset: 1px;
}

.auth-password-toggle .material-symbols-rounded {
  font-size: 20px;
}

.auth-inline-actions,
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--auth-muted);
  font-size: 0.875rem;
}

.auth-inline-actions {
  margin-top: 2px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.auth-inline-actions .auth-check {
  min-width: 0;
  white-space: nowrap;
}

.auth-inline-actions .auth-text-link,
.auth-inline-actions .auth-inline-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.row {
  justify-content: center;
  margin-top: 22px;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--auth-muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

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

.auth-check-terms {
  align-items: flex-start;
  font-size: 0.78rem;
}

.auth-check-terms input {
  flex: 0 0 auto;
  margin-top: 3px;
}

.auth-text-link,
.auth-underlined-link,
.auth-policy-link,
.auth-inline-button {
  color: var(--auth-red);
  font-weight: 750;
  text-decoration: none;
}

.auth-inline-button {
  padding: 0;
  border: 0;
  background: transparent;
}

.auth-text-link:hover,
.auth-underlined-link:hover,
.auth-policy-link:hover,
.auth-inline-button:hover {
  color: var(--auth-red-dark);
}

.btn-submit {
  width: 100%;
  height: var(--auth-control-height);
  margin-top: 18px;
  border: 1px solid var(--auth-red-dark);
  border-radius: 999px;
  background: var(--auth-red);
  color: #fff;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1;
  box-shadow: 0 12px 26px rgba(195, 22, 43, 0.22);
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.btn-submit:hover,
.btn-submit:focus-visible {
  border-color: var(--auth-red-dark);
  background: var(--auth-red-dark);
}

.btn-submit:focus-visible,
.auth-google-trigger:focus-visible {
  outline: 2px solid var(--auth-red);
  outline-offset: 3px;
}

body:is(.auth-page-verify-reset-otp, .auth-page-verify-email, .auth-page-profile-verify) .auth-inline-actions {
  margin-top: 16px;
}

body:is(.auth-page-verify-reset-otp, .auth-page-verify-email, .auth-page-profile-verify) .auth-field-error,
body:is(.auth-page-verify-reset-otp, .auth-page-verify-email, .auth-page-profile-verify) .auth-notice {
  margin-top: 14px;
}

.auth-social-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: #806d50;
  font-size: 0.875rem;
  text-transform: uppercase;
}

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

.auth-google-button-shell {
  position: relative;
}

.auth-google-trigger {
  display: flex;
  width: 100%;
  height: var(--auth-control-height);
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid var(--auth-border);
  border-radius: 999px;
  background: var(--auth-surface);
  color: var(--auth-ink);
  font-size: 1rem;
  font-weight: 650;
}

.auth-google-trigger:hover {
  border-color: #b99b5c;
  background: #fff8e9;
}

.auth-google-trigger svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
}

.auth-google-overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 999px;
  opacity: 0.01;
}

.auth-google-overlay > div,
.auth-google-overlay iframe {
  width: 100%;
  min-width: 100%;
  height: 100%;
}

.auth-google-error {
  margin-top: 12px;
}

.auth-notice,
.auth-field-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 14px;
  padding: 11px 13px;
  border: 1px solid var(--auth-border);
  border-radius: 14px;
  font-size: 0.84rem;
  line-height: 1.4;
}

.auth-notice-error,
.auth-field-error {
  border-color: rgba(195, 22, 43, 0.35);
  background: #fff4f4;
  color: #8d1722;
}

.auth-notice-success {
  border-color: rgba(58, 122, 72, 0.32);
  background: #f2faf1;
  color: #256437;
}

.field.has-error .auth-floating-field > input,
.field.has-error .otp-box {
  border-color: var(--auth-red);
}

.auth-field-error {
  width: 100%;
  min-width: 0;
  margin-top: 8px;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.auth-field-error:empty {
  display: none;
}

.auth-field-error > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.auth-field-error-icon {
  font-size: 18px;
}

.otp-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: start;
  gap: 6px;
}

.otp-box {
  width: 100%;
  min-width: 0;
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid var(--auth-border);
  border-radius: 16px;
  outline: 0;
  background: var(--auth-surface);
  color: var(--auth-ink);
  font-size: clamp(1.7rem, 4.8vw, 2.15rem);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.otp-box:focus {
  border-color: var(--auth-red);
  box-shadow: none;
}

.auth-password-field .auth-pw-strength,
.auth-password-field .auth-pw-checklist {
  display: none;
}

.auth-password-field.is-pw-help-visible .auth-pw-strength,
.auth-password-field.is-pw-help-visible .auth-pw-checklist {
  display: block;
}

.auth-pw-strength {
  margin-top: 10px;
}

.auth-pw-bar {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee4cf;
}

.auth-pw-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--auth-red);
  transition: width 0.2s ease, background-color 0.2s ease;
}

.auth-pw-label {
  margin-top: 7px;
  color: var(--auth-muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.auth-pw-checklist {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  column-gap: 14px;
  row-gap: 5px;
  margin-top: 9px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.auth-pw-checklist::-webkit-scrollbar {
  display: none;
}

.auth-pw-rule {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  color: var(--auth-muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

.auth-pw-rule.is-met {
  color: #287a47;
}

.auth-pw-rule-icon {
  font-size: 16px;
}


.auth-window-overlay {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(28, 20, 16, 0.46);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.auth-window-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.auth-window {
  width: min(100%, 470px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 28px;
  border: 1px solid var(--auth-border);
  border-radius: 24px;
  background: var(--auth-surface);
  box-shadow: 0 24px 70px rgba(28, 20, 16, 0.26);
}

.auth-window-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.auth-window-eyebrow {
  color: var(--auth-red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-window h3 {
  margin: 6px 0 0;
  font-size: 1.75rem;
}

.auth-window-copy,
.auth-window-hint {
  color: var(--auth-muted);
  line-height: 1.5;
}

.auth-window-copy {
  margin: 14px 0 20px;
}

.auth-window-panel > label {
  display: block;
  margin-bottom: 9px;
  color: var(--auth-ink);
  font-size: 0.86rem;
  font-weight: 750;
}

.auth-window-panel.is-hidden {
  display: none;
}

.auth-window-hint {
  margin-top: 9px;
  font-size: 0.8rem;
}

.auth-window-backup-input {
  width: 100%;
  height: var(--auth-control-height);
  padding: 0 18px;
  border: 1px solid var(--auth-border);
  border-radius: 999px;
  outline: none;
  background: var(--auth-surface);
}

.auth-window-backup-input:focus {
  border-color: var(--auth-red);
}

.auth-window-trust-device {
  margin-top: 16px;
}

.auth-window-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.auth-window-actions .btn-submit {
  margin-top: 0;
}

.auth-window-cancel {
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: var(--auth-muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.auth-window-cancel:hover,
.auth-window-cancel:focus-visible {
  color: var(--auth-red-dark);
}

.auth-window-cancel:focus-visible {
  outline: 2px solid var(--auth-red);
  outline-offset: 2px;
}

.auth-window-switch {
  width: 100%;
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--auth-red);
  font-size: 0.84rem;
  font-weight: 750;
}

.auth-window-head-actions {
  position: relative;
}

.auth-window-support-btn {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--auth-border);
  border-radius: 50%;
  background: var(--auth-surface);
  color: var(--auth-red);
}

.auth-window-support-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 2;
  width: 250px;
  padding: 10px;
  border: 1px solid var(--auth-border);
  border-radius: 16px;
  background: var(--auth-surface);
  box-shadow: 0 12px 32px rgba(28, 20, 16, 0.16);
  opacity: 0;
  visibility: hidden;
}

.auth-window-support-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.auth-window-support-card {
  display: grid;
  grid-template-columns: 28px 1fr 18px;
  gap: 9px;
  align-items: center;
  color: var(--auth-ink);
  text-decoration: none;
}

.auth-window-support-card-icon,
.auth-window-support-card-arrow {
  color: var(--auth-red);
}

.auth-window-support-card-copy strong,
.auth-window-support-card-copy span {
  display: block;
}

.auth-window-support-card-copy strong {
  font-size: 0.8rem;
}

.auth-window-support-card-copy span {
  margin-top: 3px;
  color: var(--auth-muted);
  font-size: 0.7rem;
  line-height: 1.35;
}

.auth-window-support-menu .auth-window-support-switch {
  margin: 10px 0 0;
  padding: 10px 2px 0;
  border-top: 1px solid var(--auth-border);
  text-align: left;
}

/* Use the same full-height auth frame for a pending second factor. */
.auth-page-two-factor .auth-reference-panel {
  visibility: hidden;
}

.auth-page-two-factor .auth-window-overlay {
  display: grid;
  grid-template-columns: minmax(0, 58%) minmax(420px, 42%);
  padding: 0;
  background: transparent;
  opacity: 1;
  visibility: visible;
  transition: none;
}

.auth-page-two-factor .auth-window {
  display: flex;
  width: 100%;
  max-height: none;
  min-height: 100dvh;
  grid-column: 2;
  align-items: center;
  justify-content: center;
  padding: clamp(42px, 7vh, 76px) clamp(36px, 5.5vw, 96px);
  border: 0;
  border-radius: 0;
  background: var(--auth-cream);
  box-shadow: none;
}

.auth-page-two-factor .auth-window-form {
  width: min(100%, 430px);
  margin: auto;
}

@media (max-width: 1440px) {
  .auth-reference-benefits {
    display: none;
  }
}

@media (max-height: 760px) and (min-width: 901px) {
  .auth-reference-panel {
    align-items: flex-start;
    padding-top: 38px;
    padding-bottom: 38px;
  }
}

@media (max-width: 900px) {
  :root {
    --auth-stage-gutter: 24px;
  }

  .auth-reference-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 144px auto;
    overflow: visible;
  }

  .auth-reference-stage {
    grid-column: 1;
    grid-row: 1;
    min-height: 144px;
  }

  .auth-reference-stage::before {
    inset: 0 0 0 44%;
  }

  .auth-reference-stage-logo {
    top: 24px;
    left: 24px;
  }

  .auth-reference-stage-logo img {
    height: 25px;
  }

  .auth-reference-copy {
    display: block;
    width: min(190px, calc(100% - 48px));
    margin: 70px 0 0 24px;
  }

  .auth-reference-copy h1 {
    font-size: clamp(1.45rem, 6vw, 2rem);
    line-height: 0.9;
  }

  .auth-reference-copy h1 strong {
    font-size: clamp(1.25rem, 5.2vw, 1.75rem);
    white-space: nowrap;
  }

  .auth-reference-copy p,
  .auth-reference-benefits {
    display: none;
  }

  .auth-reference-art {
    z-index: 2;
    inset: 0 0 auto;
    height: 144px;
    overflow: hidden;
  }

  .auth-reference-art img {
    right: clamp(-100px, -13vw, -44px);
    bottom: clamp(-54px, -8vh, -30px);
    left: auto;
    width: clamp(240px, 68vw, 380px);
    height: auto;
  }

  .auth-reference-panel {
    grid-column: 1;
    grid-row: 2;
    min-height: calc(100dvh - 144px);
    padding: 40px clamp(28px, 8vw, 48px) 54px;
  }

  .auth-reference-form {
    width: min(100%, 400px);
    max-width: 400px;
  }

  .auth-page-two-factor .auth-window-overlay {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 144px minmax(0, 1fr);
  }

  .auth-page-two-factor .auth-window {
    min-height: calc(100dvh - 144px);
    grid-column: 1;
    grid-row: 2;
    padding: 40px clamp(28px, 8vw, 48px) 54px;
  }





}

@media (max-width: 420px) {
  .auth-reference-shell {
    grid-template-rows: 132px auto;
  }

  .auth-reference-stage {
    min-height: 132px;
  }

  .auth-reference-art {
    height: 132px;
  }

  .auth-reference-panel {
    min-height: calc(100dvh - 132px);
    padding-inline: 24px;
  }

  .auth-reference-form {
    width: min(100%, 360px);
    max-width: 360px;
  }

  .auth-page-two-factor .auth-window-overlay {
    grid-template-rows: 132px minmax(0, 1fr);
  }

  .auth-page-two-factor .auth-window {
    min-height: calc(100dvh - 132px);
    padding-inline: 24px;
  }

  .auth-inline-actions {
    align-items: center;
    flex-direction: row;
    gap: clamp(6px, 2vw, 10px);
  }

  .auth-inline-actions .auth-check,
  .auth-inline-actions .auth-text-link,
  .auth-inline-actions .auth-inline-button {
    font-size: clamp(0.72rem, 3.25vw, 0.875rem);
  }

  .otp-grid {
    gap: 4px;
  }
}

/* Keep every mobile auth flow compact without changing the stage artwork. */
@media (max-width: 900px) {
  :root {
    --auth-control-height: 48px;
  }

  .auth-reference-form,
  .auth-page-two-factor .auth-window-form {
    width: min(100%, 360px);
    max-width: 360px;
  }

  .auth-form-header {
    margin-bottom: 20px;
  }

  .auth-reference-form-mark {
    width: 34px;
    height: 40px;
    margin-bottom: 10px;
  }

  .auth-reference-form-mark .material-symbols-rounded {
    font-size: 19px;
  }

  .auth-card-title {
    font-size: 1.75rem;
  }

  .auth-card-subtitle {
    max-width: 290px;
    margin-top: 9px;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .field {
    margin-bottom: 10px;
  }

  .auth-floating-field > input,
  .auth-window-backup-input {
    font-size: 0.92rem;
  }

  .auth-floating-field-icon {
    left: 14px;
    font-size: 17px;
  }

  .auth-floating-label {
    left: 42px;
    font-size: 0.92rem;
  }

  .auth-floating-field > input {
    padding-left: 42px;
    padding-right: 44px;
  }

  .auth-password-toggle {
    width: 34px;
    height: 34px;
    right: 7px;
  }

  .auth-password-toggle .material-symbols-rounded {
    font-size: 18px;
  }

  .auth-inline-actions,
  .row,
  .auth-check {
    font-size: 0.81rem;
  }

  .auth-check {
    gap: 7px;
  }

  .btn-submit {
    margin-top: 14px;
    font-size: 0.92rem;
    box-shadow: 0 9px 18px rgba(195, 22, 43, 0.18);
  }

  .auth-social-divider {
    gap: 12px;
    margin: 17px 0;
    font-size: 0.78rem;
  }

  .auth-google-trigger {
    gap: 10px;
    padding-inline: 14px;
    font-size: 0.92rem;
  }

  .auth-google-trigger svg {
    width: 18px;
    height: 18px;
  }

  .row {
    margin-top: 17px;
  }

  .auth-notice,
  .auth-field-error {
    gap: 7px;
    margin-bottom: 10px;
    padding: 9px 11px;
    font-size: 0.78rem;
  }

  .auth-page-signup-complete .phone-field {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 8px;
  }

  .auth-page-signup-complete .phone-country-trigger {
    gap: 6px;
    padding-inline: 9px;
    font-size: 0.82rem;
  }

  .auth-page-signup-complete .phone-country-flag,
  .auth-page-signup-complete .phone-country-option-flag {
    width: 21px;
    height: 16px;
    flex-basis: 21px;
  }

  .otp-grid {
    gap: 5px;
  }

  .otp-box {
    border-radius: 13px;
    font-size: clamp(1.4rem, 4.2vw, 1.8rem);
  }

  .auth-window h3 {
    font-size: 1.5rem;
  }

  .auth-window-copy,
  .auth-window-hint,
  .auth-window-panel > label {
    font-size: 0.88rem;
  }

  .auth-window-copy {
    margin: 10px 0 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .auth-reference-shard,
  .auth-reference-spark {
    animation: none !important;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Requested auth-flow refinements. */
.auth-password-field.is-pw-help-visible .auth-pw-checklist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 6px;
  overflow: visible;
  white-space: normal;
}

.auth-pw-rule {
  min-width: 0;
  align-items: flex-start;
  gap: 5px;
  font-size: clamp(0.64rem, 0.78vw, 0.76rem);
  line-height: 1.28;
  white-space: normal;
}

.auth-pw-rule > span:last-child {
  min-width: 0;
}

.auth-pw-rule-icon {
  flex: 0 0 auto;
}

/* Use the same artwork and split panel as the other auth pages. */
.auth-page-two-factor .auth-window-form {
  width: min(100%, 430px);
  max-width: 430px;
  margin: 0 auto;
  text-align: center;
}

.auth-two-factor-mark,
.auth-trust-device-mark {
  display: grid;
  width: 48px;
  height: 56px;
  place-items: center;
  margin: 0 auto 20px;
  clip-path: polygon(50% 0, 90% 22%, 86% 78%, 50% 100%, 14% 78%, 10% 22%);
  background: #f0e5c7;
  color: var(--auth-red);
}

.auth-two-factor-mark .material-symbols-rounded,
.auth-trust-device-mark .material-symbols-rounded {
  font-size: 27px;
  font-variation-settings: 'FILL' 1;
}

.auth-page-two-factor .auth-window-head {
  position: relative;
  display: block;
}

.auth-page-two-factor .auth-window-head-actions {
  position: absolute;
  top: -10px;
  right: 0;
}

.auth-page-two-factor .auth-window-eyebrow {
  margin-bottom: 4px;
}

.auth-page-two-factor .auth-window h3 {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 2.45rem);
  letter-spacing: -0.045em;
}

.auth-page-two-factor .auth-window-copy {
  max-width: 380px;
  margin: 12px auto 26px;
  font-size: 1rem;
}

.auth-page-two-factor .auth-window-panel {
  text-align: left;
}

.auth-page-two-factor .auth-window-panel > label {
  margin-bottom: 10px;
}

.auth-page-two-factor .otp-grid {
  gap: 8px;
}

.auth-page-two-factor .otp-box {
  border-radius: 16px;
}

.auth-page-two-factor .auth-window-actions {
  gap: 12px;
  margin-top: 26px;
}

.auth-page-two-factor .auth-window-actions .btn-submit {
  min-height: 54px;
  border-radius: 999px;
}

.auth-window-secondary {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  color: var(--auth-muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
}

.auth-window-secondary:hover,
.auth-window-secondary:focus-visible {
  color: var(--auth-red-dark);
}

.auth-window-secondary:focus-visible {
  outline: 2px solid var(--auth-red);
  outline-offset: 2px;
}

.auth-trust-device-form .auth-window-eyebrow {
  margin-bottom: 5px;
}

.auth-trust-device-form .auth-window-copy {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  max-width: 380px;
  gap: 7px;
  margin: 14px auto 0;
  padding: 11px 13px;
  border: 1px solid var(--auth-border);
  border-radius: 12px;
  background: rgba(240, 229, 199, 0.45);
  color: var(--auth-ink);
  font-size: clamp(0.58rem, 2.9vw, 0.88rem);
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
}

.auth-trust-device-lines {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.auth-trust-device-lines > span {
  display: block;
  white-space: nowrap;
}

.auth-trust-device-duration {
  color: var(--auth-red-dark);
}

.auth-trust-device-copy .material-symbols-rounded {
  flex: 0 0 auto;
  margin-top: 0;
  color: var(--auth-red);
  font-size: 17px;
  font-variation-settings: 'FILL' 1;
}

.auth-trust-device-actions {
  margin-top: 28px;
}

@media (max-width: 480px) {
  .auth-password-field.is-pw-help-visible .auth-pw-checklist {
    gap: 4px;
  }

  .auth-pw-rule {
    gap: 4px;
    font-size: 0.64rem;
  }

  .auth-pw-rule-icon {
    font-size: 14px;
  }
.auth-page-two-factor .auth-window-head-actions {
    top: -12px;
  }

  .auth-page-two-factor .auth-window-copy:not(.auth-trust-device-copy) {
    font-size: 0.92rem;
  }

  .auth-page-two-factor .auth-trust-device-form .auth-window-copy {
    font-size: clamp(0.66rem, 3.15vw, 0.92rem);
  }

  .auth-page-two-factor .auth-trust-device-form .auth-trust-device-copy .material-symbols-rounded {
    transform: translateX(-4px);
  }

  .auth-page-two-factor .otp-grid {
    gap: 6px;
  }
}