:root {
  --auth-bg: #ffffff;
  --auth-surface: #ffffff;
  --auth-surface-soft: #fbfbfc;
  --auth-line: #d9dee4;
  --auth-line-soft: #e8ebef;
  --auth-ink: #1d1f23;
  --auth-soft: #5b616d;
  --auth-muted: #7a808a;
  --auth-red: #c4152c;
  --auth-red-deep: #a51125;
  --auth-red-soft: #fff3f4;
  --auth-shadow: 0 22px 44px rgba(17, 24, 39, 0.08);
  --auth-shadow-strong: 0 28px 52px rgba(17, 24, 39, 0.16);
}

/* Remove all border radius on login UI */
.auth-clean-page,
.auth-clean-page * {
  border-radius: 0 !important;
}

#loginModal,
#loginModal * {
  border-radius: 0 !important;
}

.login-modal-email {
  padding: 10px 12px;
  border: 1px solid var(--auth-border);
  background: var(--auth-surface);
  font-size: 14px;
  color: var(--auth-text);
}

.login-modal-code-actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--auth-muted);
}

.login-modal-link {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  color: var(--auth-accent);
  cursor: pointer;
}

.login-modal-otp {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.login-modal-otp-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  border: 0;
  padding: 0;
  margin: 0;
  z-index: 2;
}

.login-modal-otp-cell {
  height: 52px;
  border: 1px solid var(--auth-border);
  background: var(--auth-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--auth-text);
}

.login-modal-otp-cell.is-active {
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12);
}

.auth-clean-page {
  --auth-bg: #ffffff;
  --auth-surface: #ffffff;
  --auth-surface-soft: #fbfbfc;
  --auth-line: #d9dee4;
  --auth-line-soft: #e8ebef;
  --auth-ink: #1d1f23;
  --auth-soft: #5b616d;
  --auth-muted: #7a808a;
  --auth-red: #c4152c;
  --auth-red-deep: #a51125;
  --auth-red-soft: #fff3f4;
  --auth-shadow: 0 22px 44px rgba(17, 24, 39, 0.08);
  --auth-shadow-strong: 0 28px 52px rgba(17, 24, 39, 0.16);
}

.auth-clean-page main {
  margin: 0;
  padding: 32px 0 64px;
  min-height: 72vh;
  background:
    radial-gradient(circle at top left, rgba(196, 21, 44, 0.05), transparent 18%),
    radial-gradient(circle at top right, rgba(196, 21, 44, 0.03), transparent 16%),
    linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%);
}

.auth-clean-page .site-nav,
.auth-clean-page .site-footer {
  background: #ffffff;
}

.auth-clean-section {
  width: min(100%, calc(100% - 24px));
  margin: 0 auto;
}

.auth-clean-shell {
  width: min(480px, 100%);
  margin: 0 auto;
  background: var(--auth-surface);
  border: 1px solid var(--auth-line);
  box-shadow: var(--auth-shadow);
}

.auth-clean-shell--signup {
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  align-items: stretch;
  overflow: hidden;
}

.auth-clean-shell--signup-full {
  grid-template-columns: minmax(0, 1fr);
}

.auth-clean-shell--wide {
  width: min(560px, 100%);
}

.auth-clean-card {
  padding: 28px 30px 26px;
}

.auth-clean-shell--signup .auth-clean-card {
  padding: 34px 36px 30px;
}

.auth-clean-shell--signup-full .auth-clean-card {
  width: 100%;
  max-width: none;
}

.auth-clean-signup-visual {
  position: relative;
  min-height: 760px;
  background: #121418;
  overflow: hidden;
}

.auth-clean-signup-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.8) saturate(1.02);
}

.auth-clean-signup-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 14, 18, 0.12) 0%, rgba(10, 14, 18, 0.26) 32%, rgba(10, 14, 18, 0.76) 100%),
    linear-gradient(135deg, rgba(196, 21, 44, 0.18) 0%, rgba(196, 21, 44, 0.02) 48%, rgba(10, 14, 18, 0.08) 100%);
}

.auth-clean-signup-content {
  position: absolute;
  right: 34px;
  bottom: 36px;
  left: 34px;
  z-index: 1;
  color: #ffffff;
}

.auth-clean-signup-kicker {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.auth-clean-signup-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.auth-clean-signup-copy {
  max-width: 540px;
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.84);
}

.auth-clean-signup-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.auth-clean-signup-points span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.auth-clean-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--auth-ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}

.auth-clean-brand-mark {
  width: 10px;
  height: 10px;
  background: var(--auth-red);
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(196, 21, 44, 0.12);
}

.auth-clean-eyebrow,
.auth-clean-card-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--auth-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-clean-eyebrow::before,
.auth-clean-card-eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: currentColor;
}

.auth-clean-hero,
.auth-clean-card-title,
.auth-clean-success-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(31px, 4.4vw, 38px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--auth-ink);
}

.auth-clean-hero span,
.auth-clean-card-title span,
.auth-clean-success-title span {
  color: var(--auth-red);
}

.auth-clean-copy,
.auth-clean-card-copy,
.auth-clean-support,
.auth-clean-microcopy,
.auth-clean-help,
.auth-clean-subcopy,
.auth-clean-list-note,
.auth-clean-note,
.auth-clean-footer-note {
  color: var(--auth-soft);
  font-size: 14px;
  line-height: 1.68;
}

.auth-clean-card-copy,
.auth-clean-copy {
  margin: 0;
}

.auth-clean-step-tag {
  margin: 0 0 10px;
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(208, 0, 0, 0.08);
  color: var(--auth-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-clean-onboarding-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-clean-onboarding-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-clean-onboarding-step {
  border: 1px solid var(--auth-line);
  background: #fff;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.auth-clean-onboarding-step.is-open {
  border-color: rgba(196, 21, 44, 0.28);
  box-shadow: 0 16px 34px rgba(17, 17, 17, 0.04);
}

.auth-clean-onboarding-step.is-complete {
  border-color: rgba(23, 128, 89, 0.22);
  background: linear-gradient(180deg, rgba(248, 253, 250, 0.88) 0%, #fff 100%);
}

.auth-clean-onboarding-step.is-locked {
  background: #fbfbfc;
  border-style: dashed;
}

.auth-clean-onboarding-head {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 18px 18px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
  text-align: left;
}

.auth-clean-onboarding-step-no {
  min-width: 58px;
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(196, 21, 44, 0.08);
  color: var(--auth-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-clean-onboarding-head-main {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.auth-clean-onboarding-title {
  color: var(--auth-ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.auth-clean-onboarding-copy {
  color: var(--auth-soft);
  font-size: 13px;
  line-height: 1.6;
}

.auth-clean-onboarding-state {
  color: var(--auth-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-clean-onboarding-step.is-complete .auth-clean-onboarding-state {
  color: #178059;
}

.auth-clean-onboarding-step.is-open .auth-clean-onboarding-state {
  color: var(--auth-red);
}

.auth-clean-onboarding-body {
  padding: 0 18px 18px;
  border-top: 1px solid var(--auth-line);
}

.auth-clean-payment-lock-note,
.auth-clean-payment-loader,
.auth-clean-payment-status {
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.7;
}

.auth-clean-payment-lock-note,
.auth-clean-payment-loader {
  background: #faf6f6;
  border: 1px solid var(--auth-line);
  color: var(--auth-soft);
}

.auth-clean-payment-status {
  margin-bottom: 14px;
  background: rgba(196, 21, 44, 0.08);
  border: 1px solid rgba(196, 21, 44, 0.18);
  color: var(--auth-red-deep);
}

.auth-clean-payment-fallback {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.auth-clean-payment-fallback-copy {
  margin: 0;
  color: var(--auth-soft);
  font-size: 12px;
  line-height: 1.7;
}

.auth-clean-payment-mount {
  min-height: 640px;
}

.auth-clean-note,
.auth-clean-microcopy {
  font-size: 12px;
}

.auth-clean-alert,
.auth-clean-notice {
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(196, 21, 44, 0.26);
  background: var(--auth-red-soft);
}

.auth-clean-notice {
  border-color: var(--auth-line);
  background: var(--auth-surface-soft);
}

.auth-clean-alert p,
.auth-clean-notice p,
.auth-clean-alert li,
.auth-clean-notice li {
  margin: 0;
  color: var(--auth-red-deep);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.58;
}

.auth-clean-notice p,
.auth-clean-notice li {
  color: var(--auth-soft);
}

.auth-clean-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.auth-clean-field {
  margin: 0;
}

.auth-clean-field label {
  display: block;
  margin: 0 0 7px;
  color: var(--auth-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-clean-field input,
.auth-clean-field select,
.auth-clean-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid var(--auth-line);
  background: #ffffff;
  color: var(--auth-ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  border-radius: 0;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-clean-field input:focus,
.auth-clean-field select:focus,
.auth-clean-field textarea:focus,
.login-modal-field input:focus {
  border-color: var(--auth-red);
  box-shadow: 0 0 0 3px rgba(196, 21, 44, 0.08);
}

.auth-clean-field .form-error,
.form-error {
  margin: 8px 0 0;
  color: #c20017;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.auth-clean-field.auth-field-has-errors input,
.auth-clean-field.auth-field-has-errors select,
.auth-clean-field.auth-field-has-errors textarea {
  border-color: var(--auth-red);
}

.auth-clean-consent-wrap {
  margin-top: 2px;
}

.auth-clean-consent-label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}

.auth-clean-consent-control {
  position: relative;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-clean-consent-control input[type="checkbox"] {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.auth-clean-consent-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid #cfd5dc;
  background: #ffffff;
  color: transparent;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.auth-clean-consent-box svg {
  width: 12px;
  height: 10px;
  display: block;
}

.auth-clean-consent-control input[type="checkbox"]:focus + .auth-clean-consent-box {
  border-color: var(--auth-red);
  box-shadow: 0 0 0 3px rgba(196, 21, 44, 0.1);
}

.auth-clean-consent-control input[type="checkbox"]:checked + .auth-clean-consent-box {
  border-color: var(--auth-red);
  background: var(--auth-red);
  color: #ffffff;
}

.auth-clean-consent-copy {
  display: block;
  color: var(--auth-soft);
  font-size: 12px;
  line-height: 1.55;
}

.auth-clean-consent-copy a,
.auth-clean-footer-note a,
.auth-clean-inline-link,
.auth-clean-support a,
.login-modal-create a,
.login-modal-subtitle a {
  color: var(--auth-red);
  font-weight: 700;
  text-decoration: none;
}

.auth-clean-consent-copy a:hover,
.auth-clean-footer-note a:hover,
.auth-clean-inline-link:hover,
.auth-clean-support a:hover,
.login-modal-create a:hover,
.login-modal-subtitle a:hover {
  color: var(--auth-red-deep);
}

.auth-clean-actions {
  display: grid;
  gap: 10px;
}

.auth-clean-btn,
.auth-clean-link-btn,
.login-modal-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  width: 100%;
  padding: 0 18px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--auth-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.auth-clean-btn:hover,
.auth-clean-link-btn:hover,
.login-modal-submit:hover {
  transform: translateY(-1px);
}

.auth-clean-btn-primary,
.login-modal-submit {
  background: var(--auth-red);
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(196, 21, 44, 0.16);
}

.auth-clean-btn-primary:hover,
.login-modal-submit:hover {
  background: var(--auth-red-deep);
}

.auth-clean-btn-secondary {
  background: #ffffff;
  border-color: var(--auth-line);
  color: var(--auth-ink);
}

.auth-clean-btn-secondary:hover {
  border-color: var(--auth-red);
  color: var(--auth-red);
}

.auth-clean-divider {
  height: 1px;
  margin: 18px 0;
  background: linear-gradient(90deg, transparent 0%, var(--auth-line-soft) 14%, var(--auth-line-soft) 86%, transparent 100%);
}

.auth-clean-stack {
  display: grid;
  gap: 16px;
}

.auth-clean-status-card {
  padding: 18px 20px;
  border: 1px solid var(--auth-line);
  background: var(--auth-surface-soft);
}

.auth-clean-status-card h3 {
  margin: 0 0 8px;
  color: var(--auth-ink);
  font-size: 18px;
  font-weight: 700;
}

.auth-clean-status-card p {
  margin: 0;
}

.auth-clean-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.auth-clean-list-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
}

.auth-clean-list-mark {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  background: var(--auth-red-soft);
  color: var(--auth-red);
  font-size: 10px;
  font-weight: 800;
}

.auth-clean-email {
  display: block;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--auth-line);
  background: var(--auth-surface-soft);
  color: var(--auth-ink);
  font-size: 14px;
  font-weight: 700;
  word-break: break-word;
}

.auth-clean-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.auth-clean-meta-item {
  padding: 12px;
  border: 1px solid var(--auth-line);
  background: #ffffff;
}

.auth-clean-meta-item span {
  display: block;
  margin-bottom: 4px;
  color: var(--auth-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-clean-meta-item strong {
  display: block;
  color: var(--auth-ink);
  font-size: 14px;
  font-weight: 800;
  word-break: break-word;
}

.auth-clean-code-raw {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

.auth-clean-otp {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.auth-clean-otp-cell {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 0;
  border: 1px solid var(--auth-line);
  background: #ffffff;
  color: var(--auth-ink);
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  outline: none;
  border-radius: 0;
}

.auth-clean-otp-cell:focus {
  border-color: var(--auth-red);
  box-shadow: 0 0 0 3px rgba(196, 21, 44, 0.08);
}

.auth-clean-footnote {
  margin-top: 14px;
  color: var(--auth-muted);
  font-size: 12px;
  line-height: 1.6;
}

.auth-clean-inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--auth-soft);
  font-size: 13px;
  line-height: 1.55;
}

.auth-clean-inline-actions a,
.auth-clean-inline-actions button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--auth-red);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.auth-clean-inline-actions a:hover,
.auth-clean-inline-actions button:hover {
  color: var(--auth-red-deep);
}

.auth-clean-inline-form {
  display: inline;
  margin: 0;
}

.auth-clean-change-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--auth-line-soft);
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 1650;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 12, 16, 0.84);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.login-modal[hidden] {
  display: none !important;
}

.login-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.login-modal-card {
  width: min(460px, calc(100vw - 18px));
  background: #ffffff;
  border: 1px solid var(--auth-line);
  box-shadow: var(--auth-shadow-strong);
  border-radius: 20px;
  padding: 28px 24px 24px;
  position: relative;
  font-family: var(--font-body);
}

.login-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--auth-line-soft);
  border-radius: 999px;
  background: #ffffff;
  color: var(--auth-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.login-modal-close:hover {
  color: var(--auth-ink);
  border-color: var(--auth-line);
  background: var(--auth-surface-soft);
}

.login-modal-kicker {
  margin: 0 0 12px;
  color: var(--auth-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-modal-title {
  margin: 0 0 8px;
  color: var(--auth-ink);
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 36px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.login-modal-subtitle,
.login-modal-code-note,
.login-modal-create {
  color: var(--auth-soft);
  font-size: 13px;
  line-height: 1.6;
}

.login-modal-subtitle {
  margin: 0 0 18px;
}

.login-modal-code-note {
  margin: 0;
}

.login-modal-field {
  margin-bottom: 12px;
}

.login-modal-field label {
  display: block;
  margin: 0 0 7px;
  color: var(--auth-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.login-modal-field input {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid var(--auth-line);
  background: #ffffff;
  color: var(--auth-ink);
  font-size: 15px;
  border-radius: 12px;
  outline: none;
}

.login-modal-error {
  margin: 12px 0 0;
  padding: 11px 12px;
  border: 1px solid rgba(196, 21, 44, 0.26);
  background: var(--auth-red-soft);
  color: var(--auth-red-deep);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.login-modal-submit {
  margin-top: 14px;
  border-radius: 12px;
}

.login-modal-submit:disabled {
  opacity: 0.78;
  cursor: wait;
}

.login-modal-submit i {
  font-style: normal;
  font-size: 14px;
}

.login-modal-create {
  margin: 16px 0 0;
  text-align: center;
}

.login-modal .auth-clean-brand {
  margin-bottom: 18px;
  font-size: 12px;
}

.login-modal .auth-clean-brand-mark {
  width: 9px;
  height: 9px;
}

@media (max-width: 640px) {
  .auth-clean-page main {
    padding: 18px 0 40px;
  }

  .auth-clean-section {
    width: min(100%, calc(100% - 16px));
  }

  .auth-clean-card {
    padding: 22px 18px 20px;
  }

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

  .login-modal-card {
    width: calc(100vw - 16px);
    padding: 24px 16px 18px;
    border-radius: 18px;
  }

  .auth-clean-onboarding-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .auth-clean-onboarding-step-no {
    min-width: 0;
    width: fit-content;
  }

  .auth-clean-onboarding-body {
    padding: 0 14px 14px;
  }

  .auth-clean-payment-mount {
    min-height: 560px;
  }
}

@media (max-width: 980px) {
  .auth-clean-shell--signup {
    grid-template-columns: 1fr;
  }

  .auth-clean-signup-visual {
    min-height: 360px;
  }

  .auth-clean-signup-content {
    right: 22px;
    bottom: 24px;
    left: 22px;
  }

  .auth-clean-shell--signup .auth-clean-card {
    padding: 26px 24px 22px;
  }
}

@media (max-width: 640px) {
  .auth-clean-signup-visual {
    min-height: 300px;
  }

  .auth-clean-signup-title {
    font-size: clamp(28px, 8vw, 36px);
  }

  .auth-clean-signup-copy {
    font-size: 14px;
    line-height: 1.62;
  }

  .auth-clean-signup-points {
    gap: 8px;
  }

  .auth-clean-signup-points span {
    min-height: 30px;
    padding: 0 10px;
    font-size: 10px;
  }
}

/* Login modal redesign */
.login-modal {
  position: fixed;
  inset: 0;
  z-index: 1650;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(13, 13, 13, 0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  overflow: hidden;
}

.login-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(200, 16, 46, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 30%, rgba(200, 16, 46, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.login-modal::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.login-modal[hidden] {
  display: none !important;
}

.login-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.login-modal-card {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border: 0;
  box-shadow: 0 28px 52px rgba(0, 0, 0, 0.24);
  position: relative;
  overflow: hidden;
  font-family: "DM Sans", system-ui, sans-serif;
  animation: loginModalIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes loginModalIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-modal-accent {
  height: 4px;
  width: 100%;
  background: #c8102e;
}

.login-modal-body {
  position: relative;
  z-index: 1;
  padding: 40px 44px 44px;
}

.login-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c8c8c8;
  background: transparent;
  color: #888888;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.login-modal-close svg {
  width: 14px;
  height: 14px;
}

.login-modal-close:hover {
  border-color: #0d0d0d;
  color: #0d0d0d;
  background: #f4f4f4;
}

.login-modal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
  color: #c8102e;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-modal-kicker::before {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.login-modal-title {
  margin: 0 0 14px;
  max-width: 340px;
  color: #0d0d0d;
  font-family: "Playfair Display", serif;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
}

.login-modal-subtitle,
.login-modal-code-note,
.login-modal-create,
.login-modal-code-actions {
  color: #555555;
  font-size: 14px;
  line-height: 1.65;
}

.login-modal-subtitle {
  margin: 0 0 32px;
  max-width: 340px;
}

.login-modal-code-note {
  margin: 10px 0 0;
  color: #888888;
  font-size: 12.5px;
  line-height: 1.6;
}

.login-modal-field {
  margin-bottom: 10px;
}

.login-modal-field label {
  display: block;
  margin: 0 0 8px;
  color: #555555;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.login-modal-input-wrap {
  position: relative;
}

.login-modal-input-line {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #c8102e;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-modal-field input {
  width: 100%;
  height: 52px;
  min-height: 52px;
  padding: 0 16px;
  border: 1.5px solid #c8c8c8;
  background: #ffffff;
  color: #0d0d0d;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 15px;
  outline: none;
  appearance: none;
}

.login-modal-field input::placeholder {
  color: #c8c8c8;
}

.login-modal-field input:focus {
  border-color: #0d0d0d;
  box-shadow: none;
}

.login-modal-field input:focus + .login-modal-input-line {
  transform: scaleX(1);
}

.login-modal-email {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border: 1.5px solid #c8c8c8;
  background: #f4f4f4;
  color: #0d0d0d;
  font-size: 15px;
  line-height: 1.4;
  word-break: break-word;
}

.login-modal-error {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(200, 16, 46, 0.28);
  background: #fdf0f2;
  color: #9e0b22;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.login-modal-submit {
  width: 100%;
  height: 54px;
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 0;
  background: #c8102e;
  color: #ffffff;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: none;
  transition: background 0.2s ease;
}

.login-modal-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.login-modal-submit:hover {
  background: #9e0b22;
  transform: none;
}

.login-modal-submit:hover::before {
  transform: translateX(100%);
}

.login-modal-submit:disabled {
  opacity: 0.78;
  cursor: wait;
}

.login-modal-submit-arrow {
  position: relative;
  z-index: 1;
  font-size: 18px;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.login-modal-submit:hover .login-modal-submit-arrow {
  transform: translateX(4px);
}

.login-modal-submit > span:first-child {
  position: relative;
  z-index: 1;
}

.login-modal-create {
  margin: 22px 0 0;
  text-align: center;
  color: #888888;
  font-size: 13.5px;
}

.login-modal-create a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.login-modal-create a,
.login-modal-link {
  color: #c8102e;
  font-weight: 600;
  text-decoration: none;
}

.login-modal-create a:hover,
.login-modal-link:hover {
  color: #9e0b22;
}

.login-modal-create a:hover {
  border-color: #c8102e;
}

.login-modal-otp {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  cursor: text;
}

.login-modal-otp-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  border: 0 !important;
  padding: 0;
  margin: 0;
  z-index: 2;
}

.login-modal-otp-cell {
  min-width: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #c8c8c8;
  background: #ffffff;
  color: #0d0d0d;
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
}

.login-modal-otp-cell:not(:empty) {
  border-color: #0d0d0d;
}

.login-modal-otp-cell.is-active {
  border-color: #c8102e;
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.08);
}

.login-modal-code-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  color: #888888;
  font-size: 13px;
}

.login-modal-link {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.login-modal-corner-mark {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 80px;
  height: 80px;
  opacity: 0.06;
  pointer-events: none;
}

@media (max-width: 520px) {
  .login-modal {
    padding: 16px;
  }

  .login-modal-card {
    width: min(100%, calc(100vw - 32px));
  }

  .login-modal-body {
    padding: 32px 28px 36px;
  }

  .login-modal-close {
    top: 16px;
    right: 16px;
  }

  .login-modal-title {
    font-size: 28px;
  }

  .login-modal-subtitle {
    margin-bottom: 24px;
  }

  .login-modal-field input,
  .login-modal-email {
    height: 50px;
    min-height: 50px;
    font-size: 16px;
  }

  .login-modal-otp {
    gap: 6px;
  }

  .login-modal-otp-cell {
    height: 52px;
    font-size: 20px;
  }

  .login-modal-submit {
    height: 52px;
    margin-top: 24px;
  }
}

/* Exact login modal reference styling */
#loginModal.login-modal.overlay {
  background: #0d0d0d;
  min-height: 100vh;
  padding: 24px;
  align-items: center;
  justify-content: center;
}

#loginModal.login-modal.overlay::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(200, 16, 46, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 30%, rgba(200, 16, 46, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

#loginModal.login-modal.overlay::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

#loginModal .login-modal-card.modal {
  background: #ffffff;
  width: 100%;
  max-width: 480px;
  position: relative;
  overflow: hidden;
  box-shadow: none;
  border: 0;
}

#loginModal .login-modal-accent.modal-accent {
  height: 4px;
  background: #c8102e;
  width: 100%;
}

#loginModal .login-modal-body.modal-body {
  padding: 40px 44px 44px;
}

#loginModal .login-modal-close.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  background: none;
  border: 1px solid #c8c8c8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888888;
  font-size: 16px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  z-index: 2;
}

#loginModal .login-modal-close.close-btn:hover {
  border-color: #0d0d0d;
  color: #0d0d0d;
  background: #f4f4f4;
}

#loginModal .login-modal-close svg {
  width: 14px;
  height: 14px;
}

#loginModal .login-modal-kicker.modal-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c8102e;
  margin-bottom: 16px;
}

#loginModal .login-modal-kicker.modal-tag::before {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: #c8102e;
}

#loginModal .login-modal-title.modal-heading {
  font-family: "Playfair Display", serif;
  font-size: 36px;
  font-weight: 800;
  color: #0d0d0d;
  line-height: 1.1;
  margin-bottom: 14px;
  max-width: none;
}

#loginModal .login-modal-subtitle.modal-sub {
  font-size: 14px;
  color: #555555;
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 340px;
}

#loginModal .login-modal-field.form-group {
  margin-bottom: 10px;
}

#loginModal .login-modal-field .form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555555;
  margin-bottom: 8px;
}

#loginModal .login-modal-input-wrap.input-wrapper {
  position: relative;
}

#loginModal .login-modal-field .form-input {
  width: 100%;
  height: 52px;
  border: 1.5px solid #c8c8c8;
  background: #ffffff;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  color: #0d0d0d;
  padding: 0 16px;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}

#loginModal .login-modal-field .form-input::placeholder {
  color: #c8c8c8;
}

#loginModal .login-modal-field .form-input:focus {
  border-color: #0d0d0d;
  box-shadow: none;
}

#loginModal .login-modal-input-line.input-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #c8102e;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#loginModal .login-modal-field .form-input:focus + .login-modal-input-line.input-line {
  transform: scaleX(1);
}

#loginModal .login-modal-code-note.form-hint {
  font-size: 12.5px;
  color: #888888;
  line-height: 1.6;
  margin-top: 10px;
  margin-bottom: 28px;
}

#loginModal .login-modal-submit.btn-submit {
  width: 100%;
  height: 54px;
  background: #c8102e;
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
  margin-top: 0;
}

#loginModal .login-modal-submit.btn-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

#loginModal .login-modal-submit.btn-submit:hover {
  background: #9e0b22;
}

#loginModal .login-modal-submit.btn-submit:hover::before {
  transform: translateX(100%);
}

#loginModal .login-modal-submit .btn-arrow {
  font-size: 18px;
  font-weight: 400;
  transition: transform 0.2s;
}

#loginModal .login-modal-submit:hover .btn-arrow {
  transform: translateX(4px);
}

#loginModal .login-modal-create.modal-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 13.5px;
  color: #888888;
}

#loginModal .login-modal-create.modal-footer a {
  color: #c8102e;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

#loginModal .login-modal-create.modal-footer a:hover {
  border-color: #c8102e;
}

#loginModal .login-modal-corner-mark.corner-mark {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80px;
  height: 80px;
  pointer-events: none;
  opacity: 0.06;
}

#loginModal .login-modal-email.form-input {
  display: flex;
  align-items: center;
}

@media (max-width: 520px) {
  #loginModal .login-modal-body.modal-body {
    padding: 32px 28px 36px;
  }

  #loginModal .login-modal-title.modal-heading {
    font-size: 28px;
  }
}
