/* ==========================================================================
   WEBSIRG MOBILE CONTROLLER SAAS - GLOBAL LAYOUT
   ========================================================================== */

/* Main Layout Grid */
.app-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  background-color: var(--bg-app);
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Sidebar Styles */
.app-sidebar {
  width: var(--sidebar-width);
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: width var(--transition-normal), transform var(--transition-normal), background-color var(--transition-normal);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-header {
  height: var(--navbar-height);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  transition: transform var(--transition-fast);
}

.brand-logo-img:hover {
  transform: scale(1.03);
}

.brand-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-bright));
  color: white;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.sidebar-nav {
  padding: 16px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-section-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
  padding: 12px 14px 6px;
  margin-top: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--sidebar-text);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  text-decoration: none;
  position: relative;
}

.nav-item:hover {
  background-color: var(--sidebar-item-hover);
  color: var(--text-primary);
}

.nav-item.active {
  background-color: var(--sidebar-item-active);
  color: var(--sidebar-text-active);
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 4px;
  background: var(--brand-orange-bright);
  border-radius: 0 4px 4px 0;
}

.nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-icon svg {
  width: 19px;
  height: 19px;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
}

.nav-badge {
  margin-left: auto;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--sidebar-border);
  background-color: var(--sidebar-bg);
}

.user-profile-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-secondary);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.user-profile-widget:hover {
  background: var(--bg-surface-tertiary);
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--brand-navy-700), var(--brand-orange));
  color: white;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Main Content Area */
.app-main {
  flex: 1 1 auto;
  margin-left: var(--sidebar-width);
  min-width: 0;
  width: calc(100% - var(--sidebar-width));
  max-width: calc(100% - var(--sidebar-width));
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  box-sizing: border-box;
  overflow-x: hidden;
  transition: margin-left var(--transition-normal), max-width var(--transition-normal), width var(--transition-normal);
}

.sidebar-collapsed .app-main {
  margin-left: var(--sidebar-collapsed-width);
  width: calc(100% - var(--sidebar-collapsed-width));
  max-width: calc(100% - var(--sidebar-collapsed-width));
}

/* Top Navbar */
.app-navbar {
  height: var(--navbar-height);
  background-color: var(--navbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--navbar-border);
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu-btn, .sidebar-toggle-btn {
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-menu-btn:hover, .sidebar-toggle-btn:hover {
  background-color: var(--bg-surface-secondary);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.mobile-menu-btn {
  display: none;
}

.breadcrumb-wrap {
  display: flex;
  flex-direction: column;
}

.page-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.breadcrumbs a:hover {
  color: var(--brand-orange);
}

/* Navbar Right Controls */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.global-search-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  cursor: pointer;
  min-width: 240px;
  transition: all var(--transition-fast);
}

.global-search-trigger:hover {
  background: var(--bg-surface-tertiary);
  border-color: var(--border-medium);
  color: var(--text-secondary);
}

.search-kbd {
  margin-left: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.7rem;
  font-family: monospace;
  color: var(--text-muted);
}

.nav-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

.nav-icon-btn:hover {
  background: var(--bg-surface-tertiary);
  color: var(--brand-orange);
  border-color: var(--brand-orange-light);
}

.nav-indicator-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 9px;
  height: 9px;
  background-color: var(--brand-orange-bright);
  border: 2px solid var(--navbar-bg);
  border-radius: var(--radius-full);
}

/* Quick Add Dropdown Menu */
.quick-add-wrap {
  position: relative;
}

.quick-add-btn {
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-bright));
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--brand-orange-glow);
  transition: all var(--transition-fast);
}

.quick-add-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--brand-orange-glow);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  min-width: 220px;
  padding: 8px;
  z-index: 150;
  display: none;
  animation: dropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-menu.show {
  display: block;
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-fast);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.dropdown-item:hover {
  background: var(--bg-surface-secondary);
  color: var(--brand-orange);
}

.dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 6px 0;
}

/* ==========================================================================
   TOP-RIGHT SUPER ADMIN PROFILE MENU
   ========================================================================== */
.profile-menu-wrap {
  position: relative;
  display: inline-block;
}

.profile-avatar-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--brand-orange, #ea580c), var(--brand-orange-bright, #f97316));
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  user-select: none;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.profile-avatar-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
}

.profile-avatar-btn:active {
  transform: scale(0.98);
}

.profile-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: var(--radius-lg, 12px);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  width: 260px;
  padding: 6px;
  z-index: 1000;
  display: none;
  animation: dropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-dropdown-menu.show {
  display: block;
}

.profile-dropdown-header {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle, #e2e8f0);
  margin-bottom: 4px;
}

.profile-avatar-circle-sm {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-orange, #ea580c), var(--brand-orange-bright, #f97316));
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-user-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.profile-user-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-user-email {
  font-size: 0.76rem;
  color: var(--text-muted, #64748b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-item.text-danger {
  color: var(--danger, #ef4444);
}

.dropdown-item.text-danger:hover {
  background: rgba(239, 68, 68, 0.08);
  color: var(--danger, #dc2626);
}

/* ==========================================================================
   UNIVERSAL SAAS TOGGLE SWITCH COMPONENT
   ========================================================================== */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  vertical-align: middle;
  margin: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
}

.switch input:checked + .switch-slider {
  background-color: var(--brand-orange, #ea580c);
}

.switch input:checked + .switch-slider:before {
  transform: translateX(20px);
}

/* Active Filter state for KPI Cards */
.kpi-card.active-filter {
  border-color: var(--brand-orange, #ea580c) !important;
  box-shadow: 0 0 0 2px var(--brand-orange, #ea580c), 0 10px 25px -5px rgba(234, 88, 12, 0.2) !important;
  transform: translateY(-2px);
}

/* Page Content Body */
.page-body {
  padding: 28px;
  flex: 1 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Page Footer */
.app-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  width: 100%;
  box-sizing: border-box;
  margin-top: auto;
}

/* Responsive 2fr 1fr Grid */
.grid-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .grid-2-1 {
    grid-template-columns: 1fr !important;
  }
}

/* Sidebar Drawer Backdrop for Mobile */
.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 95;
  display: none;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.sidebar-backdrop.active {
  display: block;
  opacity: 1;
}

/* Collapsed Sidebar Mode */
.sidebar-collapsed .app-sidebar {
  width: var(--sidebar-collapsed-width);
}

.sidebar-collapsed .brand-badge,
.sidebar-collapsed .nav-section-title,
.sidebar-collapsed .nav-item span,
.sidebar-collapsed .nav-badge,
.sidebar-collapsed .user-info {
  display: none !important;
}

.sidebar-collapsed .brand-logo-wrap {
  justify-content: center;
}

.sidebar-collapsed .brand-logo-img {
  max-width: 38px;
  overflow: hidden;
}

.sidebar-collapsed .nav-item {
  justify-content: center;
  padding: 12px;
}

.sidebar-collapsed .app-main {
  margin-left: var(--sidebar-collapsed-width);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .mobile-menu-btn {
    display: flex;
  }
  
  .sidebar-toggle-btn {
    display: none;
  }
  
  .app-sidebar {
    transform: translateX(-100%);
    z-index: 200;
  }
  
  .sidebar-open .app-sidebar {
    transform: translateX(0);
    box-shadow: var(--shadow-xl);
  }
  
  .app-main {
    margin-left: 0 !important;
    max-width: 100vw !important;
    width: 100% !important;
  }
  
  .global-search-trigger span,
  .search-kbd {
    display: none;
  }
  
  .global-search-trigger {
    min-width: auto;
    padding: 8px 10px;
  }
  
  .page-body {
    padding: 20px 16px;
  }
  
  .app-navbar {
    padding: 0 16px;
  }
}

@media (max-width: 640px) {
  .page-body {
    padding: 14px 10px;
  }
  
  .quick-add-btn span {
    display: none;
  }
  
  .quick-add-btn {
    padding: 8px 10px;
  }
  
  .page-title {
    font-size: 1.05rem;
  }
  
  .breadcrumbs {
    display: none;
  }
  
  .app-footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 14px 10px;
  }
}

/* ==========================================================================
   SUPER ADMIN SPLIT-SCREEN LOGIN STYLES
   Websirg Digital Solution
   ========================================================================== */
.login-split-page {
  min-height: 100vh;
  width: 100%;
  display: flex;
  background: var(--bg-app);
  overflow-x: hidden;
  font-family: var(--font-body);
}

/* Left Branding Side */
.login-branding-panel {
  flex: 1 1 48%;
  background: linear-gradient(155deg, #0A192F 0%, #0F2548 50%, #071324 100%);
  color: #FFFFFF;
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.login-branding-panel::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.login-branding-panel::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -80px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.16) 0%, transparent 70%);
  pointer-events: none;
}

.branding-top-header {
  position: relative;
  z-index: 2;
}

.branding-logo-box {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.branding-logo-box img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.branding-company-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  line-height: 1.2;
}

.branding-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 3px 10px;
  border-radius: 9999px;
  margin-top: 4px;
}

.branding-product-tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #F97316;
  background: rgba(249, 115, 22, 0.12);
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid rgba(249, 115, 22, 0.24);
}

.branding-main-content {
  position: relative;
  z-index: 2;
  margin: 36px 0;
  max-width: 520px;
}

.branding-headline {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.branding-subtitle {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #94A3B8;
  margin-bottom: 32px;
}

.feature-highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
}

.feature-highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #E2E8F0;
}

.feature-check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34D399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}

.branding-bottom-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 0.85rem;
  color: #94A3B8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.branding-bottom-footer strong {
  color: #FFFFFF;
}

/* Right Login Side */
.login-form-panel {
  flex: 1 1 52%;
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 40px;
  position: relative;
}

.login-form-container {
  width: 100%;
  max-width: 440px;
}

.login-theme-toggle {
  position: absolute;
  top: 24px;
  right: 28px;
}

.login-header {
  margin-bottom: 26px;
  text-align: left;
}

.login-header .desktop-logo-wrap {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-header .desktop-logo-wrap img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.login-header h1 {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.login-header p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.password-input-group {
  position: relative;
}

.password-toggle-trigger {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: color 0.15s ease;
}

.password-toggle-trigger:hover {
  color: var(--text-primary);
}

.login-alert-danger {
  display: none;
  background: #FEE2E2;
  border: 1px solid #FCA5A5;
  color: #B91C1C;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 18px;
  align-items: center;
  gap: 10px;
  animation: fadeInDown 0.25s ease;
}

[data-theme="dark"] .login-alert-danger {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.35);
  color: #FCA5A5;
}

.inline-error {
  color: var(--danger);
  font-size: 0.76rem;
  font-weight: 600;
  margin-top: 4px;
  display: none;
}

.demo-login-chip {
  margin-top: 24px;
  padding: 12px 14px;
  background: var(--bg-surface-secondary);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.btn-demo-autofill {
  background: transparent;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-blue);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.btn-demo-autofill:hover {
  background: var(--bg-surface);
  border-color: var(--brand-blue);
}

.spinner-border-sm {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .login-branding-panel {
    padding: 40px;
  }
  .branding-headline {
    font-size: 1.8rem;
  }
  .feature-highlights-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 840px) {
  .login-split-page {
    flex-direction: column;
  }
  .login-branding-panel {
    padding: 32px 24px;
    flex: none;
  }
  .branding-main-content {
    margin: 18px 0;
  }
  .branding-headline {
    font-size: 1.45rem;
    margin-bottom: 8px;
  }
  .branding-subtitle {
    font-size: 0.88rem;
    margin-bottom: 18px;
  }
  .feature-highlights-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
  }
  .feature-highlight-item {
    font-size: 0.82rem;
  }
  .branding-bottom-footer {
    display: none;
  }
  .login-form-panel {
    padding: 36px 20px;
    flex: 1;
  }
  .login-header h1 {
    font-size: 1.55rem;
  }
  .login-header .desktop-logo-wrap {
    display: none;
  }
}
