/* ═══════════════════════════════════════════════════════════════
   Mariners Court Cebu — Management Portal (hotel-style)
   ═══════════════════════════════════════════════════════════════ */
:root {
  --portal-navy: #0b1423;
  --portal-navy-2: #111d31;
  --portal-navy-3: #17243a;
  --portal-gold: #c5a059;
  --portal-gold-soft: rgba(197, 160, 89, .14);
  --portal-gold-border: rgba(197, 160, 89, .45);
  --portal-bg: #f4f5f7;
  --portal-card: #ffffff;
  --portal-text: #1f2937;
  --portal-muted: #6b7280;
  --portal-border: #e5e7eb;
  --portal-sidebar-w: 272px;
  --portal-radius: 14px;
  --portal-shadow: 0 10px 30px rgba(11, 20, 35, .08);
  --portal-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --portal-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.portal-body--home {
  font-family: var(--portal-sans);
  background: var(--portal-bg);
  color: var(--portal-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Sidebar ── */
.portal-sidebar {
  width: var(--portal-sidebar-w);
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--portal-navy) 0%, #070e18 100%);
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  padding: 22px 16px 18px;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 200;
  border-right: 1px solid rgba(255, 255, 255, .06);
}

.portal-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  margin-bottom: 18px;
}

.portal-sidebar-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  padding: 4px;
}

.portal-sidebar-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--portal-gold), #a8843f);
  color: var(--portal-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--portal-serif);
  font-size: 24px;
  font-weight: 500;
}

.portal-sidebar-brandtext {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.portal-sidebar-brandtext strong {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.3;
  color: #fff;
}

.portal-sidebar-brandtext span {
  font-size: 9px;
  font-weight: 500;
  color: var(--portal-gold);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.portal-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding-right: 2px;
  font-family: var(--portal-sans);
}

.portal-nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #6b7280;
  padding: 14px 12px 8px;
}

.portal-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #d1d5db;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 3px;
  transition: background .15s ease, color .15s ease;
}

.portal-nav-item i:first-child {
  width: 18px;
  text-align: center;
  font-size: 14px;
  opacity: .85;
}

.portal-nav-item:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff;
}

.portal-nav-item.is-active {
  background: linear-gradient(135deg, var(--portal-gold), #a8843f);
  color: var(--portal-navy);
  border-left: none;
  padding-left: 12px;
  font-weight: 600;
}
.portal-nav-item.is-active i { opacity: 1; color: var(--portal-navy); }

.portal-nav-chevron {
  margin-left: auto;
  font-size: 10px;
  opacity: .45;
}

.portal-support-card {
  margin-top: 16px;
  border-radius: 12px;
  overflow: hidden;
  min-height: 148px;
  background:
    linear-gradient(180deg, rgba(11, 20, 35, .15) 0%, rgba(11, 20, 35, .88) 100%),
    var(--portal-support-bg, linear-gradient(135deg, #1e3a5f, #0b1423)) center/cover no-repeat;
  border: 1px solid rgba(255, 255, 255, .08);
}

.portal-support-overlay {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 148px;
}

.portal-support-card h4 {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 6px;
}

.portal-support-card p {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .78);
  margin-bottom: 12px;
}

.portal-support-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--portal-gold-border);
  background: rgba(197, 160, 89, .18);
  color: var(--portal-gold);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: background .15s ease;
}

.portal-support-btn:hover {
  background: rgba(197, 160, 89, .28);
  color: #fff;
}

/* ── Main area ── */
.portal-main {
  flex: 1;
  min-width: 0;
  margin-left: var(--portal-sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px 18px;
  background: var(--portal-bg);
  border-bottom: 1px solid var(--portal-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.portal-mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--portal-border);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  color: var(--portal-text);
}

.portal-header-greeting h1 {
  font-family: var(--portal-serif);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  font-style: normal;
  color: var(--portal-navy);
  line-height: 1.2;
  margin-bottom: 4px;
}

.portal-text-gold {
  color: var(--portal-gold);
  font-style: normal;
  font-weight: 500;
}

.portal-header-greeting p {
  font-size: 14px;
  color: var(--portal-muted);
}

.portal-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.portal-notif-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--portal-border);
  background: #fff;
  color: var(--portal-navy);
  cursor: pointer;
  font-size: 16px;
}

.portal-notif-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  line-height: 18px;
  text-align: center;
  border: 2px solid #fff;
}

.portal-user-menu { position: relative; }

.portal-user-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--portal-border);
  background: #fff;
  border-radius: 12px;
  padding: 6px 12px 6px 6px;
  cursor: pointer;
  font-family: inherit;
}

.portal-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 14px;
}

.portal-user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.portal-user-meta strong {
  font-size: 13px;
  color: var(--portal-navy);
  line-height: 1.2;
}

.portal-user-meta small {
  font-size: 11px;
  color: var(--portal-muted);
}

.portal-user-trigger > .fa-chevron-down {
  font-size: 10px;
  color: #9ca3af;
  margin-left: 4px;
}

.portal-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--portal-border);
  border-radius: 12px;
  box-shadow: var(--portal-shadow);
  padding: 6px;
  display: none;
  z-index: 60;
}

.portal-user-dropdown.is-open { display: block; }

.portal-user-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--portal-text);
}

.portal-user-dropdown a:hover { background: #f9fafb; }
.portal-user-dropdown a.is-danger { color: #dc2626; }
.portal-user-dropdown a.is-danger:hover { background: #fef2f2; }

.portal-content {
  flex: 1;
  padding: 22px 28px 28px;
}

.portal-flash-wrap { margin-bottom: 16px; }
.portal-flash {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
}
.portal-flash + .portal-flash { margin-top: 8px; }
.portal-flash-success { background: #dcfce7; color: #166534; border-color: #86efac; }
.portal-flash-error { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.portal-flash i { margin-right: 8px; }

/* ── Hero banner ── */
.portal-hero-banner {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 38px 38px 38px 42px;
  margin-bottom: 22px;
  background:
    linear-gradient(105deg, rgba(11, 20, 35, .9) 0%, rgba(11, 20, 35, .62) 52%, rgba(11, 20, 35, .35) 100%),
    var(--portal-hero-bg, linear-gradient(135deg, #1e3a5f, #0b1423)) center/cover no-repeat;
  box-shadow: var(--portal-shadow);
}

.portal-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 520px;
  color: #fff;
}

.portal-hero-copy h2 {
  font-family: var(--portal-serif);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 500;
  font-style: normal;
  line-height: 1.12;
  margin-bottom: 12px;
}

.portal-hero-copy h2 .portal-text-gold {
  font-weight: 500;
}

.portal-hero-copy p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .84);
  max-width: 460px;
  margin-bottom: 18px;
}

.portal-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--portal-gold), #a8843f);
  color: var(--portal-navy);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(197, 160, 89, .28);
  transition: transform .15s ease, box-shadow .15s ease;
}

.portal-hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(197, 160, 89, .34);
}

.portal-hero-widgets {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(100%, 320px);
  flex-shrink: 0;
}

.portal-hero-widget {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, .78);
  border: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.portal-hero-widget-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.portal-hero-widget-icon i {
  font-size: 20px;
  line-height: 1;
  color: #fff;
  display: block;
}

.portal-hero-widget strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 2px;
}

.portal-hero-widget span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, .75);
}

.portal-hero-link {
  border: none;
  background: none;
  color: var(--portal-gold);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  margin-top: 2px;
  text-align: left;
}

/* ── GM Quick Stats ── */
.portal-gm-stats {
  margin-bottom: 28px;
}

.portal-gm-stats-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.portal-gm-stats-head h3 {
  font-family: var(--portal-serif);
  font-size: 22px;
  font-weight: 500;
  font-style: normal;
  color: var(--portal-navy);
}

.portal-gm-stats-head span {
  font-size: 12px;
  color: var(--portal-muted);
}

.portal-gm-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.portal-gm-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px 16px;
  background: var(--portal-card);
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.portal-gm-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(11, 20, 35, .08);
  border-color: rgba(197, 160, 89, .35);
}

.portal-gm-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.portal-gm-card--navy .portal-gm-card-icon {
  background: rgba(11, 20, 35, .08);
  color: var(--portal-navy);
}

.portal-gm-card--gold .portal-gm-card-icon {
  background: rgba(197, 160, 89, .14);
  color: #a8843f;
}

.portal-gm-card-body { min-width: 0; }

.portal-gm-card-label {
  display: block;
  font-size: 12px;
  color: var(--portal-muted);
  margin-bottom: 4px;
}

.portal-gm-card-value {
  display: block;
  font-size: 28px;
  font-weight: 500;
  color: var(--portal-navy);
  line-height: 1.1;
  margin-bottom: 10px;
}

.portal-gm-card-link {
  font-size: 11px;
  font-weight: 500;
  color: var(--portal-navy);
  opacity: .7;
}

.portal-gm-card-link i {
  font-size: 10px;
  margin-left: 2px;
  transition: transform .15s ease;
}

.portal-gm-card:hover .portal-gm-card-link {
  opacity: 1;
  color: #a8843f;
}

.portal-gm-card:hover .portal-gm-card-link i {
  transform: translateX(3px);
}

/* ── Systems grid ── */
.portal-systems-section { margin-bottom: 24px; }

.portal-systems-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.portal-section-title {
  font-family: var(--portal-serif);
  font-size: 28px;
  font-weight: 500;
  font-style: normal;
  color: var(--portal-navy);
}

.portal-systems-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-search-wrap {
  position: relative;
}

.portal-search-wrap i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 13px;
}

.portal-search-input {
  width: 240px;
  max-width: 100%;
  height: 40px;
  padding: 0 12px 0 36px;
  border: 1px solid var(--portal-border);
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  outline: none;
}

.portal-search-input:focus {
  border-color: var(--portal-gold);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, .15);
}

.portal-view-toggle {
  display: inline-flex;
  border: 1px solid var(--portal-border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.portal-view-toggle button {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  font-size: 14px;
}

.portal-view-toggle button.is-active {
  background: var(--portal-navy);
  color: #fff;
}

.portal-system-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.portal-system-grid.is-list {
  grid-template-columns: 1fr;
}

.portal-system-card {
  display: flex;
  flex-direction: column;
  background: var(--portal-card);
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow: hidden;
}

.portal-system-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(11, 20, 35, .1);
  border-color: rgba(197, 160, 89, .35);
}

.portal-system-card.has-alert {
  border-color: rgba(245, 158, 11, .45);
  box-shadow: 0 4px 16px rgba(245, 158, 11, .12);
}

.portal-system-card-main {
  display: flex;
  gap: 16px;
  padding: 20px 20px 16px;
  align-items: flex-start;
}

.portal-system-icon {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.portal-system-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  line-height: 18px;
  text-align: center;
  border: 2px solid #fff;
}

.portal-system-copy h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--portal-navy);
  margin-bottom: 6px;
  line-height: 1.25;
}

.portal-system-copy p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--portal-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portal-system-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid #f1f5f9;
  font-size: 12px;
  font-weight: 500;
  color: var(--portal-navy);
}

.portal-system-card-foot i {
  color: #9ca3af;
  transition: transform .15s ease, color .15s ease;
}

.portal-system-card:hover .portal-system-card-foot i {
  color: var(--portal-gold);
  transform: translateX(3px);
}

.portal-system-grid.is-list .portal-system-card {
  flex-direction: row;
  align-items: stretch;
}

.portal-system-grid.is-list .portal-system-card-main {
  flex: 1;
  padding-bottom: 20px;
}

.portal-system-grid.is-list .portal-system-card-foot {
  border-top: none;
  border-left: 1px solid #f1f5f9;
  min-width: 150px;
  align-self: stretch;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.portal-empty-state,
.portal-search-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--portal-muted);
  font-size: 14px;
  line-height: 1.6;
}

.portal-empty-state i {
  display: block;
  font-size: 28px;
  margin-bottom: 10px;
  color: #d1d5db;
}

.portal-page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--portal-border);
  font-size: 12px;
  color: #9ca3af;
}

.portal-page-footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.portal-page-footer-links {
  display: flex;
  gap: 16px;
}

.portal-page-footer-links a {
  color: #9ca3af;
  text-decoration: none;
}

.portal-page-footer-links a:hover { color: var(--portal-navy); }

.portal-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 20, 35, .45);
  z-index: 150;
}

/* Card entrance animation */
.portal-system-card {
  opacity: 0;
  transform: translateY(14px);
  animation: portalCardIn .45s ease forwards;
}

.portal-system-card:nth-child(1) { animation-delay: .04s; }
.portal-system-card:nth-child(2) { animation-delay: .08s; }
.portal-system-card:nth-child(3) { animation-delay: .12s; }
.portal-system-card:nth-child(4) { animation-delay: .16s; }
.portal-system-card:nth-child(5) { animation-delay: .20s; }
.portal-system-card:nth-child(6) { animation-delay: .24s; }
.portal-system-card:nth-child(7) { animation-delay: .28s; }
.portal-system-card:nth-child(8) { animation-delay: .32s; }

@keyframes portalCardIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1300px) {
  .portal-system-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .portal-system-grid { grid-template-columns: 1fr; }
  .portal-gm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .portal-sidebar {
    transform: translateX(-100%);
    transition: transform .25s ease;
  }
  .portal-sidebar.is-open { transform: translateX(0); }
  .portal-main { margin-left: 0; }
  .portal-mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .portal-header { padding: 16px; }
  .portal-content { padding: 16px; }
  .portal-header-greeting { min-width: 0; }
  .portal-user-meta { display: none; }
  .portal-hero-banner {
    flex-direction: column;
    padding: 24px;
    min-height: 0;
    align-items: stretch;
  }
  .portal-hero-widgets { width: 100%; }
  .portal-gm-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .portal-systems-head { flex-direction: column; align-items: stretch; }
  .portal-systems-tools { width: 100%; }
  .portal-search-wrap { flex: 1; }
  .portal-search-input { width: 100%; }
  .portal-page-footer { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════════
   Login page — hotel-style split layout
   ═══════════════════════════════════════════════════════════════ */
.login-body {
  font-family: var(--portal-sans);
  background: var(--portal-navy);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
}

.login-hero-panel {
  position: relative;
  background:
    linear-gradient(165deg, rgba(11, 20, 35, .84) 0%, rgba(11, 20, 35, .62) 50%, rgba(11, 20, 35, .78) 100%),
    var(--login-hero-bg, linear-gradient(135deg, #1e3a5f, #0b1423)) center/cover no-repeat;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(36px, 5vw, 64px);
}

.login-hero-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 4vw, 44px);
  width: 100%;
  max-width: 520px;
}

.login-hero-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-hero-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  padding: 6px;
}

.login-hero-mark {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--portal-gold), #a8843f);
  color: var(--portal-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.login-hero-brand strong {
  display: block;
  font-family: var(--portal-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

.login-hero-brand span {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--portal-gold);
  margin-top: 2px;
}

.login-hero-copy {
  padding: 0;
}

.login-hero-copy h2 {
  font-family: var(--portal-serif);
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 14px;
}

.login-text-gold {
  color: var(--portal-gold);
  font-style: normal;
}

.login-hero-copy p {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .78);
  max-width: 440px;
}

.login-hero-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.login-hero-features li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, .9);
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
}

.login-hero-features i {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(197, 160, 89, .18);
  color: var(--portal-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(36px, 5vw, 64px);
  background: #fff;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  animation: loginFadeUp .5s ease;
}

.login-card-head {
  margin-bottom: 32px;
}

.login-card-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--portal-gold);
  margin-bottom: 10px;
}

.login-card-head h1 {
  font-family: var(--portal-serif);
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 500;
  color: var(--portal-navy);
  margin-bottom: 8px;
  line-height: 1.15;
}

.login-card-head p {
  font-size: 14px;
  color: var(--portal-muted);
}

.login-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 20px;
  line-height: 1.45;
}

.login-error i {
  margin-top: 2px;
  flex-shrink: 0;
}

.login-field {
  margin-bottom: 18px;
}

.login-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.login-input-wrap {
  position: relative;
}

.login-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 14px;
  pointer-events: none;
}

.login-input {
  width: 100%;
  padding: 12px 44px 12px 42px;
  border: 1.5px solid var(--portal-border);
  border-radius: 12px;
  font-family: var(--portal-sans);
  font-size: 14px;
  color: var(--portal-text);
  background: #fff;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.login-input:focus {
  border-color: var(--portal-gold);
  box-shadow: 0 0 0 3px var(--portal-gold-soft);
}

.login-input::placeholder {
  color: #9ca3af;
}

.login-password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .2s ease, background .2s ease;
}

.login-password-toggle:hover {
  color: var(--portal-navy);
  background: var(--portal-gold-soft);
}

.login-submit {
  width: 100%;
  margin-top: 8px;
  padding: 13px 18px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--portal-gold), #a8843f);
  color: var(--portal-navy);
  font-family: var(--portal-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.login-submit span,
.login-submit i {
  color: var(--portal-navy);
}

.login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(197, 160, 89, .35);
}

.login-submit:active {
  transform: translateY(0);
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 18px;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--portal-border);
}

.login-biometric {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(11, 20, 35, .14);
  border-radius: 12px;
  background: #fff;
  color: var(--portal-navy);
  font-family: var(--portal-sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.login-biometric:hover {
  border-color: var(--portal-gold-border);
  background: var(--portal-gold-soft);
  box-shadow: 0 4px 14px rgba(11, 20, 35, .06);
}

.login-biometric i {
  color: var(--portal-gold);
  font-size: 16px;
}

.login-footer {
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
  margin-top: 24px;
  line-height: 1.5;
}

@keyframes loginFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-hero-panel {
    min-height: 42vh;
    align-items: flex-end;
    padding: 28px 24px 36px;
  }

  .login-hero-overlay {
    max-width: none;
    gap: 20px;
  }

  .login-hero-copy h2 {
    font-size: 26px;
  }

  .login-hero-features {
    grid-template-columns: 1fr;
  }

  .login-hero-features li {
    flex-direction: row;
    align-items: center;
  }

  .login-main {
    padding: 32px 24px 40px;
  }

  .login-card {
    max-width: 440px;
  }
}

@media (max-width: 480px) {
  .login-hero-panel {
    min-height: 36vh;
    padding: 22px 18px 28px;
  }

  .login-hero-features {
    display: none;
  }

  .login-card-head h1 {
    font-size: 26px;
  }
}

/* Legacy login class aliases (biometric back-link, etc.) */
.lf-group{margin-bottom:18px}
.lf-group label{display:block;font-size:13px;font-weight:600;color:#374151;margin-bottom:6px}
.lf-group .fc{width:100%;padding:11px 14px;border:1.5px solid #E5E7EB;border-radius:10px;font-family:'Inter',sans-serif;font-size:14px;color:#111827;outline:none;transition:all .2s}
.lf-group .fc:focus{border-color:var(--portal-gold);box-shadow:0 0 0 3px var(--portal-gold-soft)}
.btn-login{width:100%;padding:12px;background:linear-gradient(135deg,var(--portal-gold),#a8843f);color:var(--portal-navy);border:none;border-radius:10px;font-family:'Inter',sans-serif;font-size:15px;font-weight:600;cursor:pointer;transition:all .2s;margin-top:6px}
.btn-biometric-shortcut{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:14px;padding:12px 16px;border:2px solid rgba(11,20,35,.14);border-radius:10px;background:#fff;color:var(--portal-navy);font-family:'Inter',sans-serif;font-size:14px;font-weight:600;text-decoration:none;transition:all .2s}
.btn-biometric-shortcut:hover{background:var(--portal-gold-soft);border-color:var(--portal-gold-border)}
.login-logo{text-align:center;margin-bottom:30px}
.login-logo .logo-icon{width:64px;height:64px;margin:0 auto 16px;background:linear-gradient(135deg,var(--portal-gold),#a8843f);border-radius:18px;display:flex;align-items:center;justify-content:center;color:var(--portal-navy);font-size:28px}
.login-brand-img-wrap{margin:0 auto 16px;text-align:center}
.login-brand-img{max-height:72px;width:auto;max-width:220px;object-fit:contain;display:inline-block}
.login-logo h1{font-size:22px;font-weight:600;color:#111827;margin-bottom:4px}
.login-logo p{font-size:13.5px;color:#6B7280}
@keyframes fadeUp{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}

