/**
 * ===================================================================
 * THEME CONTRAST & READABILITY ENHANCEMENTS
 * Resolves text visibility in light & dark modes across all themes
 * ===================================================================
 */

/* --- 1. CATEGORY BADGES (HIGH CONTRAST IN ALL THEMES) --- */
.badge.bg-info,
.badge-info {
  background-color: #0284c7 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

.badge.bg-primary,
.badge-primary {
  background-color: #2563eb !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

.badge.bg-success,
.badge-success {
  background-color: #16a34a !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

.badge.bg-warning,
.badge-warning {
  background-color: #d97706 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

.badge.bg-danger,
.badge-danger {
  background-color: #dc2626 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

/* --- 2. DARK MODE TABLE & TEXT READABILITY --- */
/* Matches body.dark-mode (AdminLTE 3), body.mode-dark, [data-color-mode="dark"], and [data-bs-theme="dark"] */
body.dark-mode,
body.mode-dark,
[data-color-mode="dark"],
[data-bs-theme="dark"] {
  --table-dark-text: #e2e8f0;
  --table-dark-strong: #ffffff;
  --table-dark-bg: #1e293b;
  --table-dark-border: #334155;
  --table-dark-header-bg: #0f172a;
}

/* Force crystal-clear readable parameter names in dark mode */
body.dark-mode .table,
body.mode-dark .table,
[data-color-mode="dark"] .table,
[data-bs-theme="dark"] .table,
body.dark-mode .table-responsive table,
body.mode-dark .table-responsive table {
  color: #e2e8f0 !important;
}

body.dark-mode .table td,
body.mode-dark .table td,
[data-color-mode="dark"] .table td,
[data-bs-theme="dark"] .table td {
  color: #e2e8f0 !important;
  border-color: #334155 !important;
}

body.dark-mode .table strong,
body.dark-mode .table .fw-bold,
body.dark-mode .table .font-weight-bold,
body.mode-dark .table strong,
body.mode-dark .table .fw-bold,
body.mode-dark .table .font-weight-bold,
[data-color-mode="dark"] .table strong,
[data-color-mode="dark"] .table .fw-bold,
[data-color-mode="dark"] .table .font-weight-bold,
[data-bs-theme="dark"] .table strong,
[data-bs-theme="dark"] .table .fw-bold,
[data-bs-theme="dark"] .table .font-weight-bold {
  color: #ffffff !important;
  font-weight: 700 !important;
}

body.dark-mode .table thead th,
body.mode-dark .table thead th,
[data-color-mode="dark"] .table thead th,
[data-bs-theme="dark"] .table thead th {
  color: #f8fafc !important;
  background-color: #0f172a !important;
  border-color: #334155 !important;
  font-weight: 700 !important;
}

body.dark-mode .table-striped tbody tr:nth-of-type(odd),
body.mode-dark .table-striped tbody tr:nth-of-type(odd),
[data-color-mode="dark"] .table-striped tbody tr:nth-of-type(odd),
[data-bs-theme="dark"] .table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(255, 255, 255, 0.03) !important;
}

body.dark-mode .table-hover tbody tr:hover,
body.mode-dark .table-hover tbody tr:hover,
[data-color-mode="dark"] .table-hover tbody tr:hover,
[data-bs-theme="dark"] .table-hover tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.06) !important;
}

/* Codes inside tables in dark mode */
body.dark-mode .table code,
body.mode-dark .table code,
[data-color-mode="dark"] .table code,
[data-bs-theme="dark"] .table code {
  color: #38bdf8 !important;
  background-color: rgba(56, 189, 248, 0.12) !important;
  padding: 2px 5px !important;
  border-radius: 3px !important;
}

/* Standard match badge in dark mode */
body.dark-mode .badge.badge-light,
body.mode-dark .badge.badge-light,
[data-color-mode="dark"] .badge.badge-light,
[data-bs-theme="dark"] .badge.badge-light {
  background-color: #334155 !important;
  color: #cbd5e1 !important;
  border-color: #475569 !important;
}

/* --- 3. LIGHT MODE CLARITY --- */
body:not(.dark-mode):not(.mode-dark) .table strong,
body:not(.dark-mode):not(.mode-dark) .table .fw-bold,
body:not(.dark-mode):not(.mode-dark) .table .font-weight-bold {
  color: #0f172a !important;
}

body:not(.dark-mode):not(.mode-dark) .table td {
  color: #334155 !important;
}

body:not(.dark-mode):not(.mode-dark) .table thead th {
  color: #0f172a !important;
  background-color: #f8fafc !important;
  font-weight: 700 !important;
}

body:not(.dark-mode):not(.mode-dark) .table code {
  color: #0369a1 !important;
  background-color: #f0f9ff !important;
  padding: 2px 5px !important;
  border-radius: 3px !important;
  border: 1px solid #bae6fd !important;
}

/* Form labels high contrast */
body:not(.dark-mode):not(.mode-dark) label,
body:not(.dark-mode):not(.mode-dark) .form-label {
  color: #1e293b !important;
}

/* --- 4. VUE-MULTISELECT LAYOUT NORMALIZATION & CONTRAST --- */
div.multiselect {
  box-sizing: border-box !important;
  display: block !important;
  position: relative !important;
  width: 100% !important;
  min-height: 38px !important;
  text-align: left !important;
  overflow: visible !important;
  font-size: 0.9rem !important;
}

div.multiselect .multiselect__tags {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  min-height: 38px !important;
  padding: 6px 40px 0 10px !important;
  border-radius: 4px !important;
  border: 1px solid #ced4da !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

div.multiselect .multiselect__select {
  position: absolute !important;
  top: 1px !important;
  right: 1px !important;
  width: 38px !important;
  height: 36px !important;
  padding: 4px 8px !important;
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 2 !important;
}

div.multiselect .multiselect__placeholder {
  margin-bottom: 6px !important;
  padding-top: 2px !important;
  display: inline-block !important;
  font-size: 0.9rem !important;
  color: #6c757d !important;
}

div.multiselect .multiselect__single {
  padding-left: 0 !important;
  margin-bottom: 6px !important;
  font-size: 0.9rem !important;
  line-height: 24px !important;
}

div.multiselect .multiselect__input {
  font-size: 0.9rem !important;
  border: none !important;
  box-shadow: none !important;
  margin-bottom: 6px !important;
  padding: 0 !important;
}

div.multiselect .multiselect__tag {
  background-color: #0284c7 !important;
  color: #ffffff !important;
  border-radius: 4px !important;
  padding: 4px 26px 4px 8px !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  margin-bottom: 4px !important;
  margin-right: 5px !important;
}

div.multiselect .multiselect__tag-icon:after {
  color: #ffffff !important;
}

div.multiselect .multiselect__tag-icon:hover {
  background-color: #0369a1 !important;
}

div.multiselect .multiselect__content-wrapper {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 1050 !important;
  border: 1px solid #ced4da !important;
  border-top: none !important;
  border-bottom-left-radius: 4px !important;
  border-bottom-right-radius: 4px !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
  background: #ffffff !important;
  max-height: 260px !important;
  overflow-y: auto !important;
}

/* Flex behavior within Bootstrap input-group */
.input-group > div.multiselect {
  flex: 1 1 auto !important;
  width: 1% !important;
  min-width: 0 !important;
  position: relative !important;
}

/* Dark mode theme support for Vue-Multiselect */
body.dark-mode div.multiselect .multiselect__tags,
body.mode-dark div.multiselect .multiselect__tags,
[data-bs-theme="dark"] div.multiselect .multiselect__tags,
[data-color-mode="dark"] div.multiselect .multiselect__tags {
  background-color: #1e293b !important;
  border-color: #475569 !important;
  color: #f1f5f9 !important;
}

body.dark-mode div.multiselect .multiselect__input,
body.mode-dark div.multiselect .multiselect__input,
[data-bs-theme="dark"] div.multiselect .multiselect__input,
[data-color-mode="dark"] div.multiselect .multiselect__input {
  background-color: transparent !important;
  color: #f1f5f9 !important;
}

body.dark-mode div.multiselect .multiselect__input::placeholder,
body.mode-dark div.multiselect .multiselect__input::placeholder,
[data-bs-theme="dark"] div.multiselect .multiselect__input::placeholder,
[data-color-mode="dark"] div.multiselect .multiselect__input::placeholder {
  color: #94a3b8 !important;
}

body.dark-mode div.multiselect .multiselect__placeholder,
body.mode-dark div.multiselect .multiselect__placeholder,
[data-bs-theme="dark"] div.multiselect .multiselect__placeholder,
[data-color-mode="dark"] div.multiselect .multiselect__placeholder {
  color: #94a3b8 !important;
}

body.dark-mode div.multiselect .multiselect__single,
body.mode-dark div.multiselect .multiselect__single,
[data-bs-theme="dark"] div.multiselect .multiselect__single,
[data-color-mode="dark"] div.multiselect .multiselect__single {
  background-color: transparent !important;
  color: #f1f5f9 !important;
}

body.dark-mode div.multiselect .multiselect__content-wrapper,
body.mode-dark div.multiselect .multiselect__content-wrapper,
[data-bs-theme="dark"] div.multiselect .multiselect__content-wrapper,
[data-color-mode="dark"] div.multiselect .multiselect__content-wrapper {
  background-color: #1e293b !important;
  border-color: #475569 !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45) !important;
}

body.dark-mode div.multiselect .multiselect__option,
body.mode-dark div.multiselect .multiselect__option,
[data-bs-theme="dark"] div.multiselect .multiselect__option,
[data-color-mode="dark"] div.multiselect .multiselect__option {
  background-color: #1e293b !important;
  color: #cbd5e1 !important;
}

body.dark-mode div.multiselect .multiselect__option--highlight,
body.mode-dark div.multiselect .multiselect__option--highlight,
[data-bs-theme="dark"] div.multiselect .multiselect__option--highlight,
[data-color-mode="dark"] div.multiselect .multiselect__option--highlight {
  background-color: #0284c7 !important;
  color: #ffffff !important;
}

body.dark-mode div.multiselect .multiselect__option--selected,
body.mode-dark div.multiselect .multiselect__option--selected,
[data-bs-theme="dark"] div.multiselect .multiselect__option--selected,
[data-color-mode="dark"] div.multiselect .multiselect__option--selected {
  background-color: #334155 !important;
  color: #38bdf8 !important;
  font-weight: 600 !important;
}

/* --- 10. SIDEBAR USER PANEL (SB ADMIN & ADMINLTE) --- */
.sidebar .user-panel {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  margin: 0.5rem 0.5rem 0.75rem 0.5rem !important;
  padding: 0.65rem 0.75rem 0.75rem 0.75rem !important;
  overflow: visible !important;
  display: flex !important;
  align-items: center !important;
}
.sidebar .user-panel .image {
  flex-shrink: 0 !important;
  padding: 0 !important;
  margin-right: 0.75rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
  width: 36px !important;
  height: 36px !important;
}
.sidebar .user-panel .image img,
.sidebar .user-panel .image .img-circle {
  border: 2px solid #ffffff !important;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4) !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
  flex-shrink: 0 !important;
  width: 36px !important;
  height: 36px !important;
}
.sidebar .user-panel .info {
  min-width: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}
.sidebar .user-panel .info a {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
}
.sidebar .user-panel .badge,
.sidebar .user-panel .user-role-badge {
  background-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  font-size: 0.65rem !important;
  padding: 2px 7px !important;
  width: fit-content !important;
  letter-spacing: 0.04em !important;
  margin-top: 3px !important;
  border-radius: 4px !important;
  display: inline-block !important;
}

/* Light Sidebar Adaptations */
.sidebar-light-primary .sidebar .user-panel {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}
.sidebar-light-primary .sidebar .user-panel .image img,
.sidebar-light-primary .sidebar .user-panel .image .img-circle {
  border-color: #007bff !important;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.3) !important;
}
.sidebar-light-primary .sidebar .user-panel .info a {
  color: #212529 !important;
}
.sidebar-light-primary .sidebar .user-panel .info .guest-name {
  color: #212529 !important;
}
.sidebar-light-primary .sidebar .user-panel .badge,
.sidebar-light-primary .sidebar .user-panel .user-role-badge {
  background-color: rgba(0, 123, 255, 0.12) !important;
  color: #0056b3 !important;
  border-color: rgba(0, 123, 255, 0.35) !important;
}

/* Collapsed Sidebar: Perfect Centering & No Clipping */
.sidebar-mini.sidebar-collapse .main-sidebar .sidebar .user-panel {
  margin: 0.75rem 0 !important;
  padding: 0 0 0.75rem 0 !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  overflow: visible !important;
}
.sidebar-mini.sidebar-collapse .main-sidebar .sidebar .user-panel .image {
  margin: 0 auto !important;
  padding: 0 !important;
  width: 38px !important;
  height: 38px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}
.sidebar-mini.sidebar-collapse .main-sidebar .sidebar .user-panel .image img,
.sidebar-mini.sidebar-collapse .main-sidebar .sidebar .user-panel .image .img-circle {
  margin: 0 auto !important;
  display: block !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  width: 34px !important;
  height: 34px !important;
}
.sidebar-mini.sidebar-collapse .main-sidebar .sidebar .user-panel .info {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  visibility: hidden !important;
}

/* Collapsed Sidebar on Hover (Expand to 250px) */
.sidebar-mini.sidebar-collapse .main-sidebar:not(.sidebar-no-expand):hover .sidebar .user-panel,
.sidebar-mini.sidebar-collapse .main-sidebar:not(.sidebar-no-expand).sidebar-focused .sidebar .user-panel {
  justify-content: flex-start !important;
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
  margin: 0.75rem 0.5rem !important;
}
.sidebar-mini.sidebar-collapse .main-sidebar:not(.sidebar-no-expand):hover .sidebar .user-panel .image,
.sidebar-mini.sidebar-collapse .main-sidebar:not(.sidebar-no-expand).sidebar-focused .sidebar .user-panel .image {
  margin-right: 0.65rem !important;
  margin-left: 0 !important;
  width: auto !important;
}
.sidebar-mini.sidebar-collapse .main-sidebar:not(.sidebar-no-expand):hover .sidebar .user-panel .info,
.sidebar-mini.sidebar-collapse .main-sidebar:not(.sidebar-no-expand).sidebar-focused .sidebar .user-panel .info {
  display: flex !important;
  flex-direction: column !important;
  visibility: visible !important;
  width: auto !important;
  height: auto !important;
  opacity: 1 !important;
  overflow: visible !important;
}

/* --- 13. NAV TABS & CARD OUTLINE TABS CONTRAST & RESPONSIVENESS --- */
.card-outline-tabs > .card-header {
  padding-top: 0 !important;
  border-bottom: 0 !important;
}
.card-outline-tabs .card-header .nav-tabs,
.card-outline-tabs .card-header-tabs {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  flex-wrap: wrap;
  margin: 0 !important;
}
.card-outline-tabs .nav-tabs .nav-link {
  font-weight: 600;
  padding: 0.65rem 1.1rem;
  color: #4b5563;
  border-radius: 4px 4px 0 0;
  border-top: 3px solid transparent !important;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}
.card-outline-tabs .nav-tabs .nav-link:hover {
  color: #2563eb;
  background-color: rgba(37, 99, 235, 0.05);
}
.card-outline-tabs .nav-tabs .nav-link.active {
  color: #2563eb !important;
  font-weight: 700 !important;
  border-bottom-color: transparent !important;
  border-top: 3px solid #2563eb !important;
  background-color: #ffffff;
}

/* Dark mode nav tabs */
body.dark-mode .card-outline-tabs .card-header .nav-tabs,
body.mode-dark .card-outline-tabs .card-header .nav-tabs,
[data-color-mode="dark"] .card-outline-tabs .card-header .nav-tabs,
[data-bs-theme="dark"] .card-outline-tabs .card-header .nav-tabs {
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}
body.dark-mode .card-outline-tabs .nav-tabs .nav-link,
body.mode-dark .card-outline-tabs .nav-tabs .nav-link,
[data-color-mode="dark"] .card-outline-tabs .nav-tabs .nav-link,
[data-bs-theme="dark"] .card-outline-tabs .nav-tabs .nav-link {
  color: #94a3b8 !important;
}
body.dark-mode .card-outline-tabs .nav-tabs .nav-link:hover,
body.mode-dark .card-outline-tabs .nav-tabs .nav-link:hover,
[data-color-mode="dark"] .card-outline-tabs .nav-tabs .nav-link:hover,
[data-bs-theme="dark"] .card-outline-tabs .nav-tabs .nav-link:hover {
  color: #38bdf8 !important;
  background-color: rgba(56, 189, 248, 0.1) !important;
}
body.dark-mode .card-outline-tabs .nav-tabs .nav-link.active,
body.mode-dark .card-outline-tabs .nav-tabs .nav-link.active,
[data-color-mode="dark"] .card-outline-tabs .nav-tabs .nav-link.active,
[data-bs-theme="dark"] .card-outline-tabs .nav-tabs .nav-link.active {
  color: #38bdf8 !important;
  background-color: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.15) rgba(255, 255, 255, 0.15) transparent !important;
  border-top: 3px solid #38bdf8 !important;
}

/* ===================================================================
 * 7. MODERN AUTHENTICATION SUITE (LOGIN, FORGOT PASSWORD, RESET PASSWORD)
 * High-aesthetic, responsive, dual-mode (Light/Dark) auth interface
 * =================================================================== */
.modern-auth-wrapper,
.auth-page-wrapper {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  position: relative;
  width: 100%;
}

.modern-auth-card,
.auth-card-cyber {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 20px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 20px 45px -10px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  padding: 2.75rem 2.25rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #0f172a;
}

.modern-auth-card::before,
.auth-card-cyber::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0ea5e9, #3b82f6, #6366f1);
  border-radius: 20px 20px 0 0;
}

/* Dark mode auth card styling */
body.dark-mode .modern-auth-card,
body.dark-mode .auth-card-cyber,
body.mode-dark .modern-auth-card,
body.mode-dark .auth-card-cyber,
body.theme-futuristic .modern-auth-card,
body.theme-futuristic .auth-card-cyber,
[data-color-mode="dark"] .modern-auth-card,
[data-color-mode="dark"] .auth-card-cyber,
[data-bs-theme="dark"] .modern-auth-card,
[data-bs-theme="dark"] .auth-card-cyber {
  background: #0f172a !important;
  border-color: rgba(56, 189, 248, 0.25) !important;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.85), 0 0 30px rgba(56, 189, 248, 0.12) !important;
  color: #f8fafc !important;
}

.modern-auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.modern-auth-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  margin-bottom: 1.25rem;
  padding: 10px;
  transition: transform 0.25s ease;
}

.modern-auth-logo-badge img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.modern-auth-icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 1.25rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: rgba(37, 99, 235, 0.08);
  border: 2px solid rgba(37, 99, 235, 0.2);
  color: #2563eb;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
  transition: transform 0.25s ease;
}

.modern-auth-icon-badge.icon-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #10b981;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15);
}

.modern-auth-icon-badge.icon-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.35);
  color: #f59e0b;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.15);
}

.modern-auth-icon-badge.icon-danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.15);
}

body.dark-mode .modern-auth-logo-badge,
[data-color-mode="dark"] .modern-auth-logo-badge,
[data-bs-theme="dark"] .modern-auth-logo-badge,
body.theme-futuristic .modern-auth-logo-badge {
  background: #1e293b;
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

body.dark-mode .modern-auth-icon-badge,
[data-color-mode="dark"] .modern-auth-icon-badge,
[data-bs-theme="dark"] .modern-auth-icon-badge,
body.theme-futuristic .modern-auth-icon-badge {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}

.modern-auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.2);
  margin-bottom: 0.85rem;
}

body.dark-mode .modern-auth-pill,
[data-color-mode="dark"] .modern-auth-pill,
[data-bs-theme="dark"] .modern-auth-pill,
body.theme-futuristic .modern-auth-pill {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

.modern-auth-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.4rem;
  color: #0f172a;
}

body.dark-mode .modern-auth-title,
[data-color-mode="dark"] .modern-auth-title,
[data-bs-theme="dark"] .modern-auth-title,
body.theme-futuristic .modern-auth-title {
  color: #ffffff;
}

.modern-auth-subtitle {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #64748b;
  margin-bottom: 0;
}

body.dark-mode .modern-auth-subtitle,
[data-color-mode="dark"] .modern-auth-subtitle,
[data-bs-theme="dark"] .modern-auth-subtitle,
body.theme-futuristic .modern-auth-subtitle {
  color: #94a3b8;
}

/* Modern inputs & input-groups */
.modern-auth-card .form-group,
.auth-card-cyber .form-group {
  margin-bottom: 1.35rem;
}

.modern-auth-card label,
.auth-card-cyber label {
  font-size: 0.86rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.45rem;
  display: block;
  letter-spacing: 0.01em;
}

body.dark-mode .modern-auth-card label,
body.dark-mode .auth-card-cyber label,
[data-color-mode="dark"] .modern-auth-card label,
[data-color-mode="dark"] .auth-card-cyber label,
[data-bs-theme="dark"] .modern-auth-card label,
[data-bs-theme="dark"] .auth-card-cyber label,
body.theme-futuristic .modern-auth-card label,
body.theme-futuristic .auth-card-cyber label {
  color: #cbd5e1;
}

.modern-auth-input-group {
  display: flex;
  position: relative;
  width: 100%;
}

.modern-auth-input-group .input-icon-prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-right: none;
  border-radius: 12px 0 0 12px;
  color: #64748b;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.modern-auth-input-group .form-control {
  border-radius: 0 12px 12px 0;
  border: 1px solid #cbd5e1;
  border-left: none;
  padding: 0.72rem 0.95rem;
  font-size: 0.92rem;
  background: #ffffff;
  color: #0f172a;
  transition: all 0.2s ease;
  height: auto;
}

.modern-auth-input-group.has-suffix .form-control {
  border-radius: 0;
  border-right: none;
}

.modern-auth-input-group .input-action-suffix {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.85rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: none;
  border-radius: 0 12px 12px 0;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modern-auth-input-group .input-action-suffix:hover {
  color: #2563eb;
  background: #f1f5f9;
}

body.dark-mode .modern-auth-input-group .input-icon-prefix,
body.dark-mode .modern-auth-input-group .input-action-suffix,
[data-color-mode="dark"] .modern-auth-input-group .input-icon-prefix,
[data-color-mode="dark"] .modern-auth-input-group .input-action-suffix,
[data-bs-theme="dark"] .modern-auth-input-group .input-icon-prefix,
[data-bs-theme="dark"] .modern-auth-input-group .input-action-suffix,
body.theme-futuristic .modern-auth-input-group .input-icon-prefix,
body.theme-futuristic .modern-auth-input-group .input-action-suffix {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #94a3b8 !important;
}

body.dark-mode .modern-auth-input-group .input-action-suffix:hover,
[data-color-mode="dark"] .modern-auth-input-group .input-action-suffix:hover,
[data-bs-theme="dark"] .modern-auth-input-group .input-action-suffix:hover,
body.theme-futuristic .modern-auth-input-group .input-action-suffix:hover {
  color: #38bdf8 !important;
  background: #334155 !important;
}

body.dark-mode .modern-auth-input-group .form-control,
[data-color-mode="dark"] .modern-auth-input-group .form-control,
[data-bs-theme="dark"] .modern-auth-input-group .form-control,
body.theme-futuristic .modern-auth-input-group .form-control {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

.modern-auth-input-group:focus-within .input-icon-prefix,
.modern-auth-input-group:focus-within .input-action-suffix {
  border-color: #3b82f6 !important;
  color: #2563eb !important;
}

.modern-auth-input-group:focus-within .form-control {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
}

/* Modern Auth Buttons */
.btn-modern-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.8rem 1.4rem;
  font-size: 0.96rem;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-modern-auth:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.42);
  transform: translateY(-1px);
}

.btn-modern-auth:active {
  transform: translateY(0);
}

body.theme-futuristic .btn-modern-auth,
body.dark-mode .btn-modern-auth {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.35);
}

body.theme-futuristic .btn-modern-auth:hover,
body.dark-mode .btn-modern-auth:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  box-shadow: 0 0 25px rgba(14, 165, 233, 0.5);
}

/* Auth Alerts */
.modern-auth-alert {
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  font-size: 0.85rem;
  margin-bottom: 1.35rem;
  border: 1px solid transparent;
}

.modern-auth-alert.alert-warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.modern-auth-alert.alert-danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.modern-auth-alert.alert-info {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0369a1;
}

body.dark-mode .modern-auth-alert.alert-warning,
[data-color-mode="dark"] .modern-auth-alert.alert-warning,
[data-bs-theme="dark"] .modern-auth-alert.alert-warning,
body.theme-futuristic .modern-auth-alert.alert-warning {
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
  color: #fbbf24 !important;
}

body.dark-mode .modern-auth-alert.alert-danger,
[data-color-mode="dark"] .modern-auth-alert.alert-danger,
[data-bs-theme="dark"] .modern-auth-alert.alert-danger,
body.theme-futuristic .modern-auth-alert.alert-danger {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  color: #fca5a5 !important;
}

body.dark-mode .modern-auth-alert.alert-info,
[data-color-mode="dark"] .modern-auth-alert.alert-info,
[data-bs-theme="dark"] .modern-auth-alert.alert-info,
body.theme-futuristic .modern-auth-alert.alert-info {
  background: rgba(14, 165, 233, 0.15) !important;
  border-color: rgba(14, 165, 233, 0.4) !important;
  color: #7dd3fc !important;
}

/* Info box & Step cards */
.modern-auth-infobox {
  border-radius: 14px;
  padding: 1.15rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  margin-bottom: 1.5rem;
  text-align: left;
}

body.dark-mode .modern-auth-infobox,
[data-color-mode="dark"] .modern-auth-infobox,
[data-bs-theme="dark"] .modern-auth-infobox,
body.theme-futuristic .modern-auth-infobox {
  background: rgba(30, 41, 59, 0.6) !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
}

/* Modern Auth Links & Micro-copy */
.modern-auth-link {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.modern-auth-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

body.dark-mode .modern-auth-link,
[data-color-mode="dark"] .modern-auth-link,
[data-bs-theme="dark"] .modern-auth-link,
body.theme-futuristic .modern-auth-link {
  color: #38bdf8;
}

body.dark-mode .modern-auth-link:hover,
[data-color-mode="dark"] .modern-auth-link:hover,
[data-bs-theme="dark"] .modern-auth-link:hover,
body.theme-futuristic .modern-auth-link:hover {
  color: #7dd3fc;
}

.modern-auth-security {
  text-align: center;
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 1.75rem;
  letter-spacing: 0.02em;
}

body.dark-mode .modern-auth-security,
[data-color-mode="dark"] .modern-auth-security,
[data-bs-theme="dark"] .modern-auth-security,
body.theme-futuristic .modern-auth-security {
  color: #94a3b8;
}

