/* DevOps Theme - Modern UI with Dark Blue/Teal Color Scheme */
:root {
  --devops-primary: #1e3a8a;      /* Dark blue from logo */
  --devops-secondary: #0ea5e9;    /* Teal accent */
  --devops-accent: #06b6d4;       /* Cyan accent */
  --devops-light: #f0f9ff;        /* Light blue background */
  --devops-dark: #0f172a;         /* Very dark blue */
  --devops-gray: #64748b;         /* Neutral gray */
  --devops-success: #10b981;      /* Green for success states */
  --devops-warning: #f59e0b;      /* Amber for warnings */
  --devops-danger: #ef4444;       /* Red for errors */
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* Modern DevOps-themed UI Components */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--devops-secondary);
}

/* Navbar styling with DevOps theme */
.navbar {
  background: linear-gradient(135deg, var(--devops-primary) 0%, var(--devops-dark) 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.navbar-brand {
  color: white !important;
  font-weight: 700;
  transition: all 0.3s ease;
  display: flex !important;
  align-items: center !important;
}

.navbar-brand:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.navbar-brand img {
  max-height: 40px;
  width: auto;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 8px;
  margin: 0 4px;
  padding: 8px 12px !important;
}

.navbar-nav .nav-link:hover {
  color: white !important;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
  background: var(--devops-secondary);
  color: white !important;
}

/* Dropdown menus with modern styling */
.dropdown-menu {
  background: white;
  border: 1px solid rgba(30, 58, 138, 0.1);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(30, 58, 138, 0.15);
  padding: 8px;
  margin-top: 8px;
}

.dropdown-item {
  border-radius: 8px;
  padding: 10px 16px;
  transition: all 0.2s ease;
  color: var(--devops-dark);
  font-weight: 500;
}

.dropdown-item:hover {
  background: var(--devops-light);
  color: var(--devops-primary);
  transform: translateX(4px);
}

/* Buttons with DevOps theme */
.btn-primary {
  background: linear-gradient(135deg, var(--devops-primary) 0%, var(--devops-secondary) 100%);
  border: none;
  border-radius: 10px;
  font-weight: 600;
  padding: 10px 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4);
  filter: brightness(1.05);
}

.btn-secondary {
  background: var(--devops-secondary);
  border: none;
  color: white;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--devops-accent);
  transform: translateY(-1px);
}

/* Cards with modern DevOps styling */
.card {
  border: 1px solid rgba(30, 58, 138, 0.1);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(30, 58, 138, 0.08);
  transition: all 0.3s ease;
  background: white;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(30, 58, 138, 0.15);
  border-color: var(--devops-secondary);
}

.card-header {
  background: linear-gradient(135deg, var(--devops-light) 0%, rgba(14, 165, 233, 0.05) 100%);
  border-bottom: 1px solid rgba(30, 58, 138, 0.1);
  border-radius: 16px 16px 0 0 !important;
  font-weight: 600;
  color: var(--devops-primary);
}

/* When a card-header carries a Bootstrap color utility (bg-primary, bg-info, …),
   keep the solid color so white text stays readable — drop the light decorative
   gradient overlay that would otherwise wash it out. */
.card-header.bg-primary,
.card-header.bg-secondary,
.card-header.bg-success,
.card-header.bg-info,
.card-header.bg-warning,
.card-header.bg-danger,
.card-header.bg-dark,
.card-header.bg-light {
  background-image: none;
}

/* Tables with modern styling */
.table {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(30, 58, 138, 0.08);
}

.table thead th {
  background: linear-gradient(135deg, var(--devops-primary) 0%, var(--devops-dark) 100%);
  color: white;
  font-weight: 600;
  border: none;
  padding: 16px;
}

.table tbody tr {
  transition: all 0.2s ease;
}

.table tbody tr:hover {
  background: var(--devops-light);
  transform: scale(1.01);
}

/* Form controls with DevOps theme */
.form-control {
  border: 2px solid rgba(30, 58, 138, 0.1);
  border-radius: 10px;
  padding: 12px 16px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.form-control:focus {
  border-color: var(--devops-secondary);
  box-shadow: 0 0 0 0.25rem rgba(14, 165, 233, 0.15);
  background: rgba(240, 249, 255, 0.5);
}

.form-label {
  font-weight: 600;
  color: var(--devops-primary);
  margin-bottom: 8px;
}

/* Alerts with DevOps theme */
.alert {
  border: none;
  border-radius: 12px;
  font-weight: 500;
  padding: 16px 20px;
}

.alert-success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
  color: var(--devops-success);
  border-left: 4px solid var(--devops-success);
}

.alert-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
  color: var(--devops-warning);
  border-left: 4px solid var(--devops-warning);
}

.alert-danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
  color: var(--devops-danger);
  border-left: 4px solid var(--devops-danger);
}

/* Badges with DevOps theme */
.badge {
  border-radius: 8px;
  font-weight: 600;
  padding: 6px 12px;
}

.badge-primary {
  background: var(--devops-primary);
}

.badge-secondary {
  background: var(--devops-secondary);
}

/* Footer styling */
footer {
  background: linear-gradient(135deg, var(--devops-dark) 0%, var(--devops-primary) 100%);
  color: white;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Page background */
body {
  background: linear-gradient(135deg, #f8fafc 0%, var(--devops-light) 100%);
  min-height: 100vh;
}

/* Container styling */
.container {
  position: relative;
}

/* Loading states */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.2), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { left: -100%; }
  100% { left: 100%; }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}
/* Attendance grid: sticky first two columns + horizontal scroll for date range */
#gridTable {
  --emp-col-width: 280px;   /* Employee column width */
  --staff-col-width: 110px; /* Staff ID column width */
}

#gridTable th,
#gridTable td {
  white-space: nowrap;
}

/* Keep the header row stuck to the top during vertical scroll */
#gridTable thead th {
  position: sticky;
  top: 0;
  z-index: 2; /* base above body cells */
  background: var(--bs-tertiary-bg, #f8f9fa);
}

/* Sticky first column (Employee) */
#gridTable th:nth-child(1),
#gridTable td:nth-child(1) {
  position: sticky;
  left: 0;
  z-index: 3; /* above normal cells */
  background: var(--bs-body-bg, #fff);
  min-width: var(--emp-col-width);
  width: var(--emp-col-width);
  max-width: var(--emp-col-width);
}

/* Sticky second column (Staff ID) */
#gridTable th:nth-child(2),
#gridTable td:nth-child(2) {
  position: sticky;
  left: var(--emp-col-width);
  z-index: 3;
  background: var(--bs-body-bg, #fff);
  min-width: var(--staff-col-width);
  width: var(--staff-col-width);
  max-width: var(--staff-col-width);
  box-shadow: 6px 0 6px -6px rgba(0,0,0,.2); /* visual divider */
}

/* Ensure sticky header cells sit over sticky body cells at intersections */
#gridTable thead th:nth-child(1),
#gridTable thead th:nth-child(2) {
  z-index: 5;
}

/* Slightly tighter day selects so more days fit horizontally */
#gridTable td > .d-flex .form-select.form-select-sm {
  min-width: 64px;
}

/* Fix attendance grid date headers - ensure dark text on light background */
#gridTable thead th {
  color: var(--devops-dark) !important;
  font-weight: 700 !important;
  background: var(--devops-light) !important;
  border: 1px solid rgba(30, 58, 138, 0.1) !important;
}
/* Attendance grid wrapper: enable internal vertical scroll (fixed header), retain horizontal scroll */
#attendanceGridWrap {
  max-height: 65vh;     /* grid scrolls vertically within the page */
  overflow: auto;       /* both x and y scrolling inside the grid */
}
/* Home: DevOps-themed hero section */
.hero-cleaning {
  /* DevOps-themed gradient matching logo colors */
  background: linear-gradient(135deg, var(--devops-primary) 0%, var(--devops-secondary) 50%, var(--devops-accent) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-cleaning .hero-wave {
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: radial-gradient(100px 40px at 50% 0, rgba(255,255,255,.35), rgba(255,255,255,0) 70%) repeat-x;
  background-size: 160px 120px;
  opacity: .35;
}
.glass-card {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 1rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
}
.feature-card {
  background: var(--bs-body-bg, #fff);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 1rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
  border-color: rgba(0,0,0,.12);
}
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.badge-soft {
  background: rgba(255,255,255,.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
}
.step {
  display: flex;
  gap: .75rem;
}
.step .num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bs-primary-bg-subtle, #eef5ff);
  color: var(--bs-primary, #0d6efd);
  font-weight: 700;
}
.stat {
  padding: 1rem 1.25rem;
  border-radius: .75rem;
  background: rgba(13, 110, 253, .06);
  border: 1px solid rgba(13,110,253,.12);
}
.hero-cleaning .btn-outline-light:hover {
  color: #0b0b0b;
}
/* Identity Login: modern cleaning-themed layout */
/*.auth-page {
  background: radial-gradient(1200px 600px at 0% 0%, rgba(31,184,211,.25), transparent 60%),
              radial-gradient(1000px 500px at 100% 0%, rgba(226,74,168,.25), transparent 60%),
              linear-gradient(135deg, #f7fafc 0%, #eef2ff 100%);
}*/
.auth-page header {
  backdrop-filter: blur(6px);
}
.auth-page .content-wrap {
  display: flex;
  align-items: center;
  min-height: calc(100dvh - 112px); /* header+footer approx */
  padding-block: 4rem;
}
.auth-page main.container {
  max-width: 960px;
}
.auth-page main.container > .row {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 20px 40px rgba(31, 45, 61, .06);
  border-radius: 1.25rem;
  overflow: hidden;
}
@media (max-width: 991.98px) {
  .auth-page main.container > .row {
    border-radius: 1rem;
  }
}
/* Left column: local account form */
.auth-page main.container > .row > [class*="col-"]:first-child {
  padding: clamp(1.25rem, 2vw + .5rem, 2.25rem);
}
.auth-page h1,
.auth-page h2 {
  font-weight: 800;
  letter-spacing: -0.02em;
}
.auth-page label.form-label,
.auth-page label {
  font-weight: 600;
  color: #3a3a3a;
}
.auth-page .form-control {
  border-radius: .75rem;
  padding: .7rem .9rem;
  border: 1px solid rgba(0,0,0,.12);
}
.auth-page .form-control:focus {
  border-color: var(--devops-secondary);
  box-shadow: 0 0 0 .25rem rgba(14, 165, 233, 0.15);
}
.auth-page .btn-primary {
  background: linear-gradient(135deg, var(--devops-primary) 0%, var(--devops-secondary) 100%);
  border: none;
  border-radius: .8rem;
  box-shadow: 0 12px 24px rgba(30, 58, 138, 0.25);
}
.auth-page .btn-primary:hover {
  filter: brightness(1.05);
}
/* Right column: providers/info panel */
.auth-page main.container > .row > [class*="col-"]:last-child {
  position: relative;
  padding: clamp(1.25rem, 2vw + .5rem, 2.25rem);
  background: linear-gradient(135deg, rgba(31,184,211,.12), rgba(109,92,215,.12));
}
.auth-page main.container > .row > [class*="col-"]:last-child::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(300px 140px at 20% 20%, rgba(31,184,211,.18), transparent 60%),
    radial-gradient(300px 140px at 80% 80%, rgba(226,74,168,.18), transparent 60%);
  pointer-events: none;
}
.auth-page a {
  text-underline-offset: 3px;
}

/* Optional: tone down the verbose Identity help text */
.auth-page .text-muted,
.auth-page .small,
.auth-page .form-text {
  color: #6b7280 !important;
}
/* Identity Login — force modern single-card layout even with default Identity UI markup */
.auth-page main.container h1 {
  margin-bottom: .5rem;
}
.auth-page main.container .row {
  /* center as a single card even if Identity renders two columns */
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 20px 40px rgba(31, 45, 61, .06);
  border-radius: 1.25rem;
  overflow: hidden;
}
.auth-page main.container .row > [class*="col-"] {
  flex: 0 0 100%;
  max-width: 100%;
  padding: clamp(1.25rem, 2vw + .5rem, 2.25rem);
}
.auth-page main.container .row > [class*="col-"] + [class*="col-"] {
  /* hide “Use another service to log in” column (no providers configured) */
  display: none !important;
}
.auth-page .btn-primary {
  background: linear-gradient(135deg, var(--devops-primary) 0%, var(--devops-secondary) 100%);
  border: none;
  border-radius: .8rem;
  box-shadow: 0 12px 24px rgba(30, 58, 138, 0.25);
}
.auth-page .form-check-input:focus {
  box-shadow: 0 0 0 .25rem rgba(14, 165, 233, 0.15);
  border-color: var(--devops-secondary);
}
/* Auth page: stronger overrides to force a modern single-card experience */
.auth-page header,
.auth-page footer {
  display: none !important; /* declutter login */
}

/* DevOps logo styling for login page - matching navigation bar */
.devops-logo {
  display: block !important;
  text-align: center;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--devops-primary) 0%, var(--devops-dark) 100%);
  height: 80px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
  padding: 15px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

/* CSS-only logo fallback using pseudo-element */
.auth-page main.container .row::before {
 /* content: "{DO}\A DEVOPS";*/
  white-space: pre;
  display: block !important;
  text-align: center;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--devops-primary) 0%, var(--devops-dark) 100%);
  height: 80px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
  padding: 15px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  color: white;
  font-family: Arial, sans-serif;
  font-size: 40px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

/* Hide the pseudo-element if JavaScript logo is present */
.auth-page main.container .row:has(.devops-logo)::before {
  display: none !important;
}

/* Add subtle inner glow effect */
.devops-logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
  border-radius: 12px;
}

/* Enhanced login page styling */
.auth-page main.container .row {
  position: relative;
  overflow: visible;
}

.auth-page main.container .row::after {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.05) 0%, rgba(14, 165, 233, 0.05) 100%);
  border-radius: 20px;
  z-index: -1;
  box-shadow: 0 20px 40px rgba(30, 58, 138, 0.1);
}

/* Hide unwanted links on login page */
.auth-page a[href*="ForgotPassword"],
.auth-page a[href*="Register"],
.auth-page a[href*="ResendEmailConfirmation"] {
  display: none !important;
}

/* Remove highlighted text styling */
.auth-page h1,
.auth-page h2,
.auth-page h3,
.auth-page h4,
.auth-page h5,
.auth-page h6,
.auth-page .h1,
.auth-page .h2,
.auth-page .h3,
.auth-page .h4,
.auth-page .h5,
.auth-page .h6 {
  background: none !important;
  background-color: transparent !important;
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  color: var(--devops-primary) !important;
  font-weight: 700 !important;
}

/* Remove any yellow highlights or underlines */
.auth-page * {
 /* background: none !important;*/
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* Hide text elements on login page */
.auth-page h1,
.auth-page h2,
.auth-page h3,
.auth-page h4,
.auth-page h5,
.auth-page h6,
.auth-page p,
.auth-page .h1,
.auth-page .h2,
.auth-page .h3,
.auth-page .h4,
.auth-page .h5,
.auth-page .h6,
.auth-page .text-muted,
.auth-page .small,
.auth-page .form-text {
  display: none !important;
}

/* Ensure logo text is visible and styled like navigation bar */
.devops-logo div {
  color: white !important;
  font-family: Arial, sans-serif !important;
  text-align: center !important;
  position: relative;
  z-index: 1;
}

.devops-logo div:first-child {
  font-size: 40px !important;
  font-weight: bold !important;
  line-height: 1 !important;
  margin-bottom: 4px !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.devops-logo div:last-child {
  font-size: 16px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* Restore proper styling for form elements */
.auth-page .form-control,
.auth-page .btn,
.auth-page .form-check-input {
  background: white !important;
  border: 2px solid rgba(30, 58, 138, 0.1) !important;
}

.auth-page .btn-primary {
  background: linear-gradient(135deg, var(--devops-primary) 0%, var(--devops-secondary) 100%) !important;
  border: none !important;
}
.auth-page .content-wrap {
  min-height: 100dvh !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
}
.auth-page main.container {
  max-width: 980px !important;
}
.auth-page main.container .row {
  max-width: 520px !important;
  margin: 0 auto !important;
  background: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  backdrop-filter: blur(10px);
}
.auth-page main.container .row > [class*="col-"] {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  padding: 28px 28px 24px !important;
}
.auth-page main.container .row > [class*="col-"] + [class*="col-"] {
  display: none !important; /* hide empty external provider column */
}
.auth-page h1 {
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  font-size: 2rem !important;
  margin-bottom: .5rem !important;
}
.auth-page label {
  font-weight: 600 !important;
  color: #374151 !important;
}
.auth-page .form-control {
  border-radius: 12px !important;
  padding: .725rem .9rem !important;
  border: 1px solid rgba(0,0,0,.14) !important;
}
.auth-page .form-control:focus {
  border-color: #7b6cf6 !important;
  box-shadow: 0 0 0 .25rem rgba(123,108,246,.15) !important;
}
.auth-page .btn-primary {
  background: linear-gradient(135deg, #6d5cd7 0%, #1fb8d3 100%) !important;
  border: none !important;
  border-radius: 12px !important;
  padding-block: .8rem !important;
  box-shadow: 0 12px 24px rgba(109,92,215,.25) !important;
}
.auth-page .btn-primary:hover { filter: brightness(1.06); }
.auth-page a { text-underline-offset: 3px; }

/* Login page background - matching navigation bar */
.auth-page {
  background: linear-gradient(135deg, var(--devops-primary) 0%, var(--devops-dark) 100%) !important;
  min-height: 100vh;
}
/* Fix: ensure nothing overlays inputs on the login page */
.auth-page main.container .row { position: relative; z-index: 1; }
.auth-page input, .auth-page select, .auth-page textarea, .auth-page button { pointer-events: auto !important; }
.auth-page .form-control, .auth-page .form-check-input { position: relative; z-index: 2; background-color: #fff; }
/* Ensure password typing text is clearly visible (black) on login */
.auth-page .form-control { color: #111 !important; caret-color: #111 !important; }
.auth-page input[type="password"].form-control { color: #111 !important; }
.auth-page .form-control::placeholder { color: #9aa0a6 !important; opacity: 1; }
/* Login: show only placeholders for Email and Password fields (hide their labels accessibly) */
.auth-page label[for="Input_Email"],
.auth-page label[for="Input_Password"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
/* Clean dark background for login page */
.auth-page {
  position: relative;
  background: linear-gradient(135deg, var(--devops-primary) 0%, var(--devops-dark) 100%) !important;
  min-height: 100vh;
}

/* ============================================================
   Supermarket / POS Cold Store — dedicated login design
   Activated by host (supermarket.* / market / pos.*) or ?store=supermarket
   ============================================================ */
.auth-supermarket {
  background: linear-gradient(135deg, #064e3b 0%, #0b7a4f 45%, #f59e0b 130%) !important;
}
.auth-supermarket header { display: none !important; }      /* hide the app navbar on the store login */
.auth-supermarket footer { display: none !important; }

/* Left hero panel (fixed half) */
.sm-auth-hero {
  position: fixed;
  inset: 0 50% 0 0;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 500px at 12% 18%, rgba(255,255,255,.16), transparent 60%),
    radial-gradient(700px 500px at 90% 90%, rgba(245,158,11,.30), transparent 60%),
    linear-gradient(135deg, #064e3b 0%, #0b7a4f 60%, #0e8a59 100%);
  display: flex;
  align-items: center;
  z-index: 2;
}
.sm-auth-hero .sm-hero-body { position: relative; z-index: 3; padding: clamp(2rem, 5vw, 5rem); max-width: 620px; }
.sm-hero-logo { max-height: 56px; max-width: 220px; margin-bottom: 1.1rem; filter: drop-shadow(0 6px 14px rgba(0,0,0,.25)); background: rgba(255,255,255,.92); padding: .4rem .6rem; border-radius: .6rem; }
.sm-hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.16); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.25);
  padding: .45rem .9rem; border-radius: 999px; font-weight: 700; font-size: .85rem; letter-spacing: .02em;
}
.sm-hero-title { font-weight: 900; font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.05; letter-spacing: -.02em; margin: 1.1rem 0 .9rem; }
.sm-hero-sub { font-size: 1.05rem; opacity: .92; max-width: 46ch; margin-bottom: 1.5rem; }
.sm-hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.sm-hero-points li { display: flex; align-items: center; gap: .65rem; font-weight: 600; }
.sm-hero-points li i { width: 1.9rem; height: 1.9rem; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.18); border-radius: .6rem; color: #ffe9b0; flex: none; }
.sm-hero-foot { margin-top: 2rem; font-size: .8rem; opacity: .7; }
/* floating produce emojis */
.sm-hero-emojis span { position: absolute; font-size: clamp(1.6rem, 3vw, 2.8rem); opacity: .22; filter: drop-shadow(0 6px 12px rgba(0,0,0,.25));
  animation: smFloat 7s ease-in-out infinite; }
.sm-hero-emojis span:nth-child(even) { animation-duration: 9s; }
@keyframes smFloat { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(4deg); } }

/* Right side: the login card sits in the remaining half */
.auth-supermarket .content-wrap { margin-left: 50%; min-height: 100dvh; display: flex; align-items: center; padding-block: 3rem; }
.auth-supermarket main.container { max-width: 460px; }
.auth-supermarket main.container .row {
  border-radius: 1.25rem; border: none;
  box-shadow: 0 30px 70px rgba(3, 40, 25, .35);
}
/* Branded card header injected before the Identity form */
.auth-supermarket main.container .row > [class*="col-"]:first-child::before {
  content: "🛒  Store Terminal Login";
  display: block; font-weight: 800; font-size: 1.15rem; color: #0b7a4f;
  margin-bottom: .25rem;
}
.auth-supermarket h1 { font-size: 1.05rem !important; color: #6b7280; font-weight: 600 !important; }
.auth-supermarket .btn-primary {
  background: linear-gradient(135deg, #0b7a4f 0%, #16a34a 100%) !important;
  box-shadow: 0 12px 24px rgba(11, 122, 79, .3) !important;
}
.auth-supermarket .form-control:focus {
  border-color: #16a34a !important; box-shadow: 0 0 0 .25rem rgba(22,163,74,.18) !important;
}
.auth-supermarket a { color: #0b7a4f; }

@media (max-width: 991.98px) {
  .sm-auth-hero { position: relative; inset: auto; width: 100%; min-height: 38vh; }
  .auth-supermarket .content-wrap { margin-left: 0; min-height: auto; }
}
