/*
 * PD Cash adaptive small-device layer.
 * Keeps the glass hierarchy while avoiding large live blur surfaces on mobile GPUs.
 */

.auth-pdcash .auth-card-body {
  padding: 2rem;
}

@media (max-width: 600px) {
  /* Lightweight glass: preserve depth with paint-only layers instead of backdrop blur. */
  .hero-badge,
  .hero-visual .hero-route-card {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .hero-badge {
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 55%),
      #0b110e !important;
  }

  .hero-visual .hero-route-card {
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.075), transparent 42%),
      linear-gradient(180deg, #0d1511, #09100d) !important;
    border-color: rgba(193, 213, 201, 0.16) !important;
    box-shadow:
      0 18px 44px rgba(0, 0, 0, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
  }

  .cta-title {
    animation: none !important;
  }

  body:not(.auth-pdcash) main .btn,
  body:not(.auth-pdcash) main .feature-card,
  body:not(.auth-pdcash) main .integration-card,
  body:not(.auth-pdcash) main .byok-card,
  body:not(.auth-pdcash) main .orch-feature-card,
  body:not(.auth-pdcash) main .payment-link-step {
    transition-duration: 120ms !important;
  }

  /* One compact, scannable menu language across landing and auth pages. */
  .mobile-menu {
    min-height: 100dvh;
    padding:
      max(14px, env(safe-area-inset-top))
      max(16px, env(safe-area-inset-right))
      max(16px, env(safe-area-inset-bottom))
      max(16px, env(safe-area-inset-left)) !important;
    background:
      linear-gradient(145deg, rgba(0, 214, 50, 0.045), transparent 36%),
      #070b09 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    overscroll-behavior: contain;
  }

  .mobile-menu-header {
    position: sticky;
    top: 0;
    z-index: 2;
    min-height: 54px;
    margin-bottom: 10px !important;
    padding-bottom: 10px !important;
    background: #070b09;
    border-bottom-color: rgba(255, 255, 255, 0.09) !important;
  }

  .mobile-menu-close {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 8px !important;
    transform: none !important;
  }

  .mobile-menu-links {
    flex: 0 0 auto !important;
    gap: 2px !important;
  }

  .mobile-menu-link {
    min-height: 50px !important;
    padding: 7px 8px !important;
    gap: 10px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 6px !important;
    font-size: 1rem !important;
    line-height: 1.2;
    letter-spacing: 0 !important;
  }

  .mobile-menu-link::before {
    display: none !important;
  }

  .mobile-menu-link:hover,
  .mobile-menu-link:active {
    padding-left: 8px !important;
    background: rgba(255, 255, 255, 0.045) !important;
  }

  .mobile-menu-link i {
    width: 28px !important;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    border: 1px solid rgba(0, 214, 50, 0.15);
    border-radius: 6px;
    background: rgba(0, 214, 50, 0.075);
    color: #70df82 !important;
    font-size: 0.8rem !important;
    opacity: 1 !important;
  }

  .mobile-menu-cta {
    margin-top: auto !important;
    padding-top: 12px !important;
    gap: 8px !important;
  }

  .mobile-menu-cta .btn {
    min-height: 48px;
    padding: 0.72rem 1rem !important;
    border-radius: 8px !important;
  }

  .mobile-menu.active .mobile-menu-link,
  .mobile-menu.active .mobile-menu-cta {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  /* Auth-specific mobile shell. */
  body.auth-pdcash {
    scroll-padding-bottom: max(5rem, 18dvh);
  }

  body.auth-pdcash.auth-register-page > .w-full {
    align-items: flex-start !important;
    padding-top: 5rem !important;
    padding-bottom: 4.5rem !important;
  }

  .auth-pdcash .auth-card {
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.065), transparent 40%),
      linear-gradient(180deg, #0d1410, #090e0b) !important;
    border-color: rgba(193, 213, 201, 0.15) !important;
    border-radius: 12px !important;
    box-shadow:
      0 14px 40px rgba(0, 0, 0, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.065) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .auth-pdcash .auth-card::before {
    background: linear-gradient(125deg, rgba(0, 214, 50, 0.095), transparent 34%) !important;
    opacity: 0.9 !important;
  }

  .auth-pdcash .auth-card-body {
    padding: 1.25rem !important;
  }

  .auth-pdcash .auth-card-body > .text-center.mb-6 {
    margin-bottom: 1rem !important;
  }

  .auth-pdcash .auth-icon-bg {
    width: 52px;
    height: 52px;
    margin-bottom: 0.75rem !important;
    border-radius: 12px !important;
    box-shadow:
      0 10px 24px rgba(0, 214, 50, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  }

  .auth-pdcash .auth-card .btn-primary {
    box-shadow: 0 10px 24px rgba(0, 214, 50, 0.16) !important;
  }

  .auth-pdcash .register-progress-panel {
    border-radius: 8px;
  }

  .auth-pdcash .register-step-indicator {
    border-radius: 6px;
  }
}

@media (max-width: 360px) {
  .auth-pdcash .auth-card-body {
    padding: 1rem !important;
  }

  .auth-pdcash .login-mode-tabs a {
    min-width: 0;
    padding: 0.75rem 0.45rem !important;
  }

  .auth-pdcash .register-step-connector {
    width: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu *,
  .auth-pdcash .auth-card *,
  body:not(.auth-pdcash) main * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .auth-pdcash .auth-card,
  .hero-badge,
  .hero-visual .hero-route-card,
  .mobile-menu {
    background: #0b110e !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

/*
 * PD Cash auth refinement.
 * The auth page gets a compact task-focused shell; all selectors remain host scoped.
 */
.auth-pdcash {
  --auth-surface: rgba(10, 15, 12, 0.94);
  --auth-surface-raised: #101713;
  --auth-border: rgba(210, 225, 216, 0.14);
  --auth-border-strong: rgba(210, 225, 216, 0.22);
  --auth-muted: rgba(232, 239, 235, 0.62);
  --auth-green: #52d465;
}

.auth-pdcash .nav {
  min-height: 64px;
  height: 64px;
  background: rgba(5, 8, 6, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.auth-pdcash .nav-container {
  width: min(100%, 1080px);
  min-height: 64px;
  height: 64px;
  padding: 0 20px;
}

.auth-pdcash .nav-logo {
  min-width: 0;
  gap: 10px;
  letter-spacing: 0;
}

.auth-pdcash .nav-logo-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 8px;
  box-shadow: none;
}

.auth-pdcash .brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
  letter-spacing: 0;
}

.auth-pdcash .nav-links,
.auth-pdcash .nav-mobile-toggle,
.auth-pdcash .mobile-menu {
  display: none !important;
}

.auth-pdcash .nav-cta {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin-left: 0;
}

.auth-pdcash .nav-cta::before {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
  white-space: nowrap;
}

.auth-pdcash.auth-register-page .nav-cta::before {
  content: "Already registered?";
}

.auth-pdcash.auth-login-page .nav-cta::before {
  content: "New to PD Cash?";
}

.auth-pdcash.auth-register-page .nav-cta .btn-primary,
.auth-pdcash.auth-login-page .nav-cta .btn-ghost {
  display: none !important;
}

.auth-pdcash .nav-cta .btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  line-height: 1;
  box-shadow: none;
}

.auth-pdcash > .w-full {
  align-items: flex-start !important;
  padding-top: 84px !important;
  padding-bottom: 32px !important;
}

.auth-pdcash.auth-register-page > .w-full {
  max-width: 940px !important;
}

.auth-pdcash.auth-login-page > .w-full {
  max-width: 510px !important;
}

.auth-pdcash .auth-card {
  overflow: hidden;
  border: 1px solid var(--auth-border) !important;
  border-radius: 8px !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 40%),
    var(--auth-surface) !important;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.auth-pdcash .auth-card::before {
  display: none !important;
}

.auth-pdcash .auth-card-body {
  padding: 24px !important;
}

.auth-pdcash .auth-card-body > .text-center.mb-6 {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  text-align: left;
  margin-bottom: 18px !important;
}

.auth-pdcash .auth-icon-bg {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 44px;
  height: 44px;
  margin: 0 !important;
  border-radius: 8px !important;
  font-size: 1rem;
  box-shadow: none !important;
}

.auth-pdcash .auth-card-body > .text-center.mb-6 h1 {
  grid-column: 2;
  grid-row: 1;
  margin: 0 !important;
  align-self: end;
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.auth-pdcash .auth-card-body > .text-center.mb-6 p {
  grid-column: 2;
  grid-row: 2;
  margin: 2px 0 0 !important;
  align-self: start;
  color: var(--auth-muted) !important;
  font-size: 0.78rem;
  line-height: 1.3;
}

.auth-pdcash .auth-card-body > .text-center.mb-6 > div:last-child:not(.auth-icon-bg),
.auth-pdcash .login-mode-tabs {
  display: none !important;
}

.auth-pdcash .register-progress-panel {
  margin: 0 0 18px;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0;
  background: transparent;
}

.auth-pdcash .register-progress-panel > .flex {
  gap: 10px;
}

.auth-pdcash .register-step-indicator {
  flex: 0 1 auto;
  min-width: 0;
  min-height: 34px;
  gap: 8px;
  padding: 3px 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.46);
}

.auth-pdcash .register-step-indicator > span:first-child {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.7rem;
}

.auth-pdcash .register-step-indicator strong {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0;
}

.auth-pdcash .register-step-indicator small,
.auth-pdcash .register-progress-track {
  display: none !important;
}

.auth-pdcash .register-step-indicator.is-active,
.auth-pdcash .register-step-indicator.is-complete {
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
}

.auth-pdcash .register-step-indicator.is-active > span:first-child,
.auth-pdcash .register-step-indicator.is-complete > span:first-child {
  border-color: var(--auth-green);
  background: var(--auth-green);
  color: #061008;
}

.auth-pdcash .register-step-connector {
  width: clamp(16px, 5vw, 52px);
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.auth-pdcash #registerForm,
.auth-pdcash #loginForm {
  min-width: 0;
}

.auth-pdcash .auth-card label {
  margin-bottom: 6px !important;
  color: rgba(244, 248, 246, 0.78) !important;
  line-height: 1.25;
  letter-spacing: 0;
}

.auth-pdcash .auth-card input[type="text"],
.auth-pdcash .auth-card input[type="email"],
.auth-pdcash .auth-card input[type="password"],
.auth-pdcash .auth-card input[type="number"],
.auth-pdcash .auth-card input[type="tel"],
.auth-pdcash .auth-card select,
.auth-pdcash .auth-card textarea {
  min-height: 50px;
  border-color: var(--auth-border) !important;
  border-radius: 8px !important;
  background: rgba(1, 4, 2, 0.68) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025) !important;
}

.auth-pdcash .auth-card input:focus,
.auth-pdcash .auth-card select:focus,
.auth-pdcash .auth-card textarea:focus {
  border-color: var(--auth-green) !important;
  box-shadow: 0 0 0 3px rgba(82, 212, 101, 0.14) !important;
}

.auth-pdcash .auth-card input + button,
.auth-pdcash .auth-card .flex > button[aria-label*="visibility"] {
  min-width: 48px;
  border-radius: 0 8px 8px 0 !important;
  background: #111726 !important;
}

.auth-pdcash .auth-card .flex > input {
  min-width: 0;
}

.auth-pdcash .auth-card p.text-xs {
  line-height: 1.35;
  letter-spacing: 0;
}

.auth-pdcash .register-step-actions {
  margin-top: 18px !important;
}

.auth-pdcash .register-step-actions button,
.auth-pdcash .auth-card .btn,
.auth-pdcash .login-primary-btn {
  border-radius: 8px !important;
  box-shadow: none !important;
}

.auth-pdcash #registerNextBtn,
.auth-pdcash #registerSubmitBtn {
  min-width: min(100%, 220px);
}

.auth-pdcash .plan-card__inner,
.auth-pdcash [data-register-step="2"] > .bg-gray-900 {
  border-radius: 8px !important;
  letter-spacing: 0 !important;
}

.auth-pdcash .plan-card__name,
.auth-pdcash .plan-card__tag,
.auth-pdcash .plan-card__amt,
.auth-pdcash .plan-card__per,
.auth-pdcash .plan-card__tagline,
.auth-pdcash .plan-card__feat {
  letter-spacing: 0 !important;
}

.auth-pdcash .footer {
  padding-top: 18px;
  padding-bottom: 20px;
  padding-left: 20px;
  padding-right: 20px;
  border-top-color: rgba(255, 255, 255, 0.07);
}

/* Footer rail aligned with the 1080px nav rail (was 1200px, edges mismatched) */
.auth-pdcash .footer-container {
  max-width: 1080px;
  gap: 12px;
}

@media (min-width: 720px) {
  .auth-pdcash.auth-register-page .auth-card-body {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    column-gap: 26px;
    align-items: start;
  }

  .auth-pdcash.auth-register-page .auth-card-body > .text-center.mb-6 {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 4px 10px 0 2px;
    margin: 0 !important;
    text-align: left;
  }

  .auth-pdcash.auth-register-page .auth-card-body > .text-center.mb-6 .auth-icon-bg {
    margin-bottom: 16px !important;
  }

  .auth-pdcash.auth-register-page .auth-card-body > .text-center.mb-6 h1,
  .auth-pdcash.auth-register-page .auth-card-body > .text-center.mb-6 p {
    width: 100%;
  }

  .auth-pdcash.auth-register-page .auth-card-body > .text-center.mb-6 h1 {
    font-size: 1.45rem;
  }

  .auth-pdcash.auth-register-page .auth-card-body > .text-center.mb-6 p {
    margin-top: 7px !important;
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .auth-pdcash.auth-register-page .auth-card-body > #registerForm,
  .auth-pdcash.auth-register-page .auth-card-body > :not(.text-center):not(.login-mode-tabs):not(#registerForm) {
    grid-column: 2;
  }

  .auth-pdcash.auth-register-page #registerForm {
    margin-top: 0 !important;
  }

  .auth-pdcash.auth-register-page [data-register-step="1"] > .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 901px) {
  @supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
    .auth-pdcash .auth-card {
      background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 42%),
        rgba(10, 15, 12, 0.88) !important;
      -webkit-backdrop-filter: blur(10px) saturate(108%) !important;
      backdrop-filter: blur(10px) saturate(108%) !important;
    }
  }
}

@media (max-width: 719px) {
  .auth-pdcash .nav {
    min-height: 58px;
    height: 58px;
  }

  .auth-pdcash .nav-container {
    min-height: 58px;
    height: 58px;
    padding: 0 14px;
  }

  .auth-pdcash .nav-cta::before {
    display: none;
  }

  .auth-pdcash .nav-cta .btn {
    min-height: 38px;
    padding: 0 12px;
  }

  .auth-pdcash > .w-full,
  .auth-pdcash.auth-register-page > .w-full {
    padding: 72px 12px 28px !important;
  }

  .auth-pdcash .auth-card-body {
    padding: 16px !important;
  }

  .auth-pdcash .auth-card-body > .text-center.mb-6 {
    margin-bottom: 14px !important;
  }

  .auth-pdcash .register-progress-panel {
    margin-bottom: 14px;
    padding-bottom: 10px;
  }

  .auth-pdcash .register-step-actions {
    gap: 8px;
  }

  .auth-pdcash #registerNextBtn,
  .auth-pdcash #registerSubmitBtn {
    width: 100%;
    max-width: none;
  }

  .auth-pdcash [data-register-step="2"] > .bg-gray-900 {
    display: none !important;
  }

  .auth-pdcash .plan-card__inner {
    min-height: 0;
    gap: 5px;
    padding: 12px !important;
  }

  .auth-pdcash .plan-card__features,
  .auth-pdcash .plan-card__tagline {
    display: none !important;
  }

  .auth-pdcash .plan-card__amt {
    font-size: 1.1rem;
  }

  .auth-pdcash .footer-logo,
  .auth-pdcash .footer-link:nth-child(n + 3) {
    display: none !important;
  }

  .auth-pdcash .footer-links {
    gap: 12px;
  }
}

@media (max-width: 420px) {
  .auth-pdcash .brand-name {
    max-width: 148px;
    font-size: 0.82rem;
  }

  .auth-pdcash .nav-logo-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }

  .auth-pdcash .nav-cta .btn i {
    display: none;
  }

  .auth-pdcash .auth-card-body {
    padding: 14px !important;
  }

  .auth-pdcash .auth-card-body > .text-center.mb-6 {
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 10px;
  }

  .auth-pdcash .auth-icon-bg {
    width: 40px;
    height: 40px;
  }

  .auth-pdcash .auth-card-body > .text-center.mb-6 h1 {
    font-size: 1.08rem;
  }

  .auth-pdcash .register-progress-panel > .flex {
    gap: 6px;
  }

  .auth-pdcash .register-step-indicator {
    gap: 6px;
    padding-inline: 2px;
  }

  .auth-pdcash .register-step-connector {
    flex: 1 1 14px;
    min-width: 10px;
  }

  .auth-pdcash .auth-card input[type="text"],
  .auth-pdcash .auth-card input[type="email"],
  .auth-pdcash .auth-card input[type="password"],
  .auth-pdcash .auth-card input[type="number"],
  .auth-pdcash .auth-card input[type="tel"],
  .auth-pdcash .auth-card select,
  .auth-pdcash .auth-card textarea {
    font-size: 16px;
  }
}

@media (max-width: 340px) {
  .auth-pdcash .brand-name {
    max-width: 126px;
  }

  .auth-pdcash > .w-full,
  .auth-pdcash.auth-register-page > .w-full {
    padding-inline: 8px !important;
  }

  .auth-pdcash .auth-card-body {
    padding: 12px !important;
  }

  .auth-pdcash .register-step-indicator strong {
    font-size: 0.72rem;
  }
}

/* ===== PD Cash login split-hero (desktop >=900) — added 2026-07-14 ===== */
.auth-pdcash.auth-login-page .auth-hero { display: none; }

@media (min-width: 900px) {
  .auth-pdcash.auth-login-page > .w-full.auth-has-hero {
    max-width: 960px !important;
    display: grid !important;
    grid-template-columns: 1.02fr 0.98fr;
    align-items: stretch !important;
    gap: 0;
    padding-top: 96px !important;
    padding-bottom: 48px !important;
  }
  .auth-pdcash.auth-login-page .auth-has-hero .auth-hero {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 26px;
    padding: 34px 32px;
    border: 1px solid var(--auth-border);
    border-right: 0;
    border-radius: 14px 0 0 14px;
    background:
      radial-gradient(120% 90% at 0% 0%, rgba(82, 212, 101, 0.16), transparent 46%),
      linear-gradient(160deg, rgba(13, 20, 16, 0.96), rgba(7, 11, 9, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
  }
  .auth-pdcash.auth-login-page .auth-has-hero .auth-hero::after {
    content: "";
    position: absolute;
    right: -40%;
    bottom: -30%;
    width: 80%;
    height: 70%;
    background: radial-gradient(circle, rgba(82, 212, 101, 0.10), transparent 60%);
    pointer-events: none;
  }
  .auth-pdcash.auth-login-page .auth-has-hero .auth-card {
    border-radius: 0 14px 14px 0 !important;
  }
  .auth-pdcash.auth-login-page .auth-has-hero .auth-card-body {
    padding: 34px 32px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
  }
  .auth-hero__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: #fff; letter-spacing: 0.01em; position: relative; z-index: 1; }
  .auth-hero__logo { width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--auth-green); color: #061008; box-shadow: 0 8px 20px rgba(82, 212, 101, 0.28); }
  .auth-hero__main { position: relative; z-index: 1; }
  .auth-hero__title { font-size: 1.9rem; line-height: 1.15; font-weight: 750; color: #fff; letter-spacing: -0.02em; margin: 0 0 14px; text-wrap: balance; }
  .auth-hero__sub { font-size: 0.92rem; line-height: 1.6; color: var(--auth-muted); margin: 0; max-width: 38ch; }
  .auth-hero__list { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
  .auth-hero__list li { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; color: rgba(244, 248, 246, 0.9); }
  .auth-hero__list i { width: 30px; height: 30px; flex: 0 0 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: rgba(82, 212, 101, 0.12); border: 1px solid rgba(82, 212, 101, 0.22); color: var(--auth-green); font-size: 0.82rem; }
  .auth-hero__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.08); position: relative; z-index: 1; }
  .auth-hero__badges { display: inline-flex; align-items: center; gap: 14px; font-size: 1.35rem; color: rgba(255, 255, 255, 0.6); }
  .auth-hero__trust { display: inline-flex; align-items: center; gap: 7px; font-size: 0.76rem; color: var(--auth-muted); white-space: nowrap; }
  .auth-hero__trust i { color: var(--auth-green); }
}

/* ===== PD Cash auth Support action ===== */
.auth-pdcash .auth-pd-support-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin-left: auto;
  margin-right: 16px;
  padding: 5px 10px 5px 6px;
  color: rgba(232, 239, 235, 0.76);
  background-color: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.auth-pdcash .auth-pd-support-link i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(82, 212, 101, 0.22);
  border-radius: 8px;
  color: var(--auth-green);
  background: rgba(82, 212, 101, 0.11);
  font-size: 0.76rem;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.auth-pdcash .auth-pd-support-link:hover {
  color: #fff;
  background-color: rgba(82, 212, 101, 0.10);
  border-color: rgba(82, 212, 101, 0.35);
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.24), 0 0 18px rgba(82, 212, 101, 0.09);
  transform: translateY(-1px);
}
.auth-pdcash .auth-pd-support-link:hover i {
  color: #071109;
  background-color: var(--auth-green);
  border-color: var(--auth-green);
  box-shadow: 0 4px 12px rgba(82, 212, 101, 0.24);
  transform: scale(1.04);
}
.auth-pdcash .auth-pd-support-link:focus-visible {
  outline: none;
  color: #fff;
  border-color: rgba(82, 212, 101, 0.62);
  box-shadow: 0 0 0 3px rgba(82, 212, 101, 0.18), 0 8px 22px rgba(0, 0, 0, 0.24);
}
.auth-pdcash .auth-pd-support-link:active {
  transform: translateY(0) scale(0.98);
}
@media (max-width: 719px) { .auth-pdcash .auth-pd-support-link { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .auth-pdcash .auth-pd-support-link,
  .auth-pdcash .auth-pd-support-link i { transition: none; }
}
@media (prefers-reduced-motion: reduce) { .auth-pdcash.auth-login-page .auth-hero::after { display: none; } }

/* ===== PD Cash register desktop scale and balance ===== */
@media (min-width: 1024px) {
  body.auth-pdcash.auth-register-page {
    background-image:
      radial-gradient(70% 58% at 50% 15%, rgba(0, 214, 50, 0.065), transparent 68%),
      radial-gradient(36% 34% at 86% 82%, rgba(0, 214, 50, 0.035), transparent 72%);
    background-repeat: no-repeat;
  }

  body.auth-pdcash.auth-register-page > .w-full {
    max-width: min(1240px, calc(100vw - 64px)) !important;
    padding-top: 96px !important;
    padding-bottom: 48px !important;
  }

  body.auth-pdcash.auth-register-page .nav-container {
    width: min(100%, 1240px);
  }

  body.auth-pdcash.auth-register-page .footer-container {
    max-width: 1240px;
  }

  body.auth-pdcash.auth-register-page .auth-card {
    width: 100%;
    border-radius: 18px !important;
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.42) !important;
  }

  body.auth-pdcash.auth-register-page .auth-card-body {
    grid-template-columns: minmax(240px, 270px) minmax(0, 1fr);
    column-gap: 40px;
    padding: 40px !important;
  }

  body.auth-pdcash.auth-register-page .auth-card-body > .text-center.mb-6 {
    padding: 10px 26px 0 4px;
  }

  body.auth-pdcash.auth-register-page .auth-card-body > .text-center.mb-6 .auth-icon-bg {
    width: 50px;
    height: 50px;
    margin-bottom: 20px !important;
    font-size: 1.1rem;
  }

  body.auth-pdcash.auth-register-page .auth-card-body > .text-center.mb-6 h1 {
    font-size: 1.75rem;
    line-height: 1.12;
  }

  body.auth-pdcash.auth-register-page .auth-card-body > .text-center.mb-6 p {
    margin-top: 10px !important;
    font-size: 0.94rem;
    line-height: 1.55;
  }

  body.auth-pdcash.auth-register-page #registerForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  body.auth-pdcash.auth-register-page #registerForm > * {
    margin-top: 0 !important;
  }

  body.auth-pdcash.auth-register-page #registerForm > .grid {
    gap: 20px;
  }

  body.auth-pdcash.auth-register-page #registerForm label {
    font-size: 0.9rem;
  }

  body.auth-pdcash.auth-register-page #registerForm input {
    min-height: 54px;
    padding-left: 18px;
    padding-right: 18px;
    font-size: 1rem;
  }

  body.auth-pdcash.auth-register-page #togglePassword {
    min-width: 54px;
    min-height: 54px;
  }

  body.auth-pdcash.auth-register-page #registerForm > .flex.items-center.justify-between {
    min-height: 66px;
    padding: 14px 18px;
  }

  body.auth-pdcash.auth-register-page #registerSubmitBtn {
    min-width: 0;
    min-height: 54px;
    flex: 0 0 auto !important;
    font-size: 0.95rem;
  }
}

@media (min-width: 1024px) and (min-height: 820px) {
  body.auth-pdcash.auth-register-page > .w-full {
    align-items: center !important;
  }
}
/* ===== PD Cash confirmation pages ambient backdrop (login-success + approve-login) — added 2026-07-14 ===== */
.auth-pdcash.approval-page,
.auth-pdcash.auth-login-success {
  background-color: var(--black, #000);
  background-image:
    radial-gradient(58% 48% at 50% -4%, rgba(0, 214, 50, 0.11), transparent 60%),
    radial-gradient(42% 42% at 88% 108%, rgba(0, 214, 50, 0.055), transparent 62%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}
@media (min-width: 900px) {
  .auth-pdcash.approval-page > .w-full,
  .auth-pdcash.auth-login-success > .w-full {
    max-width: 30rem;
  }
}

/* ===== PD Cash auth audience distinction ===== */
.auth-pdcash .auth-context-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  margin-left: 12px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  white-space: nowrap;
}

.auth-pdcash .auth-context-badge i {
  font-size: 0.7rem;
}

.auth-pdcash .auth-context-badge--customer {
  color: #a7efb3;
  background-color: rgba(82, 212, 101, 0.08);
  border-color: rgba(82, 212, 101, 0.22);
}

.auth-pdcash .auth-context-badge--merchant {
  color: #9bdcf7;
  background-color: rgba(79, 185, 231, 0.08);
  border-color: rgba(79, 185, 231, 0.24);
}

body.auth-pdcash.merchant-auth .auth-card {
  border-color: rgba(79, 185, 231, 0.2) !important;
}

body.auth-pdcash.merchant-auth .auth-icon-bg {
  background-color: #68c8ef !important;
  box-shadow: 0 10px 26px rgba(79, 185, 231, 0.16) !important;
}

body.auth-pdcash.merchant-auth .auth-icon-bg i {
  color: #041014 !important;
}

body.auth-pdcash.merchant-auth .auth-card input:focus,
body.auth-pdcash.merchant-auth .auth-card select:focus,
body.auth-pdcash.merchant-auth .auth-card textarea:focus {
  border-color: rgba(104, 200, 239, 0.78) !important;
  box-shadow: 0 0 0 3px rgba(79, 185, 231, 0.16), 0 0 24px rgba(79, 185, 231, 0.08) !important;
}

body.auth-pdcash.merchant-auth.auth-login-page:not(.customer-portal-auth) .nav-cta::before {
  content: "New merchant?";
}

body.auth-pdcash.merchant-auth.auth-register-page .nav-cta::before {
  content: "Already a merchant?";
}

body.auth-pdcash.customer-portal-auth .nav-cta::before {
  content: none !important;
  display: none !important;
}

body.auth-pdcash.customer-portal-auth .auth-role-switch__prompt {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
  white-space: nowrap;
}

body.auth-pdcash.customer-portal-auth .nav-cta .auth-role-switch__button {
  display: inline-flex !important;
  color: #cbeeff;
  background-color: rgba(79, 185, 231, 0.06);
  border-color: rgba(79, 185, 231, 0.24);
}

body.auth-pdcash.customer-portal-auth .nav-cta .auth-role-switch__button:hover {
  color: #ffffff;
  background-color: rgba(79, 185, 231, 0.13);
  border-color: rgba(79, 185, 231, 0.42);
}

body.auth-pdcash.customer-portal-auth .nav-cta .auth-role-switch__button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 185, 231, 0.2);
}

@media (max-width: 719px) {
  .auth-pdcash .auth-context-badge,
  body.auth-pdcash.customer-portal-auth .auth-role-switch__prompt {
    display: none;
  }

  body.auth-pdcash.customer-portal-auth .nav-cta .auth-role-switch__button {
    padding-inline: 10px;
    font-size: 0.75rem;
  }
}

/* ===== PD Cash merchant registration layout correction ===== */
@media (min-width: 1024px) {
  body.auth-pdcash.merchant-auth.auth-register-page > .w-full {
    max-width: min(1480px, calc(100vw - 64px)) !important;
    padding-top: 88px !important;
    padding-bottom: 40px !important;
  }

  body.auth-pdcash.merchant-auth.auth-register-page .nav-container,
  body.auth-pdcash.merchant-auth.auth-register-page .footer-container {
    width: min(100%, 1480px);
    max-width: 1480px;
  }

  body.auth-pdcash.merchant-auth.auth-register-page .auth-card {
    width: 100%;
    min-height: 620px;
    border-radius: 20px !important;
    box-shadow: 0 28px 88px rgba(0, 0, 0, 0.46) !important;
  }

  body.auth-pdcash.merchant-auth.auth-register-page .auth-card-body {
    display: block;
    padding: 36px 48px 38px !important;
  }

  body.auth-pdcash.merchant-auth.auth-register-page .auth-card-body > .auth-heading {
    position: static;
    top: auto;
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 18px;
    align-items: center;
    width: 100%;
    padding: 0 0 20px;
    margin: 0 0 24px !important;
    border-bottom: 1px solid rgba(104, 200, 239, 0.16);
    text-align: left;
  }

  body.auth-pdcash.merchant-auth.auth-register-page .auth-card-body > .auth-heading .auth-icon-bg {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 56px;
    height: 56px;
    margin: 0 !important;
    border-radius: 12px !important;
    font-size: 1.15rem;
  }

  body.auth-pdcash.merchant-auth.auth-register-page .auth-card-body > .auth-heading h1 {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    margin: 0 !important;
    font-size: 2rem;
    line-height: 1.12;
    white-space: nowrap;
  }

  body.auth-pdcash.merchant-auth.auth-register-page .auth-card-body > .auth-heading p {
    grid-column: 2;
    grid-row: 2;
    width: auto;
    margin: 5px 0 0 !important;
    font-size: 0.95rem;
    line-height: 1.45;
  }

  body.auth-pdcash.merchant-auth.auth-register-page #registerForm {
    width: 100%;
    max-width: none;
    margin: 0 !important;
    gap: 18px;
  }

  body.auth-pdcash.merchant-auth.auth-register-page #registerForm > .grid {
    gap: 24px;
  }

  body.auth-pdcash.merchant-auth.auth-register-page #registerForm input {
    min-height: 56px;
  }

  body.auth-pdcash.merchant-auth.auth-register-page #togglePassword {
    min-width: 56px;
    min-height: 56px;
  }

  body.auth-pdcash.merchant-auth.auth-register-page #registerForm > .flex.items-center.justify-between {
    min-height: 68px;
    padding: 15px 20px;
  }

  body.auth-pdcash.merchant-auth.auth-register-page #registerSubmitBtn {
    min-height: 56px;
    font-size: 1rem;
  }
}

