:root {
  --emr-primary: #644098;
  --emr-accent: #ca2e6d;
  --emr-gradient: linear-gradient(135deg, #644098 0%, #7e52b8 50%, #a8407a 100%);
}

html {
  height: 100%;
}

body {
  background: #eef1f7;
  color: #1f2533;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.emr-topbar {
  background: linear-gradient(90deg, #644098 0%, #7e52b8 55%, #a8407a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.emr-brand {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  margin-right: 0.5rem;
  white-space: nowrap;
}

.emr-brand span {
  /* color handled by .brand-* classes */
}

/* eClinicPlus+ brand colours */
.brand-eclinic  { color: #1a6efd; }   /* Blue   */
.brand-plus     { color: #f59e0b; }   /* Yellow */
.brand-plussign { color: #ec4899; }   /* Pink   */

.emr-main-menu {
  flex-wrap: nowrap !important;
  white-space: nowrap;
  gap: 0.05rem;
}

.emr-main-menu > li > .nav-link > i {
  font-size: 0.82rem;
  margin-right: 0.25rem !important;
}

.emr-main-menu .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.80rem;
  border-radius: 4px;
  border-bottom: 2px solid transparent;
  padding: 0.35rem 0.35rem;
  white-space: nowrap;
}

.emr-main-menu .nav-link:hover,
.emr-main-menu .nav-link:focus,
.emr-main-menu .nav-link.active {
  color: #fff;
  border-bottom-color: #ca2e6d;
  background: rgba(255, 255, 255, 0.08);
}

.emr-top-actions {
  min-width: max-content;
  gap: 0.35rem !important;
}

.emr-icon-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  width: 32px;
  height: 32px;
  font-size: 0.82rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.emr-icon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.emr-branch-pill {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.22rem 0.55rem;
  font-weight: 600;
  font-size: 0.78rem;
  white-space: nowrap;
}

.emr-profile-btn {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.22rem 0.55rem;
  white-space: nowrap;
}

.emr-profile-btn strong,
.emr-profile-btn small {
  display: block;
  color: #fff;
  line-height: 1.05;
}

.emr-profile-btn strong {
  font-size: 0.80rem;
}

.emr-profile-btn small {
  opacity: 0.9;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
}

.emr-avatar {
  width: 30px;
  height: 30px;
  font-size: 0.82rem;
  border-radius: 50%;
  background: #ca2e6d;
  color: #ffffff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.emr-avatar-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.45);
}

.emr-profile-card {
  width: 340px;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(16, 25, 47, 0.18);
  padding: 0;
}

.dashboard-page {
  margin-top: 0.25rem;
}

.dashboard-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: #644098;
}

.dashboard-subtitle {
  font-size: 1.6rem;
  color: #2b3445;
}

.dashboard-hero-card {
  background: var(--emr-gradient);
  border-radius: 22px;
  padding: 1.6rem 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 34px rgba(100, 64, 152, 0.28);
}

.dashboard-hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.dashboard-hero-subtitle {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.25rem;
}

.dashboard-hero-label {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  font-weight: 600;
}

.dashboard-hero-pill {
  color: #644098;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.dashboard-hero-brand {
  min-width: 300px;
  max-width: 420px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 0.75rem 1rem;
}

.dashboard-hero-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  padding: 0.35rem;
}

.dashboard-hero-logo-fallback {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: #644098;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.dashboard-hero-hospital {
  color: #fff;
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.kpi-card {
  border-radius: 16px;
  padding: 1.4rem;
  color: #fff;
  min-height: 160px;
  box-shadow: 0 12px 30px rgba(22, 34, 66, 0.16);
}

.kpi-card i {
  font-size: 1.6rem;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kpi-card h2 {
  font-size: 3rem;
  margin: 0;
  font-weight: 800;
}

.kpi-card span,
.kpi-card small {
  font-size: 1.05rem;
  font-weight: 600;
}

.kpi-blue {
  background: linear-gradient(135deg, #644098 0%, #7e52b8 100%);
}

.kpi-red {
  background: linear-gradient(135deg, #c9232e 0%, #f13a43 100%);
}

.kpi-yellow {
  background: linear-gradient(135deg, #ef9f00 0%, #f5bb31 100%);
}

.kpi-green {
  background: linear-gradient(135deg, #05966f 0%, #10b785 100%);
}

.dashboard-panel {
  background: #fff;
  border: 1px solid #e3e8f3;
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 8px 24px rgba(15, 33, 60, 0.06);
}

.doctor-form-panel {
  border-top: 4px solid var(--emr-primary) !important;
  box-shadow: 0 10px 30px rgba(100, 64, 152, 0.06) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.doctor-form-panel:hover {
  box-shadow: 0 12px 35px rgba(100, 64, 152, 0.12) !important;
  transform: translateY(-2px);
}

/* ── Compact soft-gradient stat cards for master list pages ── */
.stat-card {
  border: none;
  border-radius: 14px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 18px rgba(100, 64, 152, 0.10);
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  right: -18px;
  top: -18px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}
.stat-card:hover {
  box-shadow: 0 8px 28px rgba(100, 64, 152, 0.18);
  transform: translateY(-3px);
}
.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  color: #fff;
}
.stat-card .stat-value {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
}
.stat-card .stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 4px;
}
.stat-blue   { background: linear-gradient(135deg, #3a5fd9 0%, #5c82f5 100%); }
.stat-green  { background: linear-gradient(135deg, #059c6e 0%, #1fcf96 100%); }
.stat-red    { background: linear-gradient(135deg, #d63447 0%, #f05663 100%); }
.stat-yellow { background: linear-gradient(135deg, #c97d00 0%, #f0a500 100%); }
.stat-teal   { background: linear-gradient(135deg, #0a7f8a 0%, #12b3c2 100%); }
.stat-purple { background: linear-gradient(135deg, #6a3fbc 0%, #9164e0 100%); }
/* used by 15 / 1 screens but never defined: their white text sat on a white card */
.stat-cyan   { background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 100%); }
.stat-amber  { background: linear-gradient(135deg, #b45309 0%, #f59e0b 100%); }

.doctor-table-panel .table,
.doctor-table-panel tbody,
.doctor-table-panel tr,
.doctor-table-panel td {
  overflow: visible;
}

.doctor-action-dropdown .dropdown-menu {
  z-index: 2000;
  min-width: 9rem;
}

.chart-placeholder {
  border: 1px dashed #d2dbec;
  border-radius: 10px;
  min-height: 250px;
  padding: 1rem;
  display: grid;
  gap: 1rem;
  align-content: space-evenly;
}

.chart-line {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #644098 0%, #e0ccf5 100%);
}

.dept-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #e6ebf5;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  font-weight: 600;
}

/* ── Auth / Login Page ─────────────────────────────────────────── */
.auth-body {
  background: #2b1a40;   /* only while the images load; the images are shown in their own colours (no tint) */
}
/* sign-in background slideshow (_AuthLayout: login-bg, login-bg-2, login-bg-3) */
.auth-slides { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.auth-slide {
  position: absolute; inset: 0;
  background-position: center; background-size: cover; background-repeat: no-repeat;
  opacity: 0; transform: scale(1.04);
  transition: opacity 1.6s ease-in-out, transform 8.6s ease-out;
}
.auth-slide.on { opacity: 1; transform: scale(1); }
.auth-body .auth-main { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .auth-slide { transition: opacity 1.2s ease-in-out; transform: none; }
  .auth-slide.on { transform: none; }
}

.auth-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.auth-card {
  width: min(1060px, 100%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2rem 5rem rgba(5, 14, 40, 0.55);
}

/* ── Left panel ── */
.auth-left {
  background: linear-gradient(160deg, #4a2d75 0%, #644098 45%, #a8407a 100%);
  color: #fff;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  min-height: 520px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.auth-icon-float {
  position: absolute;
  font-size: 3.2rem;
  color: rgba(255, 255, 255, 0.12);
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.auth-left-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1rem;
}

.auth-medical-cross {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  margin: 0 auto 1.2rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
}
.role-left-profile-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.45);
}
.role-top-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-bottom: 0.8rem;
}
.role-top-profile-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #d8e4f5;
}
.role-top-profile-name {
  font-weight: 700;
  color: #0d1b3e;
  line-height: 1.1;
}
.role-top-profile-branch {
  font-size: 0.8rem;
  color: #6b7a99;
}

.auth-left-title {
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 0.25rem;
}

.auth-left-title span {
  /* color handled by .brand-* classes */
}

.auth-left-sub {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.auth-left-divider {
  border-color: rgba(255, 255, 255, 0.25);
  margin: 1.5rem auto;
  width: 60%;
}

.auth-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  display: inline-block;
}

.auth-feature-list li {
  padding: 0.4rem 0;
  font-size: 0.95rem;
  opacity: 0.92;
}

.auth-feature-list li i {
  color: #7de8c8;
  margin-right: 0.5rem;
}

/* ── Right panel ── */
.auth-right {
  background: #ffffff;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-right-inner {
  width: 100%;
  max-width: 400px;
  padding: 2.8rem 2rem;
}

.auth-logo-badge {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #644098, #a8407a);
  border-radius: 16px;
  color: #fff;
  font-size: 1.8rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.auth-welcome {
  margin-bottom: 1.8rem;
}

.auth-right-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0d1b3e;
  margin-bottom: 0.3rem;
}

.auth-right-sub {
  color: #6b7a99;
  font-size: 0.92rem;
  margin: 0;
}

.auth-input-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #f5f7fc;
  border: 1.5px solid #e0e6f0;
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input-group:focus-within {
  border-color: #644098;
  box-shadow: 0 0 0 3px rgba(100, 64, 152, 0.12);
  background: #fff;
}

.auth-input-icon {
  color: #644098;
  font-size: 1.15rem;
  padding-top: 1.55rem;
  flex-shrink: 0;
}

.auth-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b7a99;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.2rem;
}

.auth-input {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  font-size: 0.97rem;
  font-weight: 500;
  color: #0d1b3e;
  box-shadow: none !important;
  outline: none !important;
}

.auth-input:focus {
  outline: none !important;
  box-shadow: none !important;
}

.auth-eye-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9aaac5;
  padding: 0.2rem 0.4rem;
  cursor: pointer;
  font-size: 1rem;
}

.auth-eye-btn:hover {
  color: #644098;
}

.auth-remember {
  font-size: 0.88rem;
  color: #4a5568;
}

.auth-signin-btn {
  background: linear-gradient(135deg, #ca2e6d 0%, #e0527f 50%, #a8407a 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem;
  border-radius: 12px;
  border: none;
  letter-spacing: 0.3px;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 6px 20px rgba(202, 46, 109, 0.35);
}

.auth-signin-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  color: #fff;
}

.auth-footer-note {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: #9aaac5;
  margin-bottom: 0;
}

.auth-footer-note i {
  color: #ca2e6d;
}

.auth-back-link {
  font-size: 0.88rem;
  color: #6b7a99 !important;
}

.auth-back-link:hover {
  color: #644098 !important;
}

/* ── Login page (scoped to .auth-login; Select Role / Select Branch keep the shared auth styles) ── */
.auth-login { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; border-radius: 18px; }
.auth-login .auth-left {
  min-height: 580px; padding: 2.5rem 2.75rem; flex-direction: column; align-items: stretch; justify-content: space-between;
}
.auth-login .al-pattern {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 85% 12%, rgba(255,255,255,0.14) 0, rgba(255,255,255,0) 38%),
    radial-gradient(circle at 10% 95%, rgba(255,255,255,0.10) 0, rgba(255,255,255,0) 40%),
    radial-gradient(rgba(255,255,255,0.09) 1px, transparent 1px);
  background-size: auto, auto, 22px 22px;
}
.auth-login .al-top, .auth-login .al-body, .auth-login .al-foot { position: relative; z-index: 1; }
.auth-login .al-top { display: flex; align-items: center; gap: 0.65rem; }
.auth-login .al-mark {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.28);
  color: #fff; font-size: 1.3rem;
}
.auth-login .al-mark-text { font-size: 0.78rem; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; opacity: 0.85; }
.auth-login .auth-left-title {
  font-size: 2.5rem; font-weight: 800; letter-spacing: -0.5px; line-height: 1.1; margin: 0 0 0.35rem;
  /* the brand colours sit on a white plate so blue / orange / pink keep their contrast on purple */
  display: inline-block; background: #fff; padding: 0.35rem 0.85rem 0.45rem; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(20, 6, 40, 0.25);
}
.auth-login .auth-left-sub { font-size: 0.8rem; letter-spacing: 2.4px; opacity: 0.85; margin: 0.9rem 0 0; }
.auth-login .al-lead { font-size: 0.98rem; line-height: 1.6; opacity: 0.9; margin: 0.9rem 0 1.75rem; max-width: 26rem; }
.auth-login .al-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.auth-login .al-features li { display: flex; align-items: center; gap: 0.85rem; }
.auth-login .al-ico {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.13); border: 1px solid rgba(255,255,255,0.2); font-size: 1.05rem;
}
.auth-login .al-features strong { display: block; font-size: 0.92rem; font-weight: 600; line-height: 1.3; }
.auth-login .al-features small { display: block; font-size: 0.8rem; opacity: 0.75; line-height: 1.35; }
.auth-login .al-foot { font-size: 0.76rem; opacity: 0.7; }

.auth-login .auth-right-inner { max-width: 420px; padding: 3rem 2.5rem; }
.auth-login .ar-brand { align-items: center; gap: 0.6rem; margin-bottom: 1.75rem; }
.auth-login .ar-brand .al-mark { background: linear-gradient(135deg, #644098, #a8407a); border: 0; }
.auth-login .ar-brand-name { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.3px; }
.auth-login .auth-welcome { margin-bottom: 1.75rem; }
.auth-login .auth-right-title { font-size: 1.65rem; font-weight: 700; color: #1b1530; letter-spacing: -0.3px; margin-bottom: 0.35rem; }
.auth-login .auth-right-sub { font-size: 0.92rem; color: #6b6880; }

.auth-login .ar-alert { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.86rem; padding: 0.65rem 0.85rem; border-radius: 10px; margin-bottom: 1.25rem; }
.auth-login .ar-summary ul { margin: 0; padding-left: 1rem; }
.auth-login .ar-field { margin-bottom: 1.1rem; }
.auth-login .ar-label { display: block; font-size: 0.84rem; font-weight: 600; color: #3a3550; margin-bottom: 0.4rem; }
.auth-login .ar-control { position: relative; }
.auth-login .ar-lead-ico {
  position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%);
  color: #8c86a3; font-size: 1.05rem; pointer-events: none; transition: color 0.15s;
}
.auth-login .ar-input {
  height: 46px; padding: 0 0.9rem 0 2.6rem; border: 1px solid #dcd8e6; border-radius: 10px;
  background: #fff; font-size: 0.95rem; color: #1b1530;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-login .ar-input::placeholder { color: #a9a4bb; }
.auth-login .ar-input:hover { border-color: #c4bdd6; }
.auth-login .ar-input:focus { border-color: #644098; box-shadow: 0 0 0 3px rgba(100, 64, 152, 0.15); }
.auth-login .ar-control:focus-within .ar-lead-ico { color: #644098; }
.auth-login .ar-input.input-validation-error { border-color: #dc3545; }
.auth-login .ar-input.input-validation-error:focus { box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15); }
.auth-login .ar-input-pw { padding-right: 2.9rem; }
.auth-login .ar-eye {
  position: absolute; right: 0.35rem; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent;
  color: #8c86a3; display: inline-flex; align-items: center; justify-content: center;
}
.auth-login .ar-eye:hover { color: #644098; background: #f3f0f8; }
.auth-login .ar-eye:focus-visible { outline: 2px solid #644098; outline-offset: 1px; }
.auth-login .ar-error { display: block; font-size: 0.8rem; color: #dc3545; margin-top: 0.3rem; }
.auth-login .ar-error:empty { display: none; }
.auth-login .ar-caps { font-size: 0.8rem; color: #b45309; margin-top: 0.35rem; }
.auth-login .ar-row { display: flex; justify-content: space-between; align-items: center; margin: 0.25rem 0 1.5rem; }
.auth-login .ar-remember { font-size: 0.88rem; color: #4a4560; }
.auth-login .form-check-input:checked { background-color: #644098; border-color: #644098; }
.auth-login .form-check-input:focus { box-shadow: 0 0 0 3px rgba(100, 64, 152, 0.15); border-color: #644098; }
.auth-login .auth-signin-btn { height: 48px; padding: 0 1rem; border-radius: 10px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.auth-login .auth-signin-btn:focus-visible { outline: 3px solid rgba(202, 46, 109, 0.35); outline-offset: 2px; }
.auth-login .auth-signin-btn:disabled { opacity: 0.85; transform: none; }
.auth-login .ar-secure {
  display: flex; align-items: center; justify-content: center; gap: 0.45rem;
  margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid #eeebf3;
  font-size: 0.8rem; color: #8c86a3;
}
.auth-login .ar-secure i { color: #ca2e6d; }
/* login card footer: developer credit */
.auth-login .ar-credit {
  display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 0.35rem;
  margin-top: 0.6rem; font-size: 0.74rem; line-height: 1.3; text-align: center;
}
.auth-login .ar-credit-label { color: #8c86a3; letter-spacing: 0.02em; }
.auth-login .ar-credit-name { font-weight: 700; letter-spacing: 0.03em; color: #644098; }
.auth-login .ar-link { font-size: 0.8rem; color: #644098; }
.auth-login .ar-link:hover { color: #a8407a; }
.auth-login .ar-link-strong { font-size: 0.86rem; font-weight: 600; color: #644098; text-decoration: none; }
.auth-login .ar-link-strong:hover { color: #a8407a; text-decoration: underline; }
.auth-login .ar-back { text-align: center; margin-top: 1.25rem; font-size: 0.86rem; color: #6b6880; }
.auth-login .ar-step-ico {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 1.1rem;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem;
  background: #f1ecf8; color: #644098;
}
.auth-login .ar-step-ok { background: #e8f6ef; color: #1a7f4b; }
.auth-login .ar-step-warn { background: #fdf0e1; color: #b45309; }
.auth-login .ar-tips { list-style: none; margin: 0 0 1.5rem; padding: 0.9rem 1rem; display: grid; gap: 0.55rem;
  background: #faf9fc; border: 1px solid #eeebf3; border-radius: 10px; font-size: 0.85rem; color: #4a4560; }
.auth-login .ar-tips li { display: flex; gap: 0.55rem; align-items: flex-start; }
.auth-login .ar-tips i { color: #644098; margin-top: 0.1rem; }
.auth-login .ar-rules { list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; font-size: 0.78rem; color: #8c86a3; }
.auth-login .ar-rules li { display: inline-flex; align-items: center; gap: 0.3rem; }
.auth-login .ar-rules li.ok { color: #1a7f4b; }
@media (max-width: 575.98px) {
  .auth-login .auth-right-inner { padding: 2rem 1.35rem; }
}

/* ── Role Cards (Select Role) ────────────────────────────────────── */
/* Compact, equal-height cards in as many columns as fit; a long list scrolls inside the panel so the
   Continue button stays in view. */
.role-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  grid-auto-rows: 1fr;
  gap: 0.6rem;
  max-height: min(48vh, 340px);
  overflow-y: auto;
  padding: 0.2rem;
  margin: -0.2rem;
  scrollbar-width: thin;
}

.role-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.3rem;
  padding: 0.5rem 0.85rem 0.5rem 0.55rem;
  border: 1.5px solid #e0e6f0;
  border-radius: 12px;
  background: #f5f7fc;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  position: relative;
  text-align: left;
  color: #0d1b3e;
  font-size: 0.84rem;
  min-width: 0;
}

.role-card:hover {
  border-color: #644098;
  background: #f5eeff;
  box-shadow: 0 3px 10px rgba(100, 64, 152, 0.12);
}

.role-card:focus-visible {
  outline: 2px solid #644098;
  outline-offset: 2px;
}

.role-card.selected {
  border-color: #ca2e6d;
  background: linear-gradient(135deg, #fde8f0 0%, #f5d0e3 100%);
  box-shadow: 0 4px 14px rgba(202, 46, 109, 0.16);
}

.role-card-icon-wrap {
  flex-shrink: 0;
  width: 1.95rem;
  height: 1.95rem;
  border-radius: 8px;
  background: #ece6f7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.role-card.selected .role-card-icon-wrap {
  background: #fff;
}

.role-card-icon {
  font-size: 1.02rem;
  color: #644098;
  line-height: 1;
}

.role-card.selected .role-card-icon {
  color: #ca2e6d;
}

.role-card-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.role-card-name {
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: break-word;   /* break between words; inside one only when it cannot fit at all */
}

.role-card-meta {
  font-size: 0.72rem;
  color: #6b7280;
  margin-top: 0.1rem;
  white-space: nowrap;
}

.role-card-check {
  position: absolute;
  top: 0.3rem;
  right: 0.35rem;
  font-size: 0.8rem;
  color: #ca2e6d;
  opacity: 0;
  transition: opacity 0.18s;
}

.role-card.selected .role-card-check {
  opacity: 1;
}

.brand-title {
  color: var(--emr-primary);
  font-weight: 800;
}

.brand-title span {
  color: var(--emr-accent);
}

/* ── Master Grouped Dropdown ─────────────────────────────────────── */
.dropdown-menu-master {
  min-width: 200px;
  padding: 0.4rem 0;
  border: 1px solid #e0e6f0;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(13, 27, 62, 0.13);
}

/* Submenu parent row */
.dropdown-submenu {
  position: relative;
}

/* a top menu with more than 10 entries shows 10 and scrolls (height set by _Layout's script from the first 10 rows) */
.emr-main-menu .dropdown-menu.emr-menu-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
}
.emr-main-menu .dropdown-menu.emr-menu-scroll::-webkit-scrollbar { width: 6px; }
.emr-main-menu .dropdown-menu.emr-menu-scroll::-webkit-scrollbar-track { background: #f8fafc; border-radius: 6px; }
.emr-main-menu .dropdown-menu.emr-menu-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 6px; }
.emr-main-menu .dropdown-menu.emr-menu-scroll::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
/* a flyout of a scrolling menu is placed on the page (fixed), so the scroll box does not cut it off */
/* (more specific than Bootstrap's .navbar-expand-xl .navbar-nav .dropdown-menu { position: absolute }, which kept it clipped) */
.navbar .emr-main-menu .dropdown-menu .dropdown-menu.dropdown-submenu-menu.is-fixed { position: fixed; margin: 0; }

.dropdown-submenu-toggle {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: #644098 !important;
}

.submenu-arrow {
  font-size: 0.7rem;
  opacity: 0.6;
  margin-left: auto;
  flex-shrink: 0;
}

/* Flyout submenu panel with scroll for > 10 items */
.dropdown-submenu-menu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 230px;
  max-height: 375px; /* displays ~10 items and enables smooth scrolling when count > 10 */
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.4rem 0;
  border: 1px solid #e0e6f0;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(13, 27, 62, 0.15);
  background: #fff;
  z-index: 1055;
  margin-left: 2px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
}

.dropdown-submenu-menu::-webkit-scrollbar {
  width: 6px;
}

.dropdown-submenu-menu::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 6px;
}

.dropdown-submenu-menu::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 6px;
}

.dropdown-submenu-menu::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

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

/* flyout opened to the left of its menu (no room on the right) */
.dropdown-submenu-menu.open-left {
  left: auto;
  right: 100%;
  margin-left: 0;
  margin-right: 2px;
}
.dropdown-submenu-menu.open-left ~ .dropdown-submenu-toggle .submenu-arrow,
.dropdown-submenu:has(> .dropdown-submenu-menu.open-left) .submenu-arrow {
  transform: rotate(180deg);
}

/* Highlight parent row when submenu is open */
.dropdown-submenu:hover > .dropdown-submenu-toggle,
.dropdown-submenu:focus-within > .dropdown-submenu-toggle {
  background: #eef3ff;
}

.card-soft {
  border: 1px solid #e6e9f2;
  border-radius: 12px;
  background: #fff;
}

/* ── Enterprise Dark Footer ─────────────────────────────────────── */
.emr-footer {
  background: #1a2236;
  color: #c9d3e8;
  font-size: 0.82rem;
  padding: 0;
  flex-shrink: 0;
}

.emr-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  max-width: 100%;
}

.emr-footer-brand {
  font-weight: 800;
  font-size: 1rem;
  color: #ffffff;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
}

.emr-footer-brand span {
  /* color handled by .brand-* classes */
}

.emr-footer-copy {
  text-align: center;
  color: #8a98b8;
  flex: 1;
  padding: 0 1rem;
}

.emr-footer-copy strong {
  color: #c9d3e8;
}

.emr-footer-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.emr-footer-link {
  color: #8a98b8;
  text-decoration: none;
  transition: color 0.2s;
}

.emr-footer-link:hover {
  color: #f3c94e;
}

.emr-footer-divider {
  color: #3d4f6e;
}

.emr-footer-version {
  display: inline-block;
  background: #2e3f60;
  color: #f3c94e;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  letter-spacing: 0.5px;
  border: 1px solid #3d5280;
}

@media (max-width: 992px) {
  .auth-right-inner {
    padding: 2rem 1.5rem;
  }

  .emr-main-menu .nav-link {
    border-bottom: 0;
    border-radius: 8px;
    margin-bottom: 0.15rem;
  }

  .emr-profile-card {
    width: 100%;
    max-width: 340px;
  }

  .dashboard-title {
    font-size: 1.9rem;
  }

  .dashboard-subtitle {
    font-size: 1.05rem;
  }
}

/* ── User Form Sections ──────────────────────────────────────────── */
.uf-section {
  background: #fff;
  border: 1px solid #e3e8f3;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(15, 33, 60, 0.05);
}

.uf-section-header {
  background: linear-gradient(90deg, #f0f4ff 0%, #eaf2ff 100%);
  border-bottom: 1px solid #d8e4f5;
  border-radius: 12px 12px 0 0;
  color: var(--emr-primary);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.7rem 1rem;
  letter-spacing: 0.02em;
}

.uf-section-body {
  padding: 1.2rem 1rem;
}

/* ── Input icons ─────────────────────────────────────────────────── */
.input-icon-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #8a9bbf;
  font-size: 0.95rem;
  pointer-events: none;
  z-index: 4;
}

.ps-icon {
  padding-left: 2.2rem !important;
}

.pe-eye {
  padding-right: 2.6rem !important;
}

.eye-btn {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #8a9bbf;
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
  z-index: 4;
}

.eye-btn:hover { color: var(--emr-primary); }

/* ── Custom Multi-Select Dropdown ───────────────────────────────── */
.cms-wrap {
  position: relative;
}

.cms-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  background: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  color: #495057;
  user-select: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.cms-trigger:hover { border-color: #86b7fe; }
.cms-open .cms-trigger { border-color: #86b7fe; box-shadow: 0 0 0 0.2rem rgba(13,110,253,.25); }

.cms-arrow {
  font-size: 0.75rem;
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.cms-open .cms-arrow { transform: rotate(180deg); }

.cms-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #d0d7e8;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 33, 60, 0.14);
  z-index: 1050;
  padding: 0;
  overflow: hidden;
}

.cms-options-container {
  max-height: 220px;
  overflow-y: auto;
  padding: 0.35rem 0;
}

.cms-open .cms-dropdown { display: block; }

.cms-group-header {
  padding: 0.45rem 1rem 0.25rem;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--emr-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-top: 1px solid #eef1fa;
}

.cms-group:first-child .cms-group-header { border-top: none; }

.cms-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 1rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #2d3a4e;
  transition: background 0.12s;
}

.cms-option:hover { background: #f0f5ff; }
.cms-option input[type="checkbox"] { flex-shrink: 0; accent-color: var(--emr-primary); }

/* ── Status toggle row & Executive Role Cards ──────────────────── */
.uf-toggle-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.25rem 0;
}

.uf-big-toggle {
  width: 2.75rem !important;
  height: 1.4rem !important;
  cursor: pointer;
  flex-shrink: 0;
}

.emr-role-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.95rem 1.15rem;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 82px;
  position: relative;
}

.emr-role-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.emr-role-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.role-config-drawer {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  margin-top: 0.75rem;
  transition: all 0.2s ease;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
}




/* ── the bell: in-app notifications (SQLScripts/2263) ─────────────────────────────────────────────────────── */
.emr-bell-badge {
  position: absolute; top: -6px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: #dc3545; color: #fff; font-size: 0.66rem; font-weight: 700; line-height: 18px;
  text-align: center; box-shadow: 0 0 0 2px rgba(80, 40, 140, 0.9); font-variant-numeric: tabular-nums;
}
.emr-bell.ring .bi-bell-fill { animation: emr-bell-ring 0.9s ease-in-out 2; transform-origin: 50% 0; }
@keyframes emr-bell-ring { 0%,100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); }
  45% { transform: rotate(9deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .emr-bell.ring .bi-bell-fill { animation: none; } }
.emr-bell-menu { width: min(380px, calc(100vw - 24px)); border: 0; border-radius: 12px; overflow: hidden; color: #1f2937; }
.emr-bell-head { display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 0.9rem; border-bottom: 1px solid #eef0f4; }
.emr-bell-live { width: 8px; height: 8px; border-radius: 50%; background: #adb5bd; }
.emr-bell-live.on { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18); }
.emr-bell-sound { border: 0; background: transparent; color: #644098; font-size: 1rem; line-height: 1; padding: 0.15rem 0.3rem; border-radius: 6px; }
.emr-bell-sound:hover { background: #f1ecf8; }
.emr-bell-sound.off { color: #adb5bd; }
.emr-bell-tabs { display: flex; gap: 0.25rem; padding: 0.4rem 0.9rem; border-bottom: 1px solid #eef0f4; background: #fafbfc; }
.emr-bell-tabs button { border: 0; background: none; font-size: 0.78rem; font-weight: 600; color: #6b7280; padding: 0.2rem 0.6rem; border-radius: 999px; }
.emr-bell-tabs button.active { background: #ede9fe; color: #5b21b6; }
.emr-bell-list { max-height: min(60vh, 440px); overflow-y: auto; }
.emr-bell-empty { padding: 2rem 1rem; text-align: center; color: #9ca3af; font-size: 0.85rem; }
.emr-notif { display: flex; gap: 0.65rem; padding: 0.7rem 0.9rem; border-bottom: 1px solid #f1f3f6; cursor: pointer; position: relative; }
.emr-notif:hover { background: #f8f7ff; }
.emr-notif.unread { background: #f5f3ff; }
.emr-notif.unread::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #7c3aed; }
.emr-notif-icon { flex: 0 0 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; }
.emr-notif-icon.sev-INFO { background: #e0f2fe; color: #0369a1; }
.emr-notif-icon.sev-WARNING { background: #fef3c7; color: #b45309; }
.emr-notif-icon.sev-CRITICAL { background: #fee2e2; color: #b91c1c; }
.emr-notif-body { flex: 1 1 auto; min-width: 0; }
.emr-notif-title { font-size: 0.82rem; font-weight: 600; line-height: 1.3; }
.emr-notif.unread .emr-notif-title { font-weight: 700; }
.emr-notif-msg { font-size: 0.78rem; color: #4b5563; line-height: 1.35; margin-top: 2px; overflow-wrap: anywhere; }
.emr-bell-list .emr-notif-msg { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.emr-notif-time { font-size: 0.7rem; color: #9ca3af; margin-top: 3px; }
.emr-notif-x { border: 0; background: none; color: #9ca3af; padding: 0 0.15rem; align-self: flex-start; line-height: 1; }
.emr-notif-x:hover { color: #dc3545; }
.emr-bell-foot { padding: 0.55rem 0.9rem; text-align: center; border-top: 1px solid #eef0f4; background: #fafbfc; }

/* an empty validation summary (no errors) is not shown as a blank alert box */
.validation-summary-valid { display: none !important; }

/* ── Sign-in brand panel: hospital modules, workflow and heartbeat (Views/Account/_AuthBrandPanel) ── */
.auth-left .al-lead2 { font-size: 0.95rem; line-height: 1.6; opacity: 0.9; margin: 0.75rem 0 1.25rem; max-width: 27rem; }
.auth-left .al-mods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-bottom: 1.1rem; }
.auth-left .al-mod {
    background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 0.9rem;
    padding: 0.85rem 0.8rem; backdrop-filter: blur(4px); transition: transform .15s ease, background .15s ease;
}
.auth-left .al-mod:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.16); }
.auth-left .al-mod strong { display: block; font-size: 1.05rem; font-weight: 800; letter-spacing: 0.06em; margin-top: 0.5rem; }
.auth-left .al-mod small { display: block; font-size: 0.72rem; line-height: 1.4; opacity: 0.8; margin-top: 0.15rem; }
.auth-left .al-mod-ico {
    width: 38px; height: 38px; border-radius: 0.65rem; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.95); color: var(--c); font-size: 1.15rem; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.auth-left .al-flow {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.4rem; font-size: 0.78rem; font-weight: 600;
    background: rgba(0, 0, 0, 0.14); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 0.75rem; padding: 0.55rem 0.75rem;
}
.auth-left .al-flow span { display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap; }
.auth-left .al-flow span i { opacity: 0.85; }
.auth-left .al-flow-sep { font-size: 0.65rem; opacity: 0.55; }
.auth-left .al-trust { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.auth-left .al-trust span {
    display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.74rem; font-weight: 600; padding: 0.25rem 0.65rem;
    border-radius: 999px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.18);
}
.auth-left .al-ecg { display: block; width: 100%; height: 34px; margin: 0.6rem 0 0.2rem; color: rgba(255, 255, 255, 0.35); pointer-events: none; }
.auth-left .al-ecg polyline { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: al-ecg-draw 3.2s ease-out forwards; }
@keyframes al-ecg-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .auth-left .al-ecg polyline { animation: none; stroke-dashoffset: 0; } }
.auth-modules-chip {
    display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: #7e3a8f; background: #f6eefa; border: 1px solid #ead7f2; border-radius: 999px; padding: 0.25rem 0.7rem; margin-bottom: 0.75rem;
}

/* ── Login card: compact, so more of the background picture shows ── */
.auth-card.auth-login { width: min(860px, 100%); border-radius: 16px; }
.auth-login .auth-left { padding: 1.9rem 1.9rem 1.5rem; }
.auth-login .auth-left-title { font-size: 2.1rem; }
.auth-login .auth-left-sub { font-size: 0.7rem; margin-top: 0.7rem; }
.auth-login .al-lead { font-size: 0.86rem; margin: 0.6rem 0 1.1rem; }
.auth-login.auth-card .auth-left .al-mods { gap: 0.55rem; margin-bottom: 0.8rem; }
.auth-login.auth-card .auth-left .al-mod { padding: 0.7rem 0.75rem; }
.auth-login.auth-card .auth-left .al-mod strong { font-size: 0.92rem; margin-top: 0.35rem; }
.auth-login.auth-card .auth-left .al-mod small { font-size: 0.66rem; }
.auth-login.auth-card .auth-left .al-flow { font-size: 0.68rem; padding: 0.45rem 0.6rem; gap: 0.3rem 0.28rem; flex-wrap: nowrap; }
.auth-login.auth-card .auth-left .al-flow span { gap: 0.2rem; }
.auth-login.auth-card .auth-left .al-flow-sep { font-size: 0.55rem; }
.auth-login.auth-card .auth-left .al-trust { gap: 0.4rem; flex-wrap: nowrap; }
.auth-login.auth-card .auth-left .al-trust span { font-size: 0.66rem; padding: 0.22rem 0.5rem; gap: 0.25rem; white-space: nowrap; }
@media (max-width: 991.98px) { .auth-login.auth-card .auth-left .al-flow, .auth-login.auth-card .auth-left .al-trust { flex-wrap: wrap; } }
.auth-login .auth-right-inner { max-width: 360px; padding: 2.1rem 1.9rem; }
.auth-login .auth-right-title { font-size: 1.55rem; }
.auth-login .auth-right-sub { font-size: 0.85rem; }

/* ── Login card: frosted glass over the background picture; each side keeps its own contrast ── */
.auth-card.auth-login { background: transparent; border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 1.5rem 4rem rgba(10, 6, 30, 0.45); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
/* left: deep translucent brand colour keeps white text readable (≥ 7:1) */
.auth-card.auth-login .auth-left { background: linear-gradient(150deg, rgba(50, 26, 100, 0.66) 0%, rgba(100, 64, 152, 0.56) 55%, rgba(150, 50, 110, 0.58) 100%); }
/* right: light frosted panel keeps the dark form text readable */
.auth-card.auth-login .auth-right { background: rgba(255, 255, 255, 0.76); }
.auth-card.auth-login .auth-right .ar-input { background-color: rgba(255, 255, 255, 0.95); }
.auth-card.auth-login .auth-right-sub, .auth-card.auth-login .ar-remember { color: #4b4762; }
/* browsers without blur: solid panels, as before */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .auth-card.auth-login .auth-left { background: linear-gradient(150deg, #3a2470 0%, #644098 55%, #96326e 100%); }
  .auth-card.auth-login .auth-right { background: #ffffff; }
}

/* ── Select Branch / Select Role: the same compact frosted-glass card as the login ── */
.auth-card.auth-glass { width: min(860px, 100%); border-radius: 16px; background: transparent; border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 1.5rem 4rem rgba(10, 6, 30, 0.45); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.auth-card.auth-glass .auth-left { min-height: 580px; padding: 1.9rem; background: linear-gradient(150deg, rgba(50, 26, 100, 0.66) 0%, rgba(100, 64, 152, 0.56) 55%, rgba(150, 50, 110, 0.58) 100%); }
.auth-card.auth-glass .auth-right { background: rgba(255, 255, 255, 0.76); }
.auth-card.auth-glass .auth-right-inner { max-width: 360px; padding: 2.1rem 1.9rem; }
.auth-card.auth-glass .auth-right-title { font-size: 1.55rem; }
.auth-card.auth-glass .auth-right-sub { font-size: 0.85rem; color: #4b4762; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .auth-card.auth-glass .auth-left { background: linear-gradient(150deg, #3a2470 0%, #644098 55%, #96326e 100%); }
  .auth-card.auth-glass .auth-right { background: #ffffff; }
}
