/**
 * e-RSA Unified Authentication Stylesheet (auth.css)
 * Clean, consolidated styles for all auth views (Login, Signup, Recovery, Verification, PIN)
 *
 * Design Standards:
 * - Controls: 48-50px (mobile), 44px (desktop)
 * - Corner Radius: 50rem (Full Rounded Pill) adhering to app-wide button design standard
 * - Desktop Layout: 2-Column Split with Story Showcase Card
 * - Full Dark/Light Theme Harmony
 */

/* ==========================================================================
   1. AUTH WRAPPER & 2-COLUMN SPLIT SYSTEM
   ========================================================================== */
:root,
html,
[data-bs-theme="light"],
html[data-bs-theme="light"] {
  --auth-bg-color: #f5f5f5;
}

[data-bs-theme="dark"],
html[data-bs-theme="dark"] {
  --auth-bg-color: var(--bs-body-bg, #141414);
}

html:has(.auth-modern-wrapper),
body:has(.auth-modern-wrapper) {
  background-color: var(--auth-bg-color) !important;
}

html[data-bs-theme="dark"]:has(.auth-modern-wrapper),
html[data-bs-theme="dark"] body:has(.auth-modern-wrapper),
[data-bs-theme="dark"] body:has(.auth-modern-wrapper) {
  background-color: var(--bs-body-bg, #141414) !important;
}

.authentication-wrapper.auth-modern-wrapper,
.auth-modern-wrapper {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  background-color: var(--auth-bg-color) !important;
}

[data-bs-theme="dark"] .authentication-wrapper.auth-modern-wrapper,
[data-bs-theme="dark"] .auth-modern-wrapper,
html[data-bs-theme="dark"] .authentication-wrapper.auth-modern-wrapper,
html[data-bs-theme="dark"] .auth-modern-wrapper {
  background-color: var(--bs-body-bg, #141414) !important;
}

.auth-modern-inner,
.authentication-inner.auth-modern-inner {
  display: flex;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Base Form Column (Mobile-first full width) */
.auth-form-column {
  flex: 1 1 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  padding: 2.5rem;
  background-color: var(--auth-bg-color) !important;
  box-sizing: border-box;
  overflow-x: hidden;
}

[data-bs-theme="dark"] .auth-form-column,
html[data-bs-theme="dark"] .auth-form-column {
  background-color: var(--bs-body-bg, #141414) !important;
}

.auth-section {
  width: 100%;
  max-width: 380px;
  margin: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  color: var(--bs-body-color);
  box-sizing: border-box;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
  animation: authPageEnter 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.auth-section.auth-section-lg {
  max-width: 580px;
}

/* Left Showcase Column (Desktop only) */
.auth-showcase-column {
  flex: 1 1 auto;
  padding: 1.5rem;
  display: flex;
  align-items: stretch;
  justify-content: center;
  box-sizing: border-box;
}

/* Desktop 2-Column Split (min-width: 1200px) */
@media (min-width: 1200px) {
  /* Desktop 2-column split only locks screen when showcase column is present */
  html:has(.auth-showcase-column),
  body:has(.auth-showcase-column) {
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
  }

  .auth-modern-wrapper:has(.auth-showcase-column) {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  .auth-modern-inner {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .auth-showcase-column,
  .auth-modern-inner > .auth-showcase-column,
  .authentication-inner.auth-modern-inner > div.auth-showcase-column {
    display: flex !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100%;
    padding: 1.5rem;
    box-sizing: border-box;
    overflow: hidden;
  }

  .auth-form-column,
  .auth-modern-inner > .auth-form-column,
  .authentication-inner.auth-modern-inner > div.auth-form-column {
    flex: 0 0 520px !important;
    width: 520px !important;
    min-width: 520px !important;
    max-width: 520px !important;
    height: 100%;
    overflow-y: auto;
    padding: 2.5rem !important;
    border-left: none !important;
    border: none !important;
    background-color: var(--auth-bg-color) !important;
    box-sizing: border-box;
  }

  .auth-modern-inner .auth-section {
    width: 100%;
    max-width: 345px !important;
    margin: auto !important;
    padding: 0 !important;
  }

  [data-bs-theme="dark"] .auth-form-column,
  [data-bs-theme="dark"] .auth-modern-inner > .auth-form-column,
  [data-bs-theme="dark"] .authentication-inner.auth-modern-inner > div.auth-form-column,
  html[data-bs-theme="dark"] .auth-form-column,
  html[data-bs-theme="dark"] .auth-modern-inner > .auth-form-column,
  html[data-bs-theme="dark"] .authentication-inner.auth-modern-inner > div.auth-form-column {
    border-left: none !important;
    border: none !important;
    background-color: var(--bs-body-bg, #141414) !important;
  }
}

@media (min-width: 1200px) {
  .auth-form-column,
  .auth-modern-inner > .auth-form-column,
  .authentication-inner.auth-modern-inner > div.auth-form-column {
    flex: 0 0 540px !important;
    width: 540px !important;
    min-width: 540px !important;
    max-width: 540px !important;
    padding: 2.5rem !important;
  }
}



/* ==========================================================================
   2. DESKTOP SHOWCASE CARD (GALLERY SLIDER)
    ========================================================================== */
@keyframes bannerSkeletonShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.auth-showcase-card {
  position: relative;
  flex: 1 1 100%;
  width: 100%;
  height: calc(100vh - 3rem);
  height: calc(100dvh - 3rem);
  background: var(--rsa-body-dark, #151821) !important;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  box-sizing: border-box;
}

/* Subtle non-intrusive skeleton shimmer before initial slide finishes loading */
.auth-showcase-card:not(.is-ready) {
  background: linear-gradient(90deg, #151821 0%, rgba(255, 255, 255, 0.05) 50%, #151821 100%) !important;
  background-size: 200% 100% !important;
  animation: bannerSkeletonShimmer 2.2s infinite ease-in-out;
}

.auth-showcase-slides {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: transparent !important;
  border: none !important;
}

.auth-showcase-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 1.2s ease-in-out;
  will-change: opacity;
  overflow: hidden;
}

/* Slide aktif tampil 100% di layer teratas */
.auth-showcase-slide.active {
  opacity: 1;
  z-index: 3;
  pointer-events: auto;
}

/* Slide sebelumnya tetap solid 100% di bawah slide aktif selama transisi crossfade */
.auth-showcase-slide.underneath {
  opacity: 1 !important;
  z-index: 2 !important;
  pointer-events: none;
  transition: none !important;
}

.auth-showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  border: none !important;
  transform: scale(1.03);
  will-change: transform, opacity;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  opacity: 0;
  transition: opacity 0.28s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Immediately solid on active slide or loaded image (no staggered pop-in) */
.auth-showcase-card.is-ready .auth-showcase-img,
.auth-showcase-img.is-loaded,
.auth-showcase-slide.active .auth-showcase-img {
  opacity: 1 !important;
}

/* Continuous smooth zoom out linear without hitch or freeze */
.auth-showcase-slide.active .auth-showcase-img,
.auth-showcase-slide.underneath .auth-showcase-img {
  animation: showcaseZoomOutLinear 8.5s linear forwards;
}

@keyframes showcaseZoomOutLinear {
  0% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

.auth-showcase-link {
  position: absolute;
  inset: 0;
  z-index: 4;
}

/* Floating Unsplash Credit Badge (Bottom-Left) */
.auth-showcase-credit {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: auto;
  z-index: 30;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-showcase-credit.visible {
  opacity: 1;
  transform: translateY(0);
}

.auth-credit-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: rgba(15, 17, 23, 0.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
  user-select: none;
}

.auth-credit-link.icon-only {
  width: 32px;
  height: 32px;
  padding: 0;
  gap: 0;
  justify-content: center;
  border-radius: 50%;
}

.auth-credit-link.icon-only .auth-credit-text {
  display: none !important;
}

.auth-credit-link:hover {
  background: rgba(15, 17, 23, 0.85);
  border-color: rgba(255, 255, 255, 0.32);
  color: #ffffff !important;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.auth-platform-icon,
.auth-unsplash-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  opacity: 0.95;
  display: block;
}

.auth-credit-text {
  line-height: 1;
}

.text-gradient-orange {
  color: var(--bs-primary, #ff5911) !important;
  background: none !important;
  background-image: none !important;
  -webkit-text-fill-color: initial !important;
}

/* ==========================================================================
   3. HEADER, TITLE & ROTATING TAGLINE
   ========================================================================== */
.auth-brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: none !important;
  transition: transform 0.2s ease;
}

.auth-top-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  margin-bottom: 2.25rem !important;
}

.auth-top-content .auth-header,
.auth-header {
  margin-bottom: 1.35rem !important;
}

.auth-welcome-title {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--bs-heading-color);
  margin: 0;
  text-align: center;
}

@media (min-width: 768px) {
  .auth-welcome-title {
    font-size: 1.85rem;
  }
}

.auth-subtitle {
  color: var(--bs-secondary-color);
  font-size: 0.85rem;
  font-weight: 400;
  margin-top: -0.25rem;
  line-height: 1.4;
}

.auth-rotating-text-container {
  display: block;
  min-height: 24px;
  margin: 0;
  text-align: center;
}

.auth-rotating-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--bs-secondary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.auth-rotating-text.fade-out {
  opacity: 0;
  transform: translateY(-6px);
}

.auth-rotating-text.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   4. FORM CONTROLS & UNIFIED BUTTONS
   ========================================================================== */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.auth-form .auth-input .form-label {
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  color: var(--bs-secondary-color);
}

.authentication-wrapper .form-control,
.authentication-wrapper .form-select,
.auth-modern-wrapper .form-control,
.auth-modern-wrapper .form-select {
  background-color: var(--bs-paper-bg) !important;
  border: 1px solid var(--bs-border-color) !important;
  border-radius: var(--bs-input-border-radius, var(--bs-card-border-radius, 1rem)) !important;
  -webkit-border-radius: var(--bs-input-border-radius, var(--bs-card-border-radius, 1rem)) !important;
  color: var(--bs-heading-color) !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease, background-color 0.15s ease !important;
}

.authentication-wrapper .form-control::placeholder,
.auth-modern-wrapper .form-control::placeholder {
  color: var(--bs-secondary-color) !important;
  opacity: 1 !important;
}

.authentication-wrapper .form-control:focus,
.authentication-wrapper .form-select:focus,
.auth-modern-wrapper .form-control:focus,
.auth-modern-wrapper .form-select:focus,
.auth-form .form-control:focus,
.auth-section .form-control:focus {
  background-color: var(--bs-paper-bg) !important;
  border: 1px solid var(--bs-primary, #ff5911) !important;
  border-color: var(--bs-primary, #ff5911) !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  color: var(--bs-heading-color) !important;
  outline: none !important;
}

[data-bs-theme="dark"] .authentication-wrapper .form-control,
[data-bs-theme="dark"] .authentication-wrapper .form-select,
[data-bs-theme="dark"] .auth-modern-wrapper .form-control,
[data-bs-theme="dark"] .auth-modern-wrapper .form-select {
  background-color: var(--bs-paper-bg, #1e1e1e) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: var(--bs-heading-color, #e9e9e9) !important;
}

[data-bs-theme="dark"] .authentication-wrapper .form-control:focus,
[data-bs-theme="dark"] .authentication-wrapper .form-select:focus,
[data-bs-theme="dark"] .auth-modern-wrapper .form-control:focus,
[data-bs-theme="dark"] .auth-modern-wrapper .form-select:focus,
[data-bs-theme="dark"] .auth-form .form-control:focus,
[data-bs-theme="dark"] .auth-section .form-control:focus {
  background-color: var(--bs-paper-bg, #1e1e1e) !important;
  border: 1px solid var(--bs-primary, #ff5911) !important;
  border-color: var(--bs-primary, #ff5911) !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  color: var(--bs-heading-color, #e9e9e9) !important;
  outline: none !important;
}

/* Autofill Dark/Light Uniform Background Fix */
.authentication-wrapper .form-control:-webkit-autofill,
.authentication-wrapper .form-control:-webkit-autofill:hover,
.authentication-wrapper .form-control:-webkit-autofill:focus,
.authentication-wrapper .form-control:-webkit-autofill:active,
.authentication-wrapper input:-webkit-autofill,
.authentication-wrapper input:-webkit-autofill:hover,
.authentication-wrapper input:-webkit-autofill:focus,
.authentication-wrapper input:-webkit-autofill:active,
.auth-modern-wrapper .form-control:-webkit-autofill,
.auth-modern-wrapper .form-control:-webkit-autofill:hover,
.auth-modern-wrapper .form-control:-webkit-autofill:focus,
.auth-modern-wrapper .form-control:-webkit-autofill:active,
.auth-modern-wrapper input:-webkit-autofill,
.auth-modern-wrapper input:-webkit-autofill:hover,
.auth-modern-wrapper input:-webkit-autofill:focus,
.auth-modern-wrapper input:-webkit-autofill:active,
.auth-form .form-control:-webkit-autofill,
.auth-form .form-control:-webkit-autofill:hover,
.auth-form .form-control:-webkit-autofill:focus,
.auth-form .form-control:-webkit-autofill:active,
.auth-form input:-webkit-autofill,
.auth-form input:-webkit-autofill:hover,
.auth-form input:-webkit-autofill:focus,
.auth-form input:-webkit-autofill:active,
.auth-input .form-control:-webkit-autofill,
.auth-input .form-control:-webkit-autofill:hover,
.auth-input .form-control:-webkit-autofill:focus,
.auth-input .form-control:-webkit-autofill:active,
.auth-input input:-webkit-autofill,
.auth-input input:-webkit-autofill:hover,
.auth-input input:-webkit-autofill:focus,
.auth-input input:-webkit-autofill:active,
.auth-section .form-control:-webkit-autofill,
.auth-section .form-control:-webkit-autofill:hover,
.auth-section .form-control:-webkit-autofill:focus,
.auth-section .form-control:-webkit-autofill:active,
.auth-section input:-webkit-autofill,
.auth-section input:-webkit-autofill:hover,
.auth-section input:-webkit-autofill:focus,
.auth-section input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--bs-paper-bg, #ffffff) inset !important;
  box-shadow: 0 0 0 1000px var(--bs-paper-bg, #ffffff) inset !important;
  -webkit-text-fill-color: var(--bs-heading-color, #242424) !important;
  caret-color: var(--bs-heading-color, #242424) !important;
  border: 1px solid var(--bs-border-color) !important;
  transition: background-color 50000s ease-in-out 0s, color 50000s ease-in-out 0s;
}

.authentication-wrapper .form-control:-webkit-autofill:focus,
.authentication-wrapper input:-webkit-autofill:focus,
.auth-modern-wrapper .form-control:-webkit-autofill:focus,
.auth-modern-wrapper input:-webkit-autofill:focus,
.auth-form .form-control:-webkit-autofill:focus,
.auth-form input:-webkit-autofill:focus,
.auth-input .form-control:-webkit-autofill:focus,
.auth-input input:-webkit-autofill:focus,
.auth-section .form-control:-webkit-autofill:focus,
.auth-section input:-webkit-autofill:focus {
  border-color: var(--bs-primary, #ff5911) !important;
}

[data-bs-theme="dark"] .authentication-wrapper .form-control:-webkit-autofill,
[data-bs-theme="dark"] .authentication-wrapper .form-control:-webkit-autofill:hover,
[data-bs-theme="dark"] .authentication-wrapper .form-control:-webkit-autofill:focus,
[data-bs-theme="dark"] .authentication-wrapper .form-control:-webkit-autofill:active,
[data-bs-theme="dark"] .authentication-wrapper input:-webkit-autofill,
[data-bs-theme="dark"] .authentication-wrapper input:-webkit-autofill:hover,
[data-bs-theme="dark"] .authentication-wrapper input:-webkit-autofill:focus,
[data-bs-theme="dark"] .authentication-wrapper input:-webkit-autofill:active,
[data-bs-theme="dark"] .auth-modern-wrapper .form-control:-webkit-autofill,
[data-bs-theme="dark"] .auth-modern-wrapper .form-control:-webkit-autofill:hover,
[data-bs-theme="dark"] .auth-modern-wrapper .form-control:-webkit-autofill:focus,
[data-bs-theme="dark"] .auth-modern-wrapper .form-control:-webkit-autofill:active,
[data-bs-theme="dark"] .auth-modern-wrapper input:-webkit-autofill,
[data-bs-theme="dark"] .auth-modern-wrapper input:-webkit-autofill:hover,
[data-bs-theme="dark"] .auth-modern-wrapper input:-webkit-autofill:focus,
[data-bs-theme="dark"] .auth-modern-wrapper input:-webkit-autofill:active,
[data-bs-theme="dark"] .auth-form .form-control:-webkit-autofill,
[data-bs-theme="dark"] .auth-form .form-control:-webkit-autofill:hover,
[data-bs-theme="dark"] .auth-form .form-control:-webkit-autofill:focus,
[data-bs-theme="dark"] .auth-form .form-control:-webkit-autofill:active,
[data-bs-theme="dark"] .auth-form input:-webkit-autofill,
[data-bs-theme="dark"] .auth-form input:-webkit-autofill:hover,
[data-bs-theme="dark"] .auth-form input:-webkit-autofill:focus,
[data-bs-theme="dark"] .auth-form input:-webkit-autofill:active,
[data-bs-theme="dark"] .auth-input .form-control:-webkit-autofill,
[data-bs-theme="dark"] .auth-input .form-control:-webkit-autofill:hover,
[data-bs-theme="dark"] .auth-input .form-control:-webkit-autofill:focus,
[data-bs-theme="dark"] .auth-input .form-control:-webkit-autofill:active,
[data-bs-theme="dark"] .auth-input input:-webkit-autofill,
[data-bs-theme="dark"] .auth-input input:-webkit-autofill:hover,
[data-bs-theme="dark"] .auth-input input:-webkit-autofill:focus,
[data-bs-theme="dark"] .auth-input input:-webkit-autofill:active,
[data-bs-theme="dark"] .auth-section .form-control:-webkit-autofill,
[data-bs-theme="dark"] .auth-section .form-control:-webkit-autofill:hover,
[data-bs-theme="dark"] .auth-section .form-control:-webkit-autofill:focus,
[data-bs-theme="dark"] .auth-section .form-control:-webkit-autofill:active,
[data-bs-theme="dark"] .auth-section input:-webkit-autofill,
[data-bs-theme="dark"] .auth-section input:-webkit-autofill:hover,
[data-bs-theme="dark"] .auth-section input:-webkit-autofill:focus,
[data-bs-theme="dark"] .auth-section input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--bs-paper-bg, #1e1e1e) inset !important;
  box-shadow: 0 0 0 1000px var(--bs-paper-bg, #1e1e1e) inset !important;
  -webkit-text-fill-color: var(--bs-heading-color, #e9e9e9) !important;
  caret-color: var(--bs-heading-color, #e9e9e9) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  transition: background-color 50000s ease-in-out 0s, color 50000s ease-in-out 0s;
}

[data-bs-theme="dark"] .authentication-wrapper .form-control:-webkit-autofill:focus,
[data-bs-theme="dark"] .authentication-wrapper input:-webkit-autofill:focus,
[data-bs-theme="dark"] .auth-modern-wrapper .form-control:-webkit-autofill:focus,
[data-bs-theme="dark"] .auth-modern-wrapper input:-webkit-autofill:focus,
[data-bs-theme="dark"] .auth-form .form-control:-webkit-autofill:focus,
[data-bs-theme="dark"] .auth-form input:-webkit-autofill:focus,
[data-bs-theme="dark"] .auth-input .form-control:-webkit-autofill:focus,
[data-bs-theme="dark"] .auth-input input:-webkit-autofill:focus,
[data-bs-theme="dark"] .auth-section .form-control:-webkit-autofill:focus,
[data-bs-theme="dark"] .auth-section input:-webkit-autofill:focus {
  border-color: var(--bs-primary, #ff5911) !important;
}

.auth-forgot-row {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  margin: 0;
}

.auth-forgot-link {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: normal !important;
  color: var(--bs-primary, #ff5911);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

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

.auth-btn-choice {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

/* Base Unified Buttons Style (Full Rounded Pill standard) */
.google-btn,
.email-btn,
.biometric-btn,
.auth-modern-wrapper .btn:not(.btn-switch-pin):not(#btn-switch-to-pin):not(#floatingWaBtn):not(.btn-floating-wa),
.authentication-wrapper .btn:not(.btn-switch-pin):not(#btn-switch-to-pin):not(#floatingWaBtn):not(.btn-floating-wa),
.auth-form button[type="submit"]:not(.btn-switch-pin):not(#btn-switch-to-pin):not(#floatingWaBtn):not(.btn-floating-wa) {
  border-radius: 50rem !important;
  -webkit-border-radius: 50rem !important;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  box-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  text-shadow: none !important;
}

/* PIN Switch Button (Matches exact input styling, clean border, subtle tactile click) */
#btn-switch-to-pin,
.btn-switch-pin {
  width: var(--bs-control-height, 44px) !important;
  height: var(--bs-control-height, 44px) !important;
  min-width: var(--bs-control-height, 44px) !important;
  max-width: var(--bs-control-height, 44px) !important;
  aspect-ratio: 1 / 1 !important;  /* Pastikan selalu circle sempurna */
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  align-self: center !important;   /* Cegah flex stretch vertikal */
  cursor: pointer;
  border: 1px solid var(--bs-border-color) !important;
  background-color: var(--bs-paper-bg) !important;
  background-image: none !important;
  color: var(--bs-secondary-color) !important;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease !important;
  padding: 0 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

#btn-switch-to-pin i,
.btn-switch-pin i,
#btn-switch-to-pin .material-symbols-outlined,
.btn-switch-pin .material-symbols-outlined,
#btn-switch-to-pin .btn-switch-pin-icon,
.btn-switch-pin .btn-switch-pin-icon,
#btn-switch-to-pin span,
.btn-switch-pin span {
  font-size: 1.625rem !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 1em !important;
  height: 1em !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none;
}

/* Hover & Focus State */
#btn-switch-to-pin:hover,
#btn-switch-to-pin:focus,
.btn-switch-pin:hover,
.btn-switch-pin:focus {
  background-color: var(--bs-paper-bg) !important;
  border-color: var(--bs-border-color) !important;
  color: var(--bs-heading-color) !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Animasi Klik (Active State) */
#btn-switch-to-pin:active,
.btn-switch-pin:active {
  transform: scale(0.94) !important;
  background-color: var(--bs-paper-bg) !important;
  opacity: 0.9 !important;
  box-shadow: none !important;
}

[data-bs-theme="dark"] #btn-switch-to-pin,
[data-bs-theme="dark"] .btn-switch-pin {
  background-color: var(--bs-input-filled-bg, rgba(255, 255, 255, 0.08)) !important;
  border: none !important;
  color: var(--bs-body-color, #e0e0e0) !important;
}

[data-bs-theme="dark"] #btn-switch-to-pin:hover,
[data-bs-theme="dark"] #btn-switch-to-pin:focus,
[data-bs-theme="dark"] .btn-switch-pin:hover,
[data-bs-theme="dark"] .btn-switch-pin:focus {
  background-color: var(--bs-input-filled-bg, rgba(255, 255, 255, 0.08)) !important;
  color: var(--bs-body-color, #e0e0e0) !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
}

[data-bs-theme="dark"] #btn-switch-to-pin:active,
[data-bs-theme="dark"] .btn-switch-pin:active {
  transform: scale(0.94) !important;
  opacity: 0.85 !important;
}

/* Primary Submit Buttons */
.auth-submit-btn {
  display: flex;
  width: 100%;
}

.auth-modern-wrapper .btn-primary:not(:disabled):not(.disabled):not(.btn-switch-pin):not(#btn-switch-to-pin),
.authentication-wrapper .btn-primary:not(:disabled):not(.disabled):not(.btn-switch-pin):not(#btn-switch-to-pin) {
  background: var(--bs-primary, #ff5911) !important;
  background-color: var(--bs-primary, #ff5911) !important;
  background-image: none !important;
  color: var(--rsa-color-white, #ffffff) !important;
  border: 1px solid var(--bs-primary, #ff5911) !important;
  border-color: var(--bs-primary, #ff5911) !important;
  box-shadow: none !important;
  text-shadow: none;
}

.auth-modern-wrapper .btn-primary:hover:not(:disabled):not(.btn-switch-pin):not(#btn-switch-to-pin),
.authentication-wrapper .btn-primary:hover:not(:disabled):not(.btn-switch-pin):not(#btn-switch-to-pin),
.auth-form .btn-primary:hover:not(:disabled),
.auth-section .btn-primary:hover:not(:disabled) {
  background: var(--bs-primary, #ff5911) !important;
  background-color: var(--bs-primary, #ff5911) !important;
  background-image: none !important;
  border-color: var(--bs-primary, #ff5911) !important;
  color: var(--rsa-color-white, #ffffff) !important;
  transform: translateY(-1px);
  box-shadow: none !important;
}

.auth-modern-wrapper .btn:not(.btn-switch-pin):not(#btn-switch-to-pin),
.authentication-wrapper .btn:not(.btn-switch-pin):not(#btn-switch-to-pin),
.auth-form .btn,
.auth-section .btn {
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease !important;
}

/* Ensure button text and icons NEVER lag or crossfade between states */
.auth-modern-wrapper .btn *,
.authentication-wrapper .btn *,
.auth-form .btn *,
.auth-section .btn * {
  transition: none !important;
}

.auth-modern-wrapper .btn-primary:not(:disabled):not(.disabled) *,
.authentication-wrapper .btn-primary:not(:disabled):not(.disabled) *,
.auth-form .btn-primary:not(:disabled):not(.disabled) *,
.auth-section .btn-primary:not(:disabled):not(.disabled) * {
  color: #ffffff !important;
  transition: none !important;
}

.auth-modern-wrapper .btn:hover:not(:disabled):not(.disabled),
.authentication-wrapper .btn:hover:not(:disabled):not(.disabled),
.auth-form .btn:hover:not(:disabled):not(.disabled),
.auth-section .btn:hover:not(:disabled):not(.disabled) {
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease !important;
}

.auth-modern-wrapper .btn-primary:active:not(:disabled):not(.btn-switch-pin):not(#btn-switch-to-pin),
.authentication-wrapper .btn-primary:active:not(:disabled):not(.btn-switch-pin):not(#btn-switch-to-pin),
.auth-form .btn:active:not(:disabled),
.auth-section .btn:active:not(:disabled),
.auth-form .btn-primary:active:not(:disabled),
.auth-section .btn-primary:active:not(:disabled) {
  border-color: var(--bs-primary, #ff5911) !important;
  transform: scale(0.96) !important;
  transition: transform 0.08s ease !important;
  box-shadow: none !important;
}

/* Submit Button Disabled State -> Styled as Secondary Button */
.auth-modern-wrapper .btn-primary:disabled,
.authentication-wrapper .btn-primary:disabled,
.auth-modern-wrapper .btn:disabled,
.authentication-wrapper .btn:disabled,
.auth-form .btn:disabled,
.auth-section .btn:disabled,
.auth-form .btn-primary:disabled,
.auth-section .btn-primary:disabled,
.auth-modern-wrapper .btn-primary.disabled,
.authentication-wrapper .btn-primary.disabled {
  transition: none !important;
  opacity: 1 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  background: rgba(var(--bs-secondary-rgb, 112, 112, 112), 0.14) !important;
  background-color: rgba(var(--bs-secondary-rgb, 112, 112, 112), 0.14) !important;
  border: 1px solid transparent !important;
  border-color: transparent !important;
  color: var(--bs-secondary, #707070) !important;
  box-shadow: none !important;
  transform: none !important;
}

.auth-modern-wrapper .btn:disabled *,
.authentication-wrapper .btn:disabled *,
.auth-form .btn:disabled *,
.auth-section .btn:disabled *,
.auth-modern-wrapper .btn.disabled *,
.authentication-wrapper .btn.disabled * {
  color: var(--bs-secondary, #707070) !important;
  transition: none !important;
}

[data-bs-theme="dark"] .auth-modern-wrapper .btn-primary:disabled,
[data-bs-theme="dark"] .authentication-wrapper .btn-primary:disabled,
[data-bs-theme="dark"] .auth-modern-wrapper .btn:disabled,
[data-bs-theme="dark"] .authentication-wrapper .btn:disabled,
[data-bs-theme="dark"] .auth-form .btn:disabled,
[data-bs-theme="dark"] .auth-section .btn:disabled,
[data-bs-theme="dark"] .auth-form .btn-primary:disabled,
[data-bs-theme="dark"] .auth-section .btn-primary:disabled,
[data-bs-theme="dark"] .auth-modern-wrapper .btn-primary.disabled,
[data-bs-theme="dark"] .authentication-wrapper .btn-primary.disabled {
  background: rgba(255, 255, 255, 0.08) !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid transparent !important;
  border-color: transparent !important;
  color: var(--bs-gray-700, #cecece) !important;
  transition: none !important;
}

[data-bs-theme="dark"] .auth-modern-wrapper .btn:disabled *,
[data-bs-theme="dark"] .authentication-wrapper .btn:disabled *,
[data-bs-theme="dark"] .auth-form .btn:disabled *,
[data-bs-theme="dark"] .auth-section .btn:disabled * {
  color: var(--bs-gray-700, #cecece) !important;
  transition: none !important;
}


/* Google & Alternative Sign-in Buttons (Light Mode) */
.google-btn {
  background-color: var(--bs-paper-bg) !important;
  color: var(--bs-heading-color) !important;
  border: 1px solid var(--bs-border-color) !important;
  border-radius: 50rem !important;
  -webkit-border-radius: 50rem !important;
  box-shadow: none !important;
  transition: transform 0.15s ease !important;
}

.email-btn,
.biometric-btn {
  background-color: var(--bs-paper-bg) !important;
  color: var(--bs-heading-color) !important;
  border: 1px solid var(--bs-border-color) !important;
  border-radius: 50rem !important;
  -webkit-border-radius: 50rem !important;
  box-shadow: none !important;
  transition: transform 0.15s ease !important;
}

.google-btn:hover {
  background-color: var(--bs-paper-bg) !important;
  border: 1px solid var(--bs-border-color) !important;
  color: var(--bs-heading-color) !important;
  box-shadow: none !important;
}

@media (min-width: 768px) {
  .google-btn:hover {
    transform: translateY(-1px) !important;
  }
}

@media (max-width: 767.98px) {
  .google-btn:hover {
    transform: none !important;
  }
}

.email-btn:hover,
.biometric-btn:hover {
  background-color: var(--bs-paper-bg) !important;
  border: 1px solid var(--bs-border-color) !important;
  color: var(--bs-heading-color) !important;
  transform: none !important;
  box-shadow: none !important;
}

.google-btn:active {
  transform: translateY(0) scale(0.99) !important;
  background-color: var(--bs-paper-bg) !important;
  border: 1px solid var(--bs-border-color) !important;
  box-shadow: none !important;
}

.email-btn:active,
.biometric-btn:active {
  transform: scale(0.99) !important;
  background-color: var(--bs-paper-bg) !important;
  border: 1px solid var(--bs-border-color) !important;
  box-shadow: none !important;
}

/* Google & Alternative Sign-in Buttons (Dark Mode) */
[data-bs-theme="dark"] .google-btn {
  background-color: var(--bs-input-filled-bg, rgba(255, 255, 255, 0.08)) !important;
  color: var(--bs-heading-color, #e9e9e9) !important;
  border: none !important;
  border-radius: 50rem !important;
  -webkit-border-radius: 50rem !important;
  box-shadow: none !important;
}

[data-bs-theme="dark"] .email-btn,
[data-bs-theme="dark"] .biometric-btn {
  background-color: var(--bs-input-filled-bg, rgba(255, 255, 255, 0.08)) !important;
  border: none !important;
  border-radius: 50rem !important;
  -webkit-border-radius: 50rem !important;
  color: var(--bs-heading-color, #e9e9e9) !important;
  box-shadow: none !important;
}

[data-bs-theme="dark"] .google-btn:hover {
  background-color: var(--bs-input-filled-bg-focus, rgba(255, 255, 255, 0.12)) !important;
  border: none !important;
  color: var(--bs-heading-color, #e9e9e9) !important;
  transform: none !important;
  box-shadow: none !important;
}

[data-bs-theme="dark"] .email-btn:hover,
[data-bs-theme="dark"] .biometric-btn:hover {
  background-color: var(--bs-input-filled-bg-focus, rgba(255, 255, 255, 0.12)) !important;
  color: #ffffff !important;
  transform: translateY(-1.5px);
  box-shadow: none !important;
}

[data-bs-theme="dark"] .google-btn:active {
  transform: scale(0.98) !important;
  opacity: 0.88 !important;
  background-color: var(--bs-input-filled-bg, rgba(255, 255, 255, 0.08)) !important;
  box-shadow: none !important;
}

[data-bs-theme="dark"] .email-btn:active,
[data-bs-theme="dark"] .biometric-btn:active {
  transform: translateY(0);
  background-color: var(--bs-input-filled-bg, rgba(255, 255, 255, 0.08)) !important;
  box-shadow: none !important;
}

/* Button Icons */
.google-btn img,
.email-btn i,
.biometric-btn i {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.biometric-btn i {
  color: var(--bs-primary, #ff5911);
}

.email-btn i {
  color: inherit;
  opacity: 0.9;
}

/* Secondary Actions (PIN screen switchers) */
.pin-action-btn {
  border-radius: 50rem !important;
  -webkit-border-radius: 50rem !important;
  transition: all 0.2s ease;
  box-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
}

#btn-pin-use-password {
  width: auto !important;
  max-width: max-content !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  line-height: 38px !important;
  padding-inline: 1.5rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  margin-inline: auto !important;
  border-radius: 50rem !important;
  -webkit-border-radius: 50rem !important;
  transition: all 0.2s ease;
  box-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
}

#btn-pin-use-password,
.pin-action-btn.btn-outline-secondary,
.pin-action-btn:not(.btn-outline-primary):not(.btn-primary):not([class*="btn-outline-"]) {
  background-color: transparent !important;
  border: var(--bs-btn-outline-border-width, 1.75px) solid var(--bs-btn-outline-secondary-border, var(--bs-border-color)) !important;
  color: var(--bs-btn-outline-secondary-color, var(--bs-secondary-color)) !important;
  box-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
}

#footerStep1 .pin-action-btn,
.pin-action-btn.w-100 {
  max-width: 100% !important;
  width: 100% !important;
}

[data-bs-theme="light"] #btn-pin-use-password,
[data-bs-theme="light"] .pin-action-btn.btn-outline-secondary,
[data-bs-theme="light"] .pin-action-btn:not(.btn-outline-primary):not(.btn-primary):not([class*="btn-outline-"]) {
  border-color: rgba(0, 0, 0, 0.18) !important;
  color: #3b3c40 !important;
}

[data-bs-theme="dark"] #btn-pin-use-password,
[data-bs-theme="dark"] .pin-action-btn.btn-outline-secondary,
[data-bs-theme="dark"] .pin-action-btn:not(.btn-outline-primary):not(.btn-primary):not([class*="btn-outline-"]) {
  border-color: var(--bs-btn-outline-secondary-border, var(--bs-gray-600, #aaaaaa)) !important;
  color: var(--bs-btn-outline-secondary-color, var(--bs-gray-800, #e0e0e0)) !important;
}

#btn-pin-use-password:hover,
#btn-pin-use-password:focus,
#btn-pin-use-password:active,
.pin-action-btn.btn-outline-secondary:hover,
.pin-action-btn.btn-outline-secondary:focus,
.pin-action-btn.btn-outline-secondary:active {
  background: var(--bs-btn-outline-secondary-hover-bg, rgba(0, 0, 0, 0.06)) !important;
  background-color: var(--bs-btn-outline-secondary-hover-bg, rgba(0, 0, 0, 0.06)) !important;
  border-color: var(--bs-btn-outline-secondary-hover-border, var(--bs-heading-color, #1a1a1a)) !important;
  color: var(--bs-btn-outline-secondary-hover-color, var(--bs-heading-color, #1a1a1a)) !important;
  box-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  transform: translateY(-1px);
}

[data-bs-theme="dark"] #btn-pin-use-password:hover,
[data-bs-theme="dark"] #btn-pin-use-password:focus,
[data-bs-theme="dark"] #btn-pin-use-password:active,
[data-bs-theme="dark"] .pin-action-btn.btn-outline-secondary:hover,
[data-bs-theme="dark"] .pin-action-btn.btn-outline-secondary:focus,
[data-bs-theme="dark"] .pin-action-btn.btn-outline-secondary:active {
  background: var(--bs-btn-outline-secondary-hover-bg, rgba(255, 255, 255, 0.12)) !important;
  background-color: var(--bs-btn-outline-secondary-hover-bg, rgba(255, 255, 255, 0.12)) !important;
  border-color: var(--bs-btn-outline-secondary-hover-border, var(--white, #ffffff)) !important;
  color: var(--bs-btn-outline-secondary-hover-color, var(--white, #ffffff)) !important;
  box-shadow: none !important;
}

#btn-pin-use-password:hover *,
.pin-action-btn.btn-outline-secondary:hover * {
  color: inherit !important;
}

/* Primary Outline Button inside PIN Modals */
.pin-action-btn.btn-outline-primary,
.btn-outline-primary.pin-action-btn {
  color: var(--bs-primary) !important;
  border: var(--bs-btn-outline-border-width, 1.75px) solid var(--bs-primary) !important;
  background-color: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
}

.pin-action-btn.btn-outline-primary:hover,
.pin-action-btn.btn-outline-primary:focus,
.pin-action-btn.btn-outline-primary:active,
.btn-outline-primary.pin-action-btn:hover,
.btn-outline-primary.pin-action-btn:focus,
.btn-outline-primary.pin-action-btn:active {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  color: var(--white, #ffffff) !important;
  box-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  transform: translateY(-1px);
}

.pin-action-btn.btn-outline-primary:hover *,
.btn-outline-primary.pin-action-btn:hover * {
  color: var(--white, #ffffff) !important;
}

/* Divider */
.divider {
  margin-block: 0.35rem;
}

.divider-text {
  font-size: 0.8125rem;
  padding-inline: 0.85rem;
  color: var(--bs-secondary-color);
}

[data-bs-theme="dark"] .divider-text {
  color: var(--bs-secondary-color);
}

/* ==========================================================================
   5. RESPONSIVE CONTROL HEIGHTS (DESKTOP 44px vs MOBILE 50px)
   ========================================================================== */
@media (min-width: 768px) {
  .authentication-wrapper .form-control,
  .authentication-wrapper .form-select,
  .auth-modern-wrapper .form-control,
  .auth-modern-wrapper .form-select {
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    line-height: 42px !important;
    font-size: 0.9375rem;
    padding-block: 0 !important;
    border-radius: var(--bs-input-border-radius, var(--bs-card-border-radius, 1rem)) !important;
    -webkit-border-radius: var(--bs-input-border-radius, var(--bs-card-border-radius, 1rem)) !important;
    box-sizing: border-box !important;
  }

  .google-btn,
  .email-btn,
  .biometric-btn,
  .auth-modern-wrapper .btn:not(.btn-switch-pin):not(#btn-switch-to-pin):not(#floatingWaBtn):not(.btn-floating-wa),
  .authentication-wrapper .btn:not(.btn-switch-pin):not(#btn-switch-to-pin):not(#floatingWaBtn):not(.btn-floating-wa) {
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    line-height: 42px !important;
    font-size: 0.9375rem;
    padding-block: 0 !important;
    padding-inline: 1.25rem;
    border-radius: 50rem !important;
    -webkit-border-radius: 50rem !important;
    box-sizing: border-box !important;
  }

  .btn-switch-pin,
  #btn-switch-to-pin {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    padding: 0 !important;
    padding-inline: 0 !important;
    padding-block: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    -webkit-border-radius: 50% !important;
    aspect-ratio: 1 / 1 !important;
    flex: 0 0 44px !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 767.98px) {
  .auth-section {
    max-width: 345px !important;
  }

  .authentication-wrapper .form-control,
  .authentication-wrapper .form-select,
  .auth-modern-wrapper .form-control,
  .auth-modern-wrapper .form-select {
    height: var(--bs-control-height, 48px) !important;
    min-height: var(--bs-control-height, 48px) !important;
    max-height: var(--bs-control-height, 48px) !important;
    line-height: calc(var(--bs-control-height, 48px) - 2px) !important;
    font-size: 0.9375rem;
    padding-block: 0 !important;
    border-radius: var(--bs-input-border-radius, var(--bs-card-border-radius, 1rem)) !important;
    -webkit-border-radius: var(--bs-input-border-radius, var(--bs-card-border-radius, 1rem)) !important;
    box-sizing: border-box !important;
  }

  .google-btn,
  .email-btn,
  .biometric-btn,
  .auth-modern-wrapper .btn:not(.btn-switch-pin):not(#btn-switch-to-pin):not(#floatingWaBtn):not(.btn-floating-wa),
  .authentication-wrapper .btn:not(.btn-switch-pin):not(#btn-switch-to-pin):not(#floatingWaBtn):not(.btn-floating-wa) {
    height: var(--bs-control-height, 48px) !important;
    min-height: var(--bs-control-height, 48px) !important;
    max-height: var(--bs-control-height, 48px) !important;
    line-height: calc(var(--bs-control-height, 48px) - 2px) !important;
    font-size: 0.9375rem;
    padding-block: 0 !important;
    padding-inline: 1.25rem;
    border-radius: 50rem !important;
    -webkit-border-radius: 50rem !important;
    box-sizing: border-box !important;
  }

  .btn-switch-pin,
  #btn-switch-to-pin {
    width: var(--bs-control-height, 48px) !important;
    min-width: var(--bs-control-height, 48px) !important;
    max-width: var(--bs-control-height, 48px) !important;
    height: var(--bs-control-height, 48px) !important;
    min-height: var(--bs-control-height, 48px) !important;
    max-height: var(--bs-control-height, 48px) !important;
    flex: 0 0 var(--bs-control-height, 48px) !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    border-radius: 50% !important;
    -webkit-border-radius: 50% !important;
    aspect-ratio: 1 / 1 !important;
    padding: 0 !important;
    padding-inline: 0 !important;
    padding-block: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .btn-switch-pin i,
  #btn-switch-to-pin i,
  .btn-switch-pin .material-symbols-outlined,
  #btn-switch-to-pin .material-symbols-outlined,
  .btn-switch-pin .btn-switch-pin-icon,
  #btn-switch-to-pin .btn-switch-pin-icon,
  .btn-switch-pin span,
  #btn-switch-to-pin span {
    font-size: 1.6875rem !important;
    transform: none !important;
  }
}

/* ==========================================================================
   6. TOP-LEFT BACK BUTTON
   ========================================================================== */
.auth-back-btn {
  position: absolute;
  top: max(0.85rem, env(safe-area-inset-top, 0.85rem));
  left: max(1rem, env(safe-area-inset-left, 1rem));
  height: 38px;
  width: auto !important;
  min-height: 38px;
  min-width: auto !important;
  aspect-ratio: auto !important;
  padding: 0 0.85rem 0 0.65rem !important;
  border-radius: 50rem !important;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  box-shadow: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease, color 0.15s ease;
  cursor: pointer;
  text-decoration: none !important;
  z-index: 1050;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
}

.auth-back-btn.d-inline-flex,
.auth-back-btn[style*="inline-flex"],
.auth-back-btn[style*="display: flex"],
.auth-back-btn[style*="display:flex"] {
  display: inline-flex !important;
}

@media (min-width: 768px) {
  .auth-back-btn {
    top: 1.5rem;
    left: 1.5rem;
  }
}


@media (min-width: 1200px) {
  .auth-back-btn {
    top: 1.5rem !important;
    left: 2rem;
  }
}

.auth-back-btn i {
  font-size: 1.25rem !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: inherit !important;
}

.auth-back-btn .auth-back-text {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  color: inherit;
  display: inline-block;
}

/* Light Theme Back Button */
:root:not([data-bs-theme="dark"]) .auth-back-btn,
[data-bs-theme="light"] .auth-back-btn {
  background: var(--bs-gray-100, #e5e5e5) !important;
  border: none !important;
  color: var(--bs-heading-color, #1a1a1a) !important;
}

:root:not([data-bs-theme="dark"]) .auth-back-btn i,
[data-bs-theme="light"] .auth-back-btn i,
:root:not([data-bs-theme="dark"]) .auth-back-btn .auth-back-text,
[data-bs-theme="light"] .auth-back-btn .auth-back-text {
  color: var(--bs-heading-color, #1a1a1a) !important;
}

:root:not([data-bs-theme="dark"]) .auth-back-btn:hover,
[data-bs-theme="light"] .auth-back-btn:hover {
  background: var(--bs-gray-200, #cccccc) !important;
  color: var(--bs-heading-color, #1a1a1a) !important;
}

:root:not([data-bs-theme="dark"]) .auth-back-btn:hover i,
[data-bs-theme="light"] .auth-back-btn:hover i,
:root:not([data-bs-theme="dark"]) .auth-back-btn:hover .auth-back-text,
[data-bs-theme="light"] .auth-back-btn:hover .auth-back-text {
  color: var(--bs-heading-color, #1a1a1a) !important;
}

:root:not([data-bs-theme="dark"]) .auth-back-btn:active,
[data-bs-theme="light"] .auth-back-btn:active {
  transform: scale(0.96);
}

/* Dark Theme (and Base Default) Back Button */
.auth-back-btn,
[data-bs-theme="dark"] .auth-back-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border: none !important;
  color: #ffffff !important;
}

.auth-back-btn i,
[data-bs-theme="dark"] .auth-back-btn i,
.auth-back-btn .auth-back-text,
[data-bs-theme="dark"] .auth-back-btn .auth-back-text {
  color: #ffffff !important;
}

[data-bs-theme="dark"] .auth-back-btn:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

[data-bs-theme="dark"] .auth-back-btn:hover i,
[data-bs-theme="dark"] .auth-back-btn:hover .auth-back-text {
  color: #ffffff !important;
}

[data-bs-theme="dark"] .auth-back-btn:active {
  transform: scale(0.96);
}

/* ==========================================================================
   7. FOOTER, DISCLAIMER & SWITCHER LINKS
   ========================================================================== */
.auth-footer,
.auth-form > .auth-footer {
  margin-top: 1.25rem !important; /* 1rem form gap + 1.25rem = 2.25rem distance below button */
  gap: 1.5rem !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
  padding-bottom: 2.5rem !important;
}

#auth-email-step .auth-footer {
  margin-top: 2.25rem !important;
}

/* Step 2 Signup Footer with Legal Disclaimer:
   Distance from button to disclaimer (1rem form gap + 1.25rem = 2.25rem)
   is EXACTLY IDENTICAL to distance from disclaimer to 'Sudah punya akun?' (gap: 2.25rem),
   and EXACTLY IDENTICAL to distance from title to form (margin-bottom: 2.25rem) */
#signup-footer-step2,
.auth-form > #signup-footer-step2,
.auth-footer:has(.auth-legal) {
  margin-top: 1.25rem !important; /* 1rem form gap + 1.25rem = 2.25rem distance above disclaimer */
  gap: 2.25rem !important;        /* 2.25rem distance between disclaimer and 'Sudah punya akun? Masuk' */
  padding-bottom: 2.5rem !important;
}

.auth-legal {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--bs-secondary-color);
  margin: 0;
  padding: 0 0.5rem;
  text-align: center;
}

.auth-legal a {
  color: var(--bs-heading-color);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

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

[data-bs-theme="dark"] .auth-legal {
  color: var(--bs-secondary-color);
}

[data-bs-theme="dark"] .auth-legal a {
  color: var(--bs-heading-color);
}

[data-bs-theme="dark"] .auth-legal a:hover {
  color: var(--bs-primary);
}

.auth-choice-footer {
  margin-top: 1.25rem;
  text-align: center;
}

.auth-text,
.auth-choice-footer .auth-text {
  font-size: 0.875rem;
  color: var(--bs-secondary-color);
  margin-bottom: 0;
}

[data-bs-theme="dark"] .auth-text,
[data-bs-theme="dark"] .auth-choice-footer .auth-text {
  color: var(--bs-secondary-color);
}

.auth-text a,
.auth-choice-footer .auth-text a {
  color: var(--bs-primary, #ff5911);
  text-decoration: none;
  font-weight: 600;
  margin-left: 0.25rem;
  transition: opacity 0.15s ease-in-out;
}

.auth-text a:hover,
.auth-choice-footer .auth-text a:hover {
  text-decoration: underline;
  opacity: 0.85;
}

/* ==========================================================================
   8. CLEAN PIN KEYPAD SCREEN STATE (DESKTOP & MOBILE REFINEMENT)
   ========================================================================== */
body.auth-pin-active #auth-top-content,
body.auth-pin-active .auth-top-content,
.auth-section:has(#auth-pin-step:not([style*="display: none"])) #auth-top-content,
.auth-section:has(#auth-pin-step:not([style*="display: none"])) .auth-top-content,
body.auth-pin-active .auth-header,
.auth-section:has(#auth-pin-step:not([style*="display: none"])) .auth-header,
body.auth-pin-active .auth-rotating-text-container,
.auth-section:has(#auth-pin-step:not([style*="display: none"])) .auth-rotating-text-container {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.auth-pin-active .auth-form-column,
.auth-form-column:has(#auth-pin-step:not([style*="display: none"])),
.auth-modern-inner > .auth-form-column:has(#auth-pin-step:not([style*="display: none"])),
.authentication-inner.auth-modern-inner > div.auth-form-column:has(#auth-pin-step:not([style*="display: none"])),
body.auth-pin-active .authentication-inner.auth-modern-inner > div.auth-form-column {
  padding-block: 1.25rem !important;
  justify-content: center !important;
}

@media (min-height: 520px) {
  body.auth-pin-active .auth-form-column,
  .auth-form-column:has(#auth-pin-step:not([style*="display: none"])),
  .auth-modern-inner > .auth-form-column:has(#auth-pin-step:not([style*="display: none"])),
  .authentication-inner.auth-modern-inner > div.auth-form-column:has(#auth-pin-step:not([style*="display: none"])),
  body.auth-pin-active .authentication-inner.auth-modern-inner > div.auth-form-column {
    overflow-y: hidden !important;
  }
}

@media (max-width: 767.98px) {
  body.auth-pin-active .auth-section,
  .auth-section:has(#auth-pin-step:not([style*="display: none"])) {
    min-height: auto;
    justify-content: center;
  }

  #auth-pin-step {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    margin-block: auto;
  }
}

.pin-header .auth-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bs-heading-color, var(--bs-body-color));
}

.pin-account-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 0.35rem;
}

.pin-account-text {
  font-size: 0.9375rem;
  max-width: 320px;
  margin-inline: auto;
  line-height: 1.45;
  word-break: break-word;
}

.pin-account-text .pin-account-name {
  font-weight: 600;
  color: var(--bs-heading-color, var(--bs-body-color));
}

.pin-account-action {
  margin-top: 0.25rem;
}

.pin-account-action a {
  transition: opacity 0.15s ease, color 0.15s ease;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--bs-border-radius-pill, 50rem);
}

.pin-account-action a:hover {
  text-decoration: underline !important;
  opacity: 0.85;
}

#auth-pin-step .pin-keypad-container {
  margin-bottom: var(--pin-keypad-margin-bottom, 2.25rem) !important;
}

/* ==========================================================================
   9. FLUID MOTION & SLIDE TRANSITIONS
   ========================================================================== */
@keyframes authPageEnter {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes authSlideInRight {
  from {
    opacity: 0;
    transform: translate3d(12px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes authSlideInLeft {
  from {
    opacity: 0;
    transform: translate3d(-12px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.auth-section,
.slide-in-right,
.slide-in-left {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.slide-in-right {
  animation: authSlideInRight 0.22s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

.slide-in-left {
  animation: authSlideInLeft 0.22s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

/* ==========================================================================
   10. ONBOARDING & CENTERED AUTH WRAPPER (Standard Seamless Page Background)
   ========================================================================== */
.auth-centered-wrapper,
.auth-modern-wrapper.auth-centered-wrapper {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  height: auto !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 2.5rem 1.25rem !important;
  box-sizing: border-box !important;
  position: relative !important;
  background-color: var(--auth-bg-color, var(--bs-body-bg)) !important;
}

[data-bs-theme="dark"] .auth-centered-wrapper,
[data-bs-theme="dark"] .auth-modern-wrapper.auth-centered-wrapper {
  background-color: var(--bs-body-bg, #141414) !important;
}

.auth-form-column.auth-form-column-lg,
.auth-onboarding-column {
  flex: 0 1 380px !important;
  width: 100% !important;
  max-width: 380px !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  background: transparent !important;
}

.auth-form-column.auth-form-column-lg .auth-section,
.auth-form-column.auth-form-column-lg .auth-section.auth-section-lg,
.auth-onboarding-column .auth-section,
.auth-onboarding-column .auth-section.auth-section-lg {
  max-width: 380px !important;
  width: 100% !important;
  margin: 0 auto !important;
  background: transparent !important;
}

@media (max-width: 767.98px) {
  .auth-centered-wrapper,
  .auth-modern-wrapper.auth-centered-wrapper {
    padding: 1.5rem 1.25rem !important;
  }

  .auth-form-column.auth-form-column-lg,
  .auth-onboarding-column {
    flex: 0 1 100% !important;
    max-width: 380px !important;
  }
}

/* ==========================================================================
   11. ONBOARDING 2-STEP STEPPER & PROGRESS
   ========================================================================== */
.onboarding-step-pane {
  animation: authStepFade 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes authStepFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-step-progress,
.auth-segmented-progress {
  width: 100%;
}

.auth-step-progress .progress,
.auth-segmented-progress .progress {
  background-color: rgba(var(--bs-primary-rgb), 0.12) !important;
  overflow: hidden !important;
  height: 4px !important;
  border-radius: 50rem !important;
}

[data-bs-theme="dark"] .auth-segmented-progress .progress {
  background-color: rgba(255, 255, 255, 0.12) !important;
}

.auth-step-progress .progress-bar,
.auth-segmented-progress .progress-bar {
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border-radius: 50rem !important;
}

/* ==========================================================================
   12. ONBOARDING GENDER PILLS & TOM SELECT HARMONY
   ========================================================================== */
.auth-gender-pills {
  display: flex;
  gap: 0.75rem;
  width: 100%;
}

.auth-gender-pill {
  border: 1px solid var(--bs-border-color) !important;
  background-color: var(--bs-paper-bg, var(--bs-body-bg)) !important;
  color: var(--bs-secondary-color) !important;
  border-radius: 50rem !important;
  -webkit-border-radius: 50rem !important;
  padding: 0 1rem !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important; /* Locked at 600 so font metrics and baseline never shift between states */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: var(--bs-control-height, 48px) !important;
  min-height: var(--bs-control-height, 48px) !important;
  cursor: pointer;
  user-select: none;
  box-sizing: border-box !important;
  transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
  box-shadow: none !important;
  transform-origin: center center !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  transform: translateZ(0);
  will-change: transform;
}

.auth-gender-pill i,
.auth-gender-pill span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  pointer-events: none;
}

.auth-gender-pill i {
  font-size: 1.25rem !important;
  height: 1em !important;
  width: 1em !important;
  margin-right: 0.375rem !important;
  transform: translateY(-0.5px); /* Optical alignment with text cap-height */
}

[data-bs-theme="dark"] .auth-gender-pill {
  background-color: var(--bs-paper-bg, #1e1e1e) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: var(--bs-secondary-color, var(--bs-secondary, #707070)) !important;
}

.auth-gender-pill:hover:not(.is-invalid),
[data-bs-theme="dark"] .auth-gender-pill:hover:not(.is-invalid) {
  border-color: var(--bs-primary) !important;
  color: var(--bs-primary) !important;
  background-color: rgba(var(--bs-primary-rgb), 0.08) !important;
}

.auth-gender-pill.active,
[data-bs-theme="dark"] .auth-gender-pill.active {
  background-color: rgba(var(--bs-primary-rgb), 0.16) !important;
  border-color: var(--bs-primary) !important;
  color: var(--bs-primary) !important;
  font-weight: 600 !important;
}

.auth-gender-pill.active i,
[data-bs-theme="dark"] .auth-gender-pill.active i {
  color: var(--bs-primary) !important;
}

.auth-gender-pill:active {
  transform: scale(0.96) translateZ(0) !important;
  transition: transform 0.08s ease !important;
}

/* Tom Select Pill Harmony in Auth Views */
.auth-form .ts-wrapper,
.auth-section .ts-wrapper,
.auth-form div.ts-wrapper.form-select,
.auth-section div.ts-wrapper.form-select,
.auth-form .auth-input .ts-wrapper,
.auth-section .auth-input .ts-wrapper {
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  height: auto !important;
  min-height: 0 !important;
  line-height: normal !important;
  width: 100% !important;
}

.auth-form .ts-wrapper.form-select .ts-control,
.auth-section .ts-wrapper.form-select .ts-control,
.auth-form .ts-wrapper .ts-control,
.auth-section .ts-wrapper .ts-control,
.auth-form .ts-control,
.auth-section .ts-control {
  border-radius: 50rem !important;
  -webkit-border-radius: 50rem !important;
  min-height: var(--bs-control-height, 48px) !important;
  height: var(--bs-control-height, 48px) !important;
  padding-left: 1.25rem !important;
  padding-right: 2.25rem !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  font-size: var(--bs-font-size-text, 0.9375rem) !important;
  background-color: var(--bs-paper-bg, #ffffff) !important;
  border: 1px solid var(--bs-border-color, #e5e5e5) !important;
  color: var(--bs-heading-color) !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  width: 100% !important;
  background-position: right 1.25rem center !important;
}

.auth-form .ts-control > input,
.auth-section .ts-control > input {
  height: 100% !important;
  line-height: calc(var(--bs-control-height, 48px) - 2px) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  text-indent: 0 !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
}

.auth-form .ts-control .item,
.auth-section .ts-control .item {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  line-height: 1 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  text-indent: 0 !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
}

.auth-form .ts-control .placeholder,
.auth-section .ts-control .placeholder {
  line-height: inherit !important;
  padding: 0 !important;
  margin: 0 !important;
}

[data-bs-theme="dark"] .auth-form .ts-wrapper.form-select .ts-control,
[data-bs-theme="dark"] .auth-section .ts-wrapper.form-select .ts-control,
[data-bs-theme="dark"] .auth-form .ts-wrapper .ts-control,
[data-bs-theme="dark"] .auth-section .ts-wrapper .ts-control,
[data-bs-theme="dark"] .auth-form .ts-control,
[data-bs-theme="dark"] .auth-section .ts-control {
  background-color: var(--bs-paper-bg, #1e1e1e) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: var(--bs-heading-color, #e9e9e9) !important;
}

.auth-form .ts-wrapper.dropdown-active .ts-control,
.auth-section .ts-wrapper.dropdown-active .ts-control {
  border-color: var(--bs-primary) !important;
  box-shadow: none !important;
}

[data-bs-theme="dark"] .auth-form .ts-wrapper.dropdown-active .ts-control,
[data-bs-theme="dark"] .auth-section .ts-wrapper.dropdown-active .ts-control {
  border-color: var(--bs-primary) !important;
  box-shadow: none !important;
}

.auth-form .ts-dropdown {
  border-radius: 0.75rem !important;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid var(--bs-border-color) !important;
}

[data-bs-theme="dark"] .auth-form .ts-dropdown {
  background-color: var(--bs-paper-bg, #1e1e1e) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
}

/* Invalid State Polish */
.auth-section .form-control.is-invalid,
.auth-section .form-select.is-invalid,
.auth-section .ts-wrapper.is-invalid .ts-control,
.auth-section .auth-gender-pill.is-invalid:not(.active),
.auth-section .auth-gender-pills.is-invalid .auth-gender-pill:not(.active) {
  border: 1px solid var(--bs-danger, #ff3e1d) !important;
  box-shadow: none !important;
}

.auth-section .form-control.is-invalid:focus,
.auth-section .form-select.is-invalid:focus,
.auth-section .auth-gender-pill.is-invalid:focus:not(.active) {
  border: 1px solid var(--bs-danger, #ff3e1d) !important;
  box-shadow: 0 0 0 3px rgba(var(--bs-danger-rgb, 255, 62, 29), 0.2) !important;
}

/* Auth Uniform Control Heights & Pill Shaping */
.auth-form .form-control.rounded-pill,
.auth-form input.form-control.rounded-pill,
.auth-section .form-control.rounded-pill,
.auth-section input.form-control.rounded-pill {
  border-radius: 50rem !important;
  -webkit-border-radius: 50rem !important;
  height: var(--bs-control-height, 48px) !important;
  min-height: var(--bs-control-height, 48px) !important;
  padding: 0 1.25rem !important;
  font-size: var(--bs-font-size-text, 0.9375rem) !important;
}

.auth-form .auth-gender-pill,
.auth-section .auth-gender-pill {
  border-radius: 50rem !important;
  -webkit-border-radius: 50rem !important;
  height: var(--bs-control-height, 48px) !important;
  min-height: var(--bs-control-height, 48px) !important;
  padding: 0 1rem !important;
}

.auth-form .auth-submit-btn .btn.rounded-pill,
.auth-section .auth-submit-btn .btn.rounded-pill {
  border-radius: 50rem !important;
  -webkit-border-radius: 50rem !important;
  height: var(--bs-control-height, 48px) !important;
  min-height: var(--bs-control-height, 48px) !important;
  font-size: var(--bs-font-size-btn, 0.9375rem) !important;
}

/* Floating WhatsApp Admin Button (Strict Perfect Circle, Zero Shadow/Glow) */
#floatingWaBtn,
.btn-floating-wa,
a#floatingWaBtn,
.auth-modern-wrapper #floatingWaBtn,
.authentication-wrapper #floatingWaBtn {
  position: fixed !important;
  bottom: 30px !important;
  right: 30px !important;
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  max-width: 56px !important;
  max-height: 56px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  -webkit-border-radius: 50% !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  outline: none !important;
  background-color: var(--bs-primary, #ff5911) !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  text-decoration: none !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
  z-index: 1050 !important;
  cursor: pointer !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease !important;
}

#floatingWaBtn:hover,
.btn-floating-wa:hover,
a#floatingWaBtn:hover,
#floatingWaBtn:focus,
.btn-floating-wa:focus,
a#floatingWaBtn:focus,
#floatingWaBtn:focus-visible,
.btn-floating-wa:focus-visible,
a#floatingWaBtn:focus-visible {
  transform: scale(1.06) !important;
  background-color: var(--bs-primary, #ff5911) !important;
  color: #ffffff !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  outline: none !important;
}

#floatingWaBtn:active,
.btn-floating-wa:active,
a#floatingWaBtn:active {
  transform: scale(0.95) !important;
  background-color: var(--bs-primary, #ff5911) !important;
  color: #ffffff !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  outline: none !important;
}

#floatingWaBtn i,
.btn-floating-wa i {
  font-size: 32px !important;
  line-height: 1 !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #ffffff !important;
  pointer-events: none !important;
}



