html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.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 #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ==========================================================================
   Admin UI Standardization: Row Action Buttons & User Menu
   ========================================================================== */

/* Standardized row actions container with 5px gap */
.table-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: wrap;
}

.table-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 0.375rem;
  transition: all 0.15s ease-in-out;
  flex-shrink: 0;
}

.table-actions .btn .action-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}


/* Top-Right Account Menu & Initials Avatar */
.account-menu .dropdown-toggle {
  text-decoration: none;
  border-radius: 0.5rem;
  padding: 0.35rem 0.5rem;
  transition: background-color 0.15s ease-in-out;
}

.account-menu .dropdown-toggle:hover,
.account-menu .dropdown-toggle:focus {
  background-color: #f1f5f9;
}

.account-menu .dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.35rem;
  vertical-align: 0.15em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
  color: #64748b;
}

.account-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(13, 110, 253, 0.2);
}

.account-menu .dropdown-menu {
  min-width: 220px;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

/* ==========================================================================
   Login Page: Modern Split-Screen Design
   ========================================================================== */

/* Remove default margins and prevent horizontal overflow on login page */
body.login-body-wrapper {
  margin-bottom: 0 !important;
  background-color: #f8fafc;
  overflow-x: hidden;
  width: 100%;
}

@media (min-width: 992px) and (min-height: 680px) {
  html:has(body.login-body-wrapper),
  body.login-body-wrapper {
    height: 100%;
    overflow: hidden;
  }
}

.login-split-page {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

@media (min-width: 992px) and (min-height: 680px) {
  .login-split-page {
    flex-direction: row;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }
}

/* Left Brand Panel (~55% width on desktop) */
.login-brand-panel {
  background: linear-gradient(145deg, #091a36 0%, #0d2852 45%, #12376e 100%);
  color: #ffffff;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.5rem, 3.5vh, 2.75rem) clamp(1.75rem, 3vw, 3.5rem);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: hidden;
}

@media (min-width: 992px) and (min-height: 680px) {
  .login-brand-panel {
    flex: 0 0 55%;
    max-width: 55%;
    height: 100%;
    overflow: hidden;
  }
}

/* Subtle background pattern & glow contained cleanly within panel */
.login-brand-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: 
    radial-gradient(#ffffff 1px, transparent 1px),
    radial-gradient(#38bdf8 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
}

.login-brand-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 380px;
  height: 380px;
  max-width: 100%;
  max-height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16) 0%, rgba(14, 165, 233, 0) 70%);
  pointer-events: none;
  overflow: hidden;
}

/* Brand badge in top-left */
.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1;
}

.brand-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
  flex-shrink: 0;
}

.brand-badge-text {
  display: flex;
  flex-direction: column;
}

.brand-badge-company {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  line-height: 1.2;
}

.brand-badge-product {
  font-size: 0.75rem;
  color: #93c5fd;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Compact Left Narrative & Headline */
.login-brand-headline {
  font-size: clamp(1.4rem, 2.1vw, 2.25rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: clamp(0.5rem, 1.2vh, 0.875rem);
}

.login-brand-subtext {
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  line-height: 1.45;
  max-width: 520px;
  margin-bottom: clamp(1rem, 2.2vh, 1.75rem);
}

/* Compact Feature cards on left */
.login-features-list {
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1.2vh, 0.85rem);
  max-width: 520px;
}

.login-feature-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(8px);
  border-radius: 0.625rem;
  padding: clamp(0.6rem, 1.1vh, 0.85rem) 1rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.login-feature-card:hover {
  background: rgba(255, 255, 255, 0.07);
}

.login-feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.login-feature-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 0.15rem;
}

.login-feature-desc {
  font-size: 0.785rem;
  color: #cbd5e1;
  line-height: 1.35;
  margin-bottom: 0;
}

/* Right Login Form Panel (~45% width on desktop) */
.login-form-panel {
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(1.5rem, 3.5vh, 2.75rem) clamp(1.5rem, 3vw, 3rem);
  position: relative;
  overflow-x: hidden;
}

@media (min-width: 992px) and (min-height: 680px) {
  .login-form-panel {
    flex: 0 0 45%;
    max-width: 45%;
    height: 100%;
    overflow: hidden;
  }
}

.login-form-container {
  width: 100%;
  max-width: 390px;
}

/* Responsive spacing for title & subtitle */
.login-title {
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.login-subtitle {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: clamp(1rem, 2.2vh, 1.5rem);
}

/* Modern inputs & focus */
.login-form-control {
  font-size: 0.9375rem;
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.login-form-control:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
  outline: none;
}

/* Password toggle button inside input group */
.login-password-toggle {
  border-color: #cbd5e1;
  color: #64748b;
  border-top-right-radius: 0.5rem !important;
  border-bottom-right-radius: 0.5rem !important;
  background-color: #ffffff;
  padding: 0.625rem 0.875rem;
}

.login-password-toggle:hover,
.login-password-toggle:focus {
  color: #0f172a;
  background-color: #f8fafc;
  border-color: #cbd5e1;
}

/* Submit button */
.btn-login-submit {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.7rem 1.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(2, 132, 199, 0.25);
  transition: all 0.15s ease-in-out;
}

.btn-login-submit:hover,
.btn-login-submit:focus {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(2, 132, 199, 0.35);
  transform: translateY(-1px);
}

.btn-login-submit:active {
  transform: translateY(0);
}

/* Compact footer */
.login-footer {
  text-align: center;
  padding-top: clamp(0.75rem, 1.8vh, 1.25rem);
  margin-top: clamp(0.75rem, 1.8vh, 1.25rem);
  border-top: 1px solid #e2e8f0;
}

