/* BonusPoint.Admin Design System & Theme Enhancements */

/* Font Switcher Utility Classes */
[data-admin-font="inter"], [data-admin-font="inter"] body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

[data-admin-font="roboto"], [data-admin-font="roboto"] body {
  font-family: 'Roboto', sans-serif !important;
}

[data-admin-font="outfit"], [data-admin-font="outfit"] body {
  font-family: 'Outfit', sans-serif !important;
}

[data-admin-font="poppins"], [data-admin-font="poppins"] body {
  font-family: 'Poppins', sans-serif !important;
}

[data-admin-font="jakarta"], [data-admin-font="jakarta"] body {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

[data-admin-font="space-grotesk"], [data-admin-font="space-grotesk"] body {
  font-family: 'Space Grotesk', sans-serif !important;
}

[data-admin-font="dm-sans"], [data-admin-font="dm-sans"] body {
  font-family: 'DM Sans', sans-serif !important;
}

[data-admin-font="urbanist"], [data-admin-font="urbanist"] body {
  font-family: 'Urbanist', sans-serif !important;
}

[data-admin-font="sora"], [data-admin-font="sora"] body {
  font-family: 'Sora', sans-serif !important;
}

[data-admin-font="lexend"], [data-admin-font="lexend"] body {
  font-family: 'Lexend', sans-serif !important;
}

[data-admin-font="manrope"], [data-admin-font="manrope"] body {
  font-family: 'Manrope', sans-serif !important;
}

[data-admin-font="nunito"], [data-admin-font="nunito"] body {
  font-family: 'Nunito', sans-serif !important;
}

[data-admin-font="syne"], [data-admin-font="syne"] body {
  font-family: 'Syne', sans-serif !important;
}

/* 6 Theme Color Preset Options */
[data-admin-color="blue"], html[data-admin-color="blue"] {
  --tblr-primary: #206bc4;
  --tblr-primary-rgb: 32, 107, 196;
}
[data-bs-theme="dark"][data-admin-color="blue"], html[data-bs-theme="dark"][data-admin-color="blue"] {
  --tblr-primary: #4299e1;
  --tblr-primary-rgb: 66, 153, 225;
}

[data-admin-color="purple"], html[data-admin-color="purple"] {
  --tblr-primary: #6f42c1;
  --tblr-primary-rgb: 111, 66, 193;
}
[data-bs-theme="dark"][data-admin-color="purple"], html[data-bs-theme="dark"][data-admin-color="purple"] {
  --tblr-primary: #a78bfa;
  --tblr-primary-rgb: 167, 139, 250;
}

[data-admin-color="green"], html[data-admin-color="green"] {
  --tblr-primary: #2fb344;
  --tblr-primary-rgb: 47, 179, 68;
}
[data-bs-theme="dark"][data-admin-color="green"], html[data-bs-theme="dark"][data-admin-color="green"] {
  --tblr-primary: #34d399;
  --tblr-primary-rgb: 52, 211, 153;
}

[data-admin-color="red"], html[data-admin-color="red"] {
  --tblr-primary: #d63939;
  --tblr-primary-rgb: 214, 57, 57;
}
[data-bs-theme="dark"][data-admin-color="red"], html[data-bs-theme="dark"][data-admin-color="red"] {
  --tblr-primary: #f87171;
  --tblr-primary-rgb: 248, 113, 113;
}

[data-admin-color="amber"], html[data-admin-color="amber"] {
  --tblr-primary: #f59f00;
  --tblr-primary-rgb: 245, 159, 0;
}
[data-bs-theme="dark"][data-admin-color="amber"], html[data-bs-theme="dark"][data-admin-color="amber"] {
  --tblr-primary: #fbbf24;
  --tblr-primary-rgb: 251, 191, 36;
}

[data-admin-color="teal"], html[data-admin-color="teal"] {
  --tblr-primary: #0ca678;
  --tblr-primary-rgb: 12, 166, 120;
}
[data-bs-theme="dark"][data-admin-color="teal"], html[data-bs-theme="dark"][data-admin-color="teal"] {
  --tblr-primary: #2dd4bf;
  --tblr-primary-rgb: 45, 212, 191;
}

/* Modal Z-Index Stacking Context Fix */
.modal-backdrop {
  z-index: 1050 !important;
}
.modal {
  z-index: 1060 !important;
}
.modal-dialog {
  z-index: 1065 !important;
}

:root {
  --admin-header-height: 3.25rem;
  --admin-transition-speed: 0.25s;
  --admin-card-border-radius: 0.75rem;
  --admin-primary-gradient: linear-gradient(135deg, #206bc4 0%, #4299e1 100%);
}

/* Base resets & smooth transitions */
html, body {
  min-height: 100vh;
  transition: background-color var(--admin-transition-speed) ease, color var(--admin-transition-speed) ease;
}

.page {
  position: relative;
  min-height: 100vh;
}

/* Light & low opacity repeating reward doodle background overlay */
.page::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('../images/bg_pattern.jpg');
  background-repeat: repeat;
  background-size: 280px 280px;
  pointer-events: none;
  z-index: 0;
  transition: opacity var(--admin-transition-speed) ease;
}

/* Light Theme: 12% opacity for clear yet elegant doodle visibility */
[data-bs-theme="light"] .page::before {
  opacity: 0.12;
  filter: contrast(0.7) brightness(1.05);
}

/* Dark Theme: 14% opacity for clear inverted doodle visibility */
[data-bs-theme="dark"] .page::before {
  opacity: 0.14;
  filter: invert(1) contrast(0.75) brightness(0.85);
}

/* Login Screen Override: Smooth continuous scrolling background image with fluid motion */
.page:has(.auth-page-container)::before,
body:has(.auth-page-container) .page::before {
  background-image: url('../images/login_bg_fluid.jpg') !important;
  background-repeat: repeat-x !important;
  background-size: 200% 100% !important;
  background-position: 0% 50% !important;
  opacity: 1 !important;
  animation: fluidBgScroll 22s linear infinite !important;
  will-change: background-position;
}

@keyframes fluidBgScroll {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

/* Ensure main wrapper content stays above background overlay */
.page-wrapper {
  position: relative;
  z-index: 1;
}

/* Full 100% width layout resets */
.container-xl, .container-lg, .container-md, .container-sm, .container-fluid {
  max-width: 100% !important;
  width: 100% !important;
}

/* Page body margin & padding reset to eliminate top vertical space */
.page-body {
  margin-top: 0 !important;
  padding-top: 0.5rem !important;
}

.page-header {
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 0.75rem !important;
}

/* Sidebar Menu Hover & Active Highlights */
.navbar-vertical .nav-link {
  border-radius: 0.5rem;
  margin: 0.1rem 0.5rem;
  padding: 0.5rem 0.75rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.navbar-vertical .nav-link .nav-link-icon,
.navbar-vertical .dropdown-item .dropdown-item-icon {
  transition: transform 0.2s ease, color 0.2s ease;
}

/* Light Theme Hover State */
[data-bs-theme="light"] .navbar-vertical .nav-link:hover,
[data-bs-theme="light"] .navbar-vertical .dropdown-item:hover {
  background: rgba(var(--tblr-primary-rgb), 0.09) !important;
  color: var(--tblr-primary) !important;
  transform: translateX(4px);
  box-shadow: 0 2px 6px rgba(var(--tblr-primary-rgb), 0.1);
}

[data-bs-theme="light"] .navbar-vertical .nav-link:hover .nav-link-icon,
[data-bs-theme="light"] .navbar-vertical .dropdown-item:hover .dropdown-item-icon {
  color: var(--tblr-primary) !important;
  transform: scale(1.18);
}

/* Dark Theme Hover State */
[data-bs-theme="dark"] .navbar-vertical .nav-link:hover,
[data-bs-theme="dark"] .navbar-vertical .dropdown-item:hover {
  background: rgba(var(--tblr-primary-rgb), 0.18) !important;
  color: var(--tblr-primary) !important;
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

[data-bs-theme="dark"] .navbar-vertical .nav-link:hover .nav-link-icon,
[data-bs-theme="dark"] .navbar-vertical .dropdown-item:hover .dropdown-item-icon {
  color: var(--tblr-primary) !important;
  transform: scale(1.18);
}

/* Active Item Highlight Styling */
.navbar-vertical .nav-item.active > .nav-link,
.navbar-vertical .dropdown-item.active {
  font-weight: 600;
  border-left: 3px solid var(--tblr-primary) !important;
}

[data-bs-theme="light"] .navbar-vertical .nav-item.active > .nav-link,
[data-bs-theme="light"] .navbar-vertical .dropdown-item.active {
  background: rgba(var(--tblr-primary-rgb), 0.12) !important;
  color: var(--tblr-primary) !important;
}

[data-bs-theme="dark"] .navbar-vertical .nav-item.active > .nav-link,
[data-bs-theme="dark"] .navbar-vertical .dropdown-item.active {
  background: rgba(var(--tblr-primary-rgb), 0.22) !important;
  color: var(--tblr-primary) !important;
}

.navbar-vertical .dropdown-item.active {
  font-weight: 600;
  border-left: 3px solid var(--tblr-primary) !important;
}

.navbar-vertical .dropdown-item.active .dropdown-item-icon {
  color: var(--tblr-primary) !important;
}

.navbar-vertical .dropdown-item {
  border-radius: 0.375rem;
  margin: 0.1rem 0.35rem;
  padding: 0.4rem 0.65rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  /* Bootstrap forces white-space: nowrap on .dropdown-item, which — combined with the
     navbar-vertical container's overflow-x: auto — turns any label that's a few px too
     wide for the fixed sidebar column into a horizontal scrollbar for the whole menu
     ("Auto Action Schedule", "OK$ Point Transfer"). Wrapping to a second line instead
     keeps long labels contained without a fixed-width/truncation workaround that could
     break again with the next long label. */
  white-space: normal;
}

/* Light Theme overrides & enhancements */
[data-bs-theme="light"] {
  --tblr-body-bg: #f4f6fa;
  --tblr-card-bg: #ffffff;
  --tblr-border-color: #e6e8ec;
  --admin-topbar-bg: rgba(255, 255, 255, 0.95);
  --admin-card-shadow: 0 4px 12px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.05);
  --admin-hover-bg: rgba(0, 0, 0, 0.04);
}

/* Dark Theme overrides & enhancements */
[data-bs-theme="dark"] {
  --tblr-body-bg: #0b1320;
  --tblr-card-bg: #151f2c;
  --tblr-border-color: #243042;
  --admin-topbar-bg: rgba(21, 31, 44, 0.92);
  --admin-card-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --admin-hover-bg: rgba(255, 255, 255, 0.06);
}

/* Modern Topbar / Header Navbar */
.admin-topbar {
  min-height: var(--admin-header-height);
  background-color: var(--admin-topbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--tblr-border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color var(--admin-transition-speed) ease, border-color var(--admin-transition-speed) ease;
}

/* Breadcrumb Navigation Styling */
.breadcrumb-arrows .breadcrumb-item + .breadcrumb-item::before {
  content: "›" !important;
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.35rem;
  opacity: 0.5;
}

.breadcrumb-item a {
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--tblr-secondary);
  transition: color 0.15s ease;
}

.breadcrumb-item a:hover {
  color: var(--tblr-primary);
}

.breadcrumb-item.active {
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Form Controls & Labels */
.form-label.required::after {
  content: " *" !important;
  color: #d63939;
  font-weight: bold;
}

/* Enhanced Form Controls & Soft Glowing Focus Shadows */
.form-control,
.form-select,
.form-check-input {
  border-radius: 0.5rem;
  border: 1px solid var(--tblr-border-color);
  transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease-in-out;
}

/* Light Theme Focus State: Beautiful soft glowing primary shadow ring */
[data-bs-theme="light"] .form-control:focus,
[data-bs-theme="light"] .form-select:focus,
[data-bs-theme="light"] .form-check-input:focus {
  border-color: var(--tblr-primary) !important;
  box-shadow: 0 0 0 0.25rem rgba(var(--tblr-primary-rgb), 0.18), 0 2px 10px rgba(var(--tblr-primary-rgb), 0.12) !important;
  outline: none;
}

/* Dark Theme Focus State: Beautiful glowing primary shadow ring */
[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus,
[data-bs-theme="dark"] .form-check-input:focus {
  border-color: var(--tblr-primary) !important;
  box-shadow: 0 0 0 0.25rem rgba(var(--tblr-primary-rgb), 0.25), 0 0 14px rgba(var(--tblr-primary-rgb), 0.22) !important;
  outline: none;
}

/* Custom logo upload preview box styling */
.company-logo-preview-box {
  width: 72px;
  height: 72px;
  border-radius: 0.65rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background-color: var(--tblr-card-bg);
}

[data-bs-theme="light"] .company-logo-preview-box {
  border: 2px dashed rgba(32, 107, 196, 0.3);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

[data-bs-theme="dark"] .company-logo-preview-box {
  border: 2px dashed rgba(66, 153, 225, 0.4);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.company-logo-preview-box:hover {
  border-color: var(--tblr-primary);
}

/* Section Header Dividers for Edit Views */
.form-section-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tblr-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--tblr-border-color);
  opacity: 0.7;
}

/* Grid Table Action Buttons with Icons */
.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.8125rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.15s ease-in-out;
  white-space: nowrap;
}

.btn-action .icon {
  width: 1rem;
  height: 1rem;
  stroke-width: 2;
}

/* Modernized Theme Toggle Button */
.btn-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 2rem;
  border: 1px solid var(--tblr-border-color);
  background-color: transparent;
  color: var(--tblr-body-color);
  font-weight: 500;
  font-size: 0.8125rem;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.btn-theme-toggle:hover {
  background-color: var(--admin-hover-bg);
  border-color: var(--tblr-primary);
  color: var(--tblr-primary);
  transform: translateY(-1px);
}

.btn-theme-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin="round";
}

/* Dropdown item icons */
.dropdown-item-icon {
  margin-right: 0.5rem;
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  opacity: 0.85;
  vertical-align: text-bottom;
}

/* Enhanced Cards & Stats */
.card {
  border-radius: var(--admin-card-border-radius);
  border: 1px solid var(--tblr-border-color);
  box-shadow: var(--admin-card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color var(--admin-transition-speed) ease;
}

.card-header {
  border-bottom: 1px solid var(--tblr-border-color);
  background-color: transparent;
  padding: 0.85rem 1.25rem;
}

.card-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.card-body .subheader {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  font-size: 0.75rem;
  opacity: 0.75;
}

/* Tom Select Dark Theme Support */
[data-bs-theme="dark"] .ts-control {
  background-color: var(--tblr-card-bg) !important;
  color: var(--tblr-body-color) !important;
  border-color: var(--tblr-border-color) !important;
}

[data-bs-theme="dark"] .ts-dropdown {
  background-color: var(--tblr-card-bg) !important;
  color: var(--tblr-body-color) !important;
  border-color: var(--tblr-border-color) !important;
}

[data-bs-theme="dark"] .ts-dropdown .option {
  color: var(--tblr-body-color) !important;
}

[data-bs-theme="dark"] .ts-dropdown .option.active,
[data-bs-theme="dark"] .ts-dropdown .option:hover {
  background-color: var(--admin-hover-bg) !important;
  color: var(--tblr-primary) !important;
}

/* Sidebar styling tweaks */
.navbar-vertical {
  border-right: 1px solid var(--tblr-border-color);
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, background-color var(--admin-transition-speed) ease, border-color var(--admin-transition-speed) ease;
}

.page-wrapper {
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Top-Right Toaster Container Styling */
.toast-container {
  max-width: 420px;
  width: calc(100% - 2rem);
  pointer-events: none;
  z-index: 1090;
}

.toast-container .toast,
.custom-toast {
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem !important;
  background: var(--tblr-card-bg, #ffffff) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--tblr-border-color, rgba(220, 225, 235, 0.7)) !important;
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.16), 0 4px 14px -2px rgba(0, 0, 0, 0.08) !important;
  animation: toastSlideIn 0.38s cubic-bezier(0.34, 1.45, 0.64, 1);
  transition: all 0.3s ease;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(-24px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Vertical Accent Bar on the Left */
.custom-toast .toast-accent {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  border-radius: 0.75rem 0 0 0.75rem;
}

.custom-toast.toast-success .toast-accent {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

.custom-toast.toast-error .toast-accent,
.custom-toast.toast-danger .toast-accent {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}

.custom-toast.toast-warning .toast-accent {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
}

.custom-toast.toast-info .toast-accent {
  background: linear-gradient(180deg, #06b6d4 0%, #0891b2 100%);
}

/* Toast Text Formatting */
.custom-toast .toast-title {
  line-height: 1.25;
  color: var(--tblr-body-color, #1e293b);
}

.custom-toast .toast-message {
  line-height: 1.35;
  word-break: break-word;
}

/* Animated Progress Bar at Bottom */
.custom-toast .toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  opacity: 0.85;
  animation: toastProgress 5s linear forwards;
}

.custom-toast.toast-error .toast-progress {
  animation-duration: 6s;
}

/* Sticky toasts don't auto-hide, so a countdown bar would mislead by running out while the
   toast stays open regardless — hide it rather than let it visually finish and lie. */
.custom-toast.toast-sticky .toast-progress {
  display: none;
}

@keyframes toastProgress {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

/* Dark Mode Toast Tweaks */
html[data-bs-theme="dark"] .custom-toast,
body[data-bs-theme="dark"] .custom-toast {
  background: rgba(24, 32, 47, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.45), 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}

/* Desktop Sidebar Collapse Mode */
@media (min-width: 992px) {
  body.sidebar-collapsed .navbar-vertical,
  html.sidebar-collapsed .navbar-vertical {
    margin-left: -260px !important;
    opacity: 0;
    pointer-events: none;
  }

  body.sidebar-collapsed .page-wrapper,
  html.sidebar-collapsed .page-wrapper {
    margin-left: 0 !important;
    width: 100% !important;
  }
}

/* Sleek Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(140, 150, 165, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(140, 150, 165, 0.5);
}

/* ==========================================
   AUTH PAGES & LOGIN SCREEN IMPROVEMENTS
   ========================================== */

/* Login Screen: Eliminate scrollbars completely */
html:has(.auth-page-container),
body:has(.auth-page-container),
.page:has(.auth-page-container),
body:has(.auth-page-container) .page-wrapper {
  overflow: hidden !important;
  height: 100vh !important;
  max-height: 100vh !important;
}

body:has(.auth-page-container) .page-body {
  padding: 0 !important;
  margin: 0 !important;
}

/* Auth Layout Container & Gemini Fluid Background */
.auth-page-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2.5rem 1rem;
  background: transparent !important;
}

/* Live Full-Screen Video Background (Video Tutorial Reference: GcPulry8cBs) */
.auth-bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.auth-bg-video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.35) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 0;
  pointer-events: none;
}

/* Animated SVG Fluid Liquid Wave Wrapper */
.auth-fluid-waves-wrapper {
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 60%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.auth-fluid-wave {
  position: absolute;
  bottom: 0;
  left: -5%;
  width: 110%;
  height: 100%;
  will-change: transform;
}

.auth-fluid-wave.wave-1 {
  animation: dynamicWave1 7s ease-in-out infinite alternate;
  filter: blur(4px);
}

.auth-fluid-wave.wave-2 {
  animation: dynamicWave2 10s ease-in-out infinite alternate-reverse;
  filter: blur(8px);
}

.auth-fluid-wave.wave-3 {
  animation: dynamicWave3 13s ease-in-out infinite alternate;
  filter: blur(12px);
}

@keyframes dynamicWave1 {
  0% { transform: translateX(-6%) translateY(0) scaleY(1); }
  50% { transform: translateX(6%) translateY(-30px) scaleY(1.18); }
  100% { transform: translateX(-3%) translateY(20px) scaleY(0.9); }
}

@keyframes dynamicWave2 {
  0% { transform: translateX(5%) translateY(0) scaleY(1.12); }
  50% { transform: translateX(-7%) translateY(35px) scaleY(0.88); }
  100% { transform: translateX(3%) translateY(-25px) scaleY(1.05); }
}

@keyframes dynamicWave3 {
  0% { transform: translateX(-3%) translateY(15px) scaleY(0.95); }
  50% { transform: translateX(5%) translateY(-25px) scaleY(1.15); }
  100% { transform: translateX(-5%) translateY(10px) scaleY(1); }
}

/* Subtle Soft Vignette Overlay */
.auth-page-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 0%, rgba(248, 250, 252, 0.32) 100%);
  pointer-events: none;
  z-index: 0;
}

html[data-bs-theme="dark"] .auth-page-container::after {
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.85) 100%);
}

/* Gemini Glassmorphic Auth Hero Card */
.auth-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 26px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.12), 0 0 1px 1px rgba(255, 255, 255, 1) inset;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  overflow: hidden;
}

html[data-bs-theme="dark"] .auth-card {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(51, 65, 85, 0.8);
  box-shadow: 0 35px 70px -15px rgba(0, 0, 0, 0.75), 0 0 1px 1px rgba(255, 255, 255, 0.08) inset;
}

.auth-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.18);
}

/* Split Layout Hero Card (Left Big Logo | Separator | Right Login Form) */
.auth-split-card {
  max-width: 880px !important;
}

/* Big Centered Logo in Left Section */
.auth-brand-logo-big-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem;
}

.auth-brand-logo-big {
  max-height: 220px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(15, 23, 42, 0.15));
  transition: transform 0.4s ease, filter 0.4s ease;
}

.auth-brand-logo-big:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 16px 36px rgba(16, 185, 129, 0.28));
}

.auth-split-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .auth-split-wrapper {
    flex-direction: row;
    align-items: stretch;
    gap: 2.25rem;
  }

  .auth-split-left {
    flex: 0 0 38%;
    max-width: 38%;
    padding-right: 0.5rem;
  }

  .auth-split-separator {
    width: 1px;
    align-self: stretch;
    background: linear-gradient(to bottom, transparent 0%, rgba(16, 185, 129, 0.35) 25%, rgba(245, 159, 0, 0.35) 75%, transparent 100%);
    margin: 0.25rem 0;
  }

  .auth-split-right {
    flex: 1;
    padding-left: 0.5rem;
  }
}

@media (max-width: 767.98px) {
  .auth-split-left {
    text-align: center;
  }

  .auth-split-separator {
    height: 1px;
    width: 100%;
    background: linear-gradient(to right, transparent 0%, rgba(16, 185, 129, 0.35) 25%, rgba(245, 159, 0, 0.35) 75%, transparent 100%);
    margin: 0.75rem 0;
  }
}

/* Explicit High-Contrast Label Typography */
.auth-card .form-label {
  color: #0f172a !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
}

html[data-bs-theme="dark"] .auth-card .form-label {
  color: #f8fafc !important;
}

.auth-card .h3 {
  color: #0f172a !important;
}

html[data-bs-theme="dark"] .auth-card .h3 {
  color: #f8fafc !important;
}

/* Top Brand Emerald-Gold Accent Bar */
.auth-card-top-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #15803d 0%, #2fb344 35%, #f59f00 70%, #d97706 100%);
  border-radius: 26px 26px 0 0;
}

/* Brand Logo Wrapper & Image Styling */
.auth-brand-logo-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-brand-logo-img {
  max-height: 120px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.08));
  transition: filter 0.35s ease, transform 0.35s ease;
}

html[data-bs-theme="dark"] .auth-brand-logo-img {
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.6)) brightness(1.05);
}

.auth-card:hover .auth-brand-logo-wrapper {
  transform: scale(1.05);
}

/* Redesigned High-Contrast Premium Input Controls */
.auth-input-group {
  position: relative;
}

.auth-input-group .auth-input-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: #475569;
  pointer-events: none;
  transition: color 0.25s ease, transform 0.25s ease;
  z-index: 4;
}

html[data-bs-theme="dark"] .auth-input-group .auth-input-icon {
  color: #94a3b8;
}

.auth-input-group .form-control {
  padding-left: 48px;
  padding-right: 48px;
  height: 52px;
  border-radius: 14px;
  font-size: 0.98rem;
  font-weight: 500;
  border: 1.5px solid #cbd5e1 !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-bs-theme="dark"] .auth-input-group .form-control {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

.auth-input-group .form-control::placeholder {
  color: #64748b !important;
  opacity: 0.9;
}

html[data-bs-theme="dark"] .auth-input-group .form-control::placeholder {
  color: #94a3b8 !important;
}

.auth-input-group .form-control:focus {
  border-color: #15803d !important;
  box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.18), 0 4px 16px rgba(245, 159, 0, 0.12) !important;
  background-color: #ffffff !important;
}

html[data-bs-theme="dark"] .auth-input-group .form-control:focus {
  background-color: #1e293b !important;
  border-color: #34d399 !important;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.25), 0 4px 16px rgba(251, 191, 36, 0.18) !important;
}

.auth-input-group .form-control:focus ~ .auth-input-icon,
.auth-input-group:focus-within .auth-input-icon {
  color: #15803d !important;
  transform: translateY(-50%) scale(1.12);
}

html[data-bs-theme="dark"] .auth-input-group:focus-within .auth-input-icon {
  color: #34d399 !important;
}

/* Password Visibility Toggle Button */
.auth-toggle-pwd {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 8px;
  color: #64748b;
  border-radius: 10px;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.auth-toggle-pwd:hover {
  color: #15803d;
  background-color: rgba(21, 128, 61, 0.12);
}

html[data-bs-theme="dark"] .auth-toggle-pwd:hover {
  color: #34d399;
  background-color: rgba(52, 211, 153, 0.15);
}

/* Forgot Password Link styling */
.auth-link-forgot {
  color: #b45309 !important;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.auth-link-forgot:hover {
  color: #92400e !important;
  text-decoration: underline !important;
}

html[data-bs-theme="dark"] .auth-link-forgot {
  color: #fbbf24 !important;
}

html[data-bs-theme="dark"] .auth-link-forgot:hover {
  color: #fde047 !important;
}

/* Redesigned High-Impact Submit Action Button */
.auth-btn-submit {
  height: 52px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #15803d 0%, #2fb344 50%, #f59f00 100%);
  border: none;
  box-shadow: 0 10px 25px -4px rgba(21, 128, 61, 0.45), 0 4px 12px rgba(245, 159, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.auth-btn-submit::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.auth-btn-submit:hover::before {
  left: 100%;
}

.auth-btn-submit:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 16px 32px -4px rgba(21, 128, 61, 0.55), 0 6px 16px rgba(245, 159, 0, 0.4);
}

.auth-btn-submit:active {
  transform: translateY(0) scale(0.99);
}

/* Unauthenticated Navigation Controls Bar (Top Floating Bar) */
.unauth-top-bar {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}