:root {
  --lz-surface: #ffffff;
  --lz-text: #0f172a;
  --lz-muted: #64748b;
  --lz-border: #e2e8f0;
}

.module-shell {
  color: var(--lz-text);
  background: var(--lz-surface);
}

.auth-shell {
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(63, 81, 181, 0.18), transparent 24%), linear-gradient(180deg, #eef2ff 0%, #f8fafc 52%, #e5e7eb 100%);
}

.auth-shell__aside {
  min-height: 100vh;
  padding: 1rem;
}

.auth-shell__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(96px, 1fr);
  gap: 0.5rem;
  min-height: calc(100vh - 2rem);
}

.auth-shell__tile {
  overflow: hidden;
  border-radius: 1.5rem;
  position: relative;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
}

.auth-shell__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, opacity 220ms ease;
}

.auth-shell__tile:hover img {
  transform: scale(1.03);
  opacity: 0.92;
}

.auth-shell__tile--wide {
  grid-column: span 2;
}

.auth-shell__tile--tall {
  grid-row: span 2;
}

.auth-shell__tile--brand {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.94);
}

.auth-shell__tile--brand img {
  object-fit: contain;
  padding: 1.25rem;
}

.auth-shell__main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.auth-card {
  width: 100%;
  max-width: 31rem;
  border: 0;
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18);
}

.auth-card__logo {
  width: min(15rem, 68%);
}

.auth-card__eyebrow {
  color: #3f51b5;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.auth-card__title {
  color: #111827;
  font-size: clamp(1.8rem, 2vw, 2.35rem);
  font-weight: 700;
  line-height: 1.05;
}

.auth-card__subtitle {
  color: #6b7280;
  margin: 0;
}

.auth-field__label {
  color: #374151;
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.auth-field__control {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 1rem;
  min-height: 3.25rem;
  padding-inline: 1rem;
}

.auth-field__control:focus {
  border-color: rgba(63, 81, 181, 0.55);
  box-shadow: 0 0 0 0.24rem rgba(63, 81, 181, 0.14);
}

.auth-card .btn-primary {
  background: linear-gradient(135deg, #3f51b5 0%, #7986cb 100%);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(63, 81, 181, 0.28);
  font-weight: 700;
  min-height: 3.25rem;
}

.auth-card .btn-primary:hover,
.auth-card .btn-primary:focus {
  background: linear-gradient(135deg, #354497 0%, #6777c6 100%);
}

.auth-link {
  color: #3f51b5;
  font-weight: 600;
  text-decoration: none;
}

.auth-link:hover {
  color: #2f3f98;
  text-decoration: underline;
}

.auth-shell .alert {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

@media (max-width: 991.98px) {
  .auth-shell__aside {
    display: none;
  }
  .auth-shell__main {
    padding: 1rem;
  }
  .auth-card {
    max-width: 100%;
  }
}
.module-shell--staff-app {
  --lz-surface: #020617;
  --lz-text: #e2e8f0;
  --lz-muted: #94a3b8;
  --lz-border: rgba(148, 163, 184, 0.18);
  --lz-sidebar-bg: linear-gradient(180deg, #09111f 0%, #111c2f 100%);
  --lz-sidebar-text: #f8fafc;
  --lz-sidebar-link: #cbd5e1;
  --lz-sidebar-muted: #94a3b8;
  --lz-sidebar-border: rgba(148, 163, 184, 0.18);
  --lz-sidebar-panel: rgba(15, 23, 42, 0.7);
  --lz-sidebar-hover: rgba(148, 163, 184, 0.12);
  --lz-sidebar-active: rgba(99, 102, 241, 0.22);
  --lz-sidebar-active-border: rgba(129, 140, 248, 0.38);
  --lz-sidebar-active-text: #ffffff;
  --lz-sidebar-avatar: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
  --lz-sidebar-avatar-text: #ffffff;
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.28), transparent 28%), linear-gradient(180deg, #020617 0%, #0f172a 100%);
}

.module-shell--staff-app .card,
.module-shell--staff-app .module-topbar {
  background-color: rgba(15, 23, 42, 0.88);
  border-color: var(--lz-border) !important;
  color: var(--lz-text);
}

.module-shell--staff-app .text-secondary {
  color: var(--lz-muted) !important;
}

.module-shell--staff-condo {
  --lz-surface: #f8fafc;
  --lz-text: #1f2937;
  --lz-muted: #6b7280;
  --lz-border: rgba(120, 113, 108, 0.16);
  --lz-sidebar-bg: linear-gradient(180deg, #f5f5f4 0%, #e7e5e4 100%);
  --lz-sidebar-text: #1c1917;
  --lz-sidebar-link: #44403c;
  --lz-sidebar-muted: #78716c;
  --lz-sidebar-border: rgba(120, 113, 108, 0.16);
  --lz-sidebar-panel: rgba(255, 255, 255, 0.78);
  --lz-sidebar-hover: rgba(245, 158, 11, 0.12);
  --lz-sidebar-active: rgba(245, 158, 11, 0.18);
  --lz-sidebar-active-border: rgba(217, 119, 6, 0.2);
  --lz-sidebar-active-text: #92400e;
  --lz-sidebar-avatar: linear-gradient(135deg, #f59e0b 0%, #fb7185 100%);
  --lz-sidebar-avatar-text: #fff7ed;
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.2), transparent 24%), linear-gradient(180deg, #fafaf9 0%, #f8fafc 100%);
}

.module-shell--staff-condo .card,
.module-shell--staff-condo .module-topbar {
  border-color: var(--lz-border) !important;
}

.module-shell--resident {
  --lz-surface: #f0f9ff;
  --lz-text: #082f49;
  --lz-muted: #0369a1;
  --lz-border: rgba(14, 165, 233, 0.18);
  --lz-sidebar-bg: linear-gradient(180deg, #ecfeff 0%, #dbeafe 100%);
  --lz-sidebar-text: #0c4a6e;
  --lz-sidebar-link: #075985;
  --lz-sidebar-muted: #0369a1;
  --lz-sidebar-border: rgba(14, 165, 233, 0.18);
  --lz-sidebar-panel: rgba(255, 255, 255, 0.72);
  --lz-sidebar-hover: rgba(14, 165, 233, 0.12);
  --lz-sidebar-active: rgba(14, 165, 233, 0.18);
  --lz-sidebar-active-border: rgba(2, 132, 199, 0.18);
  --lz-sidebar-active-text: #0c4a6e;
  --lz-sidebar-avatar: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
  --lz-sidebar-avatar-text: #f0f9ff;
  background: radial-gradient(circle at top left, rgba(14, 165, 233, 0.18), transparent 26%), linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
}

.module-shell--resident .card,
.module-shell--resident .module-topbar {
  border-color: var(--lz-border) !important;
}

body {
  min-height: 100vh;
  background: #eef1f5;
  color: #1f2937;
  font-family: "Montserrat", "Segoe UI", sans-serif;
}

.module-topbar {
  backdrop-filter: blur(12px);
}

.placeholder-panel {
  border-radius: 1.25rem;
}

.portal-shell {
  min-height: 100vh;
  display: block;
}

.portal-sidebar {
  width: 100%;
  background: var(--lz-sidebar-bg);
  color: var(--lz-sidebar-text);
  border-bottom: 1px solid var(--lz-sidebar-border);
  overflow-y: auto;
  scrollbar-width: thin;
}

.portal-sidebar__inner {
  display: flex;
  flex-direction: column;
  min-height: auto;
  padding: 1.25rem 1rem 1rem;
}

.portal-sidebar__brand {
  padding: 0.35rem 0.35rem 1rem;
}

.portal-sidebar__eyebrow {
  margin-bottom: 0.35rem;
  color: var(--lz-sidebar-muted);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-sidebar__logo {
  color: var(--lz-sidebar-text);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
}

.portal-sidebar__profile {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.85rem;
  align-items: center;
  margin: 0 0.25rem 1.25rem;
  padding: 0.9rem;
  background: var(--lz-sidebar-panel);
  border: 1px solid var(--lz-sidebar-border);
  border-radius: 1rem;
}

.portal-sidebar__avatar {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--lz-sidebar-avatar);
  color: var(--lz-sidebar-avatar-text);
  font-weight: 800;
}

.portal-sidebar__name {
  color: var(--lz-sidebar-text);
  font-size: 0.96rem;
  font-weight: 700;
}

.portal-sidebar__meta {
  color: var(--lz-sidebar-muted);
  font-size: 0.82rem;
}

.portal-sidebar__nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0 0.25rem;
}

.portal-nav-section + .portal-nav-section {
  margin-top: 1rem;
}

.portal-nav-section__title {
  margin: 0 0 0.45rem;
  padding: 0 0.65rem;
  color: var(--lz-sidebar-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-sidebar .nav-link {
  display: block;
  margin-bottom: 0.2rem;
  padding: 0.72rem 0.8rem;
  border-radius: 0.85rem;
  color: var(--lz-sidebar-link);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.portal-sidebar .nav-link:hover {
  background: var(--lz-sidebar-hover);
  color: var(--lz-sidebar-text);
  transform: translateX(2px);
}

.portal-sidebar .nav-link.active {
  background: var(--lz-sidebar-active);
  color: var(--lz-sidebar-active-text);
  box-shadow: inset 0 0 0 1px var(--lz-sidebar-active-border);
}

.portal-sidebar__footer {
  padding: 1rem 0.25rem 0;
  border-top: 1px solid var(--lz-sidebar-border);
}

.portal-nav-link--danger {
  color: #b91c1c !important;
}

.portal-content {
  min-width: 0;
}

.portal-content__inner {
  width: min(1180px, 100% - 2rem);
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
}

@media (min-width: 992px) {
  .portal-shell {
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
  }
  .portal-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: 1px solid var(--lz-sidebar-border);
    border-bottom: 0;
  }
  .portal-content__inner {
    padding: 1.5rem 0 2.5rem;
  }
}
