/* RRS — Auth / Login Styles */

.gc-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(160deg, var(--gc-bg) 0%, #e8eef3 50%, var(--gc-bg) 100%);
  font-family: var(--gc-font-ar);
}

.gc-auth-layout {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 900px;
  flex-wrap: wrap;
}
.gc-auth-layout--unified {
  max-width: 1080px;
}

.gc-auth-card {
  width: 100%;
  max-width: 420px;
  flex: 1 1 360px;
  background: var(--gc-surface);
  border: 1px solid var(--gc-border-light);
  border-radius: var(--gc-radius-lg, 12px);
  padding: 32px 28px;
  box-shadow: var(--gc-shadow-lg);
}
.gc-auth-card--unified {
  max-width: 520px;
  flex-basis: 460px;
}

.gc-auth-brand { text-align: center; margin-bottom: 28px; }
.gc-auth-logo {
  width: 56px; height: 56px; margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gc-navy), #0d4a6e);
  display: flex; align-items: center; justify-content: center;
}
.gc-auth-logo i { width: 28px; height: 28px; color: var(--gc-gold, #C69A2E); }
.gc-auth-title { font-size: 22px; font-weight: 800; color: var(--gc-navy); margin: 0 0 4px; }
.gc-auth-subtitle { font-size: 13px; color: var(--gc-text-secondary); margin: 0; }

.gc-auth-form { display: flex; flex-direction: column; gap: 14px; }
.gc-auth-label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--gc-text-secondary);
}
.gc-auth-input {
  padding: 11px 14px; border: 1px solid var(--gc-border);
  border-radius: var(--gc-radius-sm); font-family: inherit; font-size: 14px;
  background: var(--gc-surface); color: var(--gc-text);
}
.gc-auth-input:focus { outline: 2px solid var(--gc-blue-soft); border-color: var(--gc-blue); }

.gc-auth-error {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  background: var(--gc-critical-soft); color: var(--gc-critical);
  border-radius: var(--gc-radius-sm); font-size: 12px; font-weight: 600;
}
.gc-auth-error i { width: 16px; height: 16px; flex-shrink: 0; }

.gc-auth-submit {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 6px; padding: 12px; border: 0; border-radius: var(--gc-radius-sm);
  background: var(--gc-navy); color: #fff; font-family: inherit;
  font-size: 14px; font-weight: 700; cursor: pointer;
}
.gc-auth-submit:hover:not(:disabled) { opacity: 0.92; }
.gc-auth-submit:disabled { opacity: 0.6; cursor: wait; }
.gc-auth-submit i { width: 18px; height: 18px; }

.gc-auth-demo-toggle {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; margin-top: 16px; padding: 8px; border: 0; background: none;
  color: var(--gc-blue); font-family: inherit; font-size: 12px; font-weight: 600;
  cursor: pointer;
}
.gc-auth-demo-toggle i { width: 14px; height: 14px; }

.gc-auth-demo-list {
  margin-top: 10px; display: flex; flex-direction: column; gap: 6px;
  max-height: 320px; overflow-y: auto; padding-left: 2px;
}
.gc-auth-demo-list--unified {
  max-height: 480px;
  gap: 10px;
}
.gc-auth-demo-portal-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gc-auth-demo-portal-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px 2px;
  font-size: 12px;
  font-weight: 800;
  color: var(--gc-navy);
  border-bottom: 1px solid var(--gc-border-light);
  margin-bottom: 2px;
}
.gc-auth-demo-portal-heading i,
.gc-auth-demo-portal-heading svg {
  width: 14px;
  height: 14px;
  color: var(--gc-blue);
  flex-shrink: 0;
}
.gc-auth-demo-portal-count {
  margin-right: auto;
  font-size: 10px;
  font-weight: 700;
  color: var(--gc-text-tertiary);
  background: var(--gc-muted);
  padding: 2px 8px;
  border-radius: 999px;
}
.gc-auth-demo-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 10px 12px; border: 1px solid var(--gc-border-light);
  border-radius: var(--gc-radius-sm); background: var(--gc-muted);
  cursor: pointer; font-family: inherit; text-align: right; width: 100%;
}
.gc-auth-demo-item:hover { background: var(--gc-blue-soft); border-color: var(--gc-blue); }
.gc-auth-demo-type { font-size: 11px; font-weight: 700; color: var(--gc-blue); line-height: 1.4; }
.gc-auth-demo-name { font-size: 13px; font-weight: 700; color: var(--gc-navy); }
.gc-auth-demo-hint { font-size: 11px; color: var(--gc-text-tertiary); font-family: var(--gc-font-en); direction: ltr; }
.gc-auth-demo-role { font-size: 10px; color: var(--gc-blue); font-weight: 600; }
.gc-auth-demo-note { font-size: 11px; color: var(--gc-text-tertiary); text-align: center; margin: 8px 0 0; }

.gc-auth-back {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 20px; font-size: 12px; color: var(--gc-text-tertiary);
  text-decoration: none; font-weight: 600;
}
.gc-auth-back:hover { color: var(--gc-blue); }
.gc-auth-back i { width: 14px; height: 14px; }

/* Session bar above portal */
html, body, #root {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

.gc-auth-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
}

/* Single portal shell below auth bar — sidebar + main share full width */
.gc-portal-shell {
  flex: 1;
  min-height: 0;
  min-width: 0;
  width: 100%;
  position: relative;
  overflow: hidden;
}
/* Session info at bottom of sidebar */
.gc-sidebar-auth {
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.gc-sidebar-auth--collapsed {
  padding: 8px 6px;
  display: flex;
  justify-content: center;
}
.gc-sidebar-auth-user {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  min-width: 0;
}
.gc-sidebar-auth-user > i,
.gc-sidebar-auth-user > svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.85;
  color: rgba(255,255,255,0.9);
}
.gc-sidebar-auth-details { min-width: 0; flex: 1; }
.gc-sidebar-auth-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gc-sidebar-auth-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.gc-sidebar-auth-role {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  font-size: 9px;
  color: rgba(255,255,255,0.88);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gc-sidebar-auth-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: rgba(255,255,255,0.9);
  padding: 5px 8px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}
.gc-sidebar-auth--collapsed .gc-sidebar-auth-logout {
  width: auto;
  padding: 6px;
}
.gc-sidebar-auth-logout:hover { background: rgba(255,255,255,0.1); }
.gc-sidebar-auth-logout i,
.gc-sidebar-auth-logout svg { width: 13px; height: 13px; }

.gc-sidebar-auth-portals { margin-bottom: 8px; position: relative; }
.gc-sidebar-auth-portals--collapsed { margin-bottom: 6px; }
.gc-sidebar-auth-portal-toggle,
.gc-sidebar-auth-portal-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92); padding: 5px 8px; border-radius: 6px;
  font-family: inherit; font-size: 10px; font-weight: 600; cursor: pointer;
}
.gc-sidebar-auth-portal-btn { width: auto; padding: 6px; }
.gc-sidebar-auth-portal-toggle:hover,
.gc-sidebar-auth-portal-btn:hover { background: rgba(255,255,255,0.12); }
.gc-sidebar-auth-portal-menu {
  display: flex; flex-direction: column; gap: 4px; margin-top: 6px;
}
.gc-sidebar-auth-portal-menu--floating {
  position: absolute; bottom: calc(100% + 6px); right: 0; left: 0;
  background: var(--gc-navy, #0d2744); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; padding: 6px; z-index: 20; box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.gc-sidebar-auth-portal-item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  border: none; background: transparent; color: rgba(255,255,255,0.9);
  padding: 6px 8px; border-radius: 6px; font-family: inherit; font-size: 10px;
  text-align: right; cursor: pointer;
}
.gc-sidebar-auth-portal-item:hover { background: rgba(255,255,255,0.1); }
.gc-sidebar-auth-portal-item.is-active { background: rgba(255,255,255,0.16); font-weight: 700; }
.gc-sidebar-auth-portal-item i, .gc-sidebar-auth-portal-item svg { width: 12px; height: 12px; flex-shrink: 0; }

.gc-auth-demo-heading {
  font-size: 12px; font-weight: 700; color: var(--gc-text-secondary, #5a6b7d);
  margin: 0 0 8px; text-align: center;
}

.gc-auth-link-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 280px;
  max-width: 340px;
  min-height: 100%;
  padding: 24px 22px;
  background: var(--gc-surface);
  border: 1px solid var(--gc-border-light);
  border-radius: var(--gc-radius-lg, 12px);
  box-shadow: var(--gc-shadow-lg);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}
.gc-auth-link-card:hover {
  box-shadow: var(--gc-shadow-md, 0 8px 24px rgba(11, 46, 74, 0.12));
  border-color: var(--gc-blue-soft, #E8F0FA);
  transform: translateY(-2px);
}
.gc-auth-link-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}
.gc-auth-link-card-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gc-info-soft, #E8F4FC);
  color: var(--gc-info, #1565C0);
}
.gc-auth-link-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gc-navy), #0d4a6e);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gc-auth-link-card-icon i,
.gc-auth-link-card-icon svg {
  width: 22px;
  height: 22px;
  color: var(--gc-gold, #C69A2E);
}
.gc-auth-link-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--gc-navy);
  margin-bottom: 4px;
}
.gc-auth-link-card-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gc-text-tertiary);
  font-family: var(--gc-font-en, system-ui);
  margin-bottom: 10px;
}
.gc-auth-link-card-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--gc-text-secondary);
  margin: 0 0 auto;
}
.gc-auth-link-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gc-blue);
}
.gc-auth-link-card-cta i,
.gc-auth-link-card-cta svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 820px) {
  .gc-auth-layout { flex-direction: column; align-items: center; }
  .gc-auth-link-card { max-width: 420px; width: 100%; min-height: auto; }
}

.gc-auth-portal-pick-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px;
}
.gc-auth-portal-pick-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 12px; border: 1px solid var(--gc-border, #dde3ea);
  border-radius: 12px; background: #fff; cursor: pointer; font-family: inherit;
  color: var(--gc-text-primary, #1a2b3c); font-size: 13px; font-weight: 600;
}
.gc-auth-portal-pick-item:hover { border-color: var(--gc-blue, #1565c0); background: var(--gc-blue-soft, #e8f1fb); }
.gc-auth-portal-pick-item i, .gc-auth-portal-pick-item svg { width: 22px; height: 22px; color: var(--gc-blue, #1565c0); }

/* Legacy top session bar (kept for reference; no longer rendered) */
.gc-auth-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 16px; background: var(--gc-navy); color: #fff;
  font-size: 12px; flex-shrink: 0; z-index: 100;
}
.gc-auth-bar-user { display: flex; align-items: center; gap: 8px; }
.gc-auth-bar-user i { width: 14px; height: 14px; opacity: 0.85; }
.gc-auth-bar-name { font-weight: 700; }
.gc-auth-bar-role {
  padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,0.15);
  font-size: 10px; margin-right: 4px;
}
.gc-auth-bar-logout {
  display: flex; align-items: center; gap: 5px;
  border: 1px solid rgba(255,255,255,0.25); background: transparent;
  color: #fff; padding: 4px 10px; border-radius: 6px;
  font-family: inherit; font-size: 11px; font-weight: 600; cursor: pointer;
}
.gc-auth-bar-logout:hover { background: rgba(255,255,255,0.1); }
.gc-auth-bar-logout i { width: 13px; height: 13px; }

.gc-auth-wrap > .gc-portal-shell {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

body.op-body .gc-auth-wrap,
body.ca-body .gc-auth-wrap {
  height: 100vh;
}

.gc-data-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 48px 24px;
}
.gc-data-loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.gc-data-loading-icon {
  width: 36px;
  height: 36px;
  color: var(--gc-blue);
  animation: gc-spin 1s linear infinite;
}
.gc-data-loading-text {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--gc-text-secondary);
  font-family: var(--gc-font-ar);
}
@keyframes gc-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ══════════════════════════════════════════════════
   Unified Login — split layout redesign
   ══════════════════════════════════════════════════ */

.gc-login-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--gc-font-ar);
  background: #F2F1EB;
  color: var(--gc-text);
}

/* Login hub shell */
.gc-login-hub {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.gc-login-hub--split {
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

.gc-login-hub-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  align-items: center;
  padding: 20px 16px 28px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(20, 93, 160, 0.06) 0%, transparent 55%),
    var(--gc-bg);
}

.gc-login-hub-body--split {
  padding: 0;
  align-items: stretch;
  overflow: hidden;
  background: #F2F1EB;
}

.gc-login-hub-body > .gc-login-shell {
  width: min(980px, 100%);
  flex-shrink: 0;
}

.gc-login-hub-body--split > .gc-login-shell {
  width: 100%;
  height: 100%;
  flex: 1;
  min-height: 0;
  flex-shrink: 1;
}

.gc-login-hub-body--workflow-only {
  overflow-y: auto;
  padding-top: 12px;
}

.gc-login-topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gc-border-light);
  box-shadow: var(--gc-shadow-sm);
}

.gc-login-topnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 10px 18px;
  box-sizing: border-box;
}

.gc-login-topnav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.gc-login-topnav-seal {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(198, 154, 46, 0.35);
  flex-shrink: 0;
  background: #fff;
}

.gc-login-topnav-seal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gc-login-topnav-brand-text {
  min-width: 0;
}

.gc-login-topnav-title-ar {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--gc-navy);
  line-height: 1.3;
}

.gc-login-topnav-title-en {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--gc-text-tertiary);
  font-family: var(--gc-font-en);
}

.gc-login-topnav-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: var(--gc-muted);
  border-radius: 999px;
  border: 1px solid var(--gc-border-light);
}

.gc-login-topnav-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--gc-text-secondary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.gc-login-topnav-tab i,
.gc-login-topnav-tab svg {
  width: 14px;
  height: 14px;
}

.gc-login-topnav-tab.is-active {
  background: var(--gc-surface);
  color: var(--gc-navy);
  box-shadow: var(--gc-shadow-sm);
}

.gc-login-topnav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gc-login-topnav-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.gc-login-topnav-status.is-online {
  background: var(--gc-success-soft);
  color: var(--gc-success);
}

.gc-login-topnav-status.is-offline {
  background: var(--gc-critical-soft);
  color: var(--gc-critical);
}

.gc-login-topnav-status i,
.gc-login-topnav-status svg {
  width: 12px;
  height: 12px;
}

.gc-login-topnav-home {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--gc-border);
  background: var(--gc-surface);
  color: var(--gc-navy);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.gc-login-topnav-home:hover {
  border-color: var(--gc-blue);
  color: var(--gc-blue);
}

.gc-login-topnav-home i,
.gc-login-topnav-home svg {
  width: 13px;
  height: 13px;
}

.gc-login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.gc-login-page--redirect {
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #F2F1EB 0%, #e8eef3 50%, #F2F1EB 100%);
}

.gc-login-redirect {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 32px;
  background: var(--gc-surface);
  border: 1px solid var(--gc-border-light);
  border-radius: var(--gc-radius-lg);
  box-shadow: var(--gc-shadow-lg);
  text-align: center;
}

.gc-login-redirect i {
  width: 36px;
  height: 36px;
  color: var(--gc-blue);
}

.gc-login-redirect p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--gc-text-secondary);
}

.gc-login-spin {
  animation: gc-spin 1s linear infinite;
}

.gc-login-shell {
  display: flex;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--gc-radius-lg);
  border: 1px solid var(--gc-border-light);
  box-shadow: var(--gc-shadow-lg);
  background: var(--gc-surface);
}

.gc-login-shell--hub {
  min-height: auto;
  align-items: stretch;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

/* Hero panel */
.gc-login-hero {
  position: relative;
  flex: 0 0 42%;
  width: 42%;
  max-width: 42%;
  min-height: 0;
  color: #fff;
  overflow: hidden;
}

.gc-login-hero--compact {
  flex: 0 0 42%;
  width: 42%;
  max-width: 42%;
}

.gc-login-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, #0A1B2A 0%, #122536 48%, #1A2634 100%);
}

.gc-login-hero-arcs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 0% 100%, transparent 16%, rgba(198, 154, 46, 0.06) 16.5%, transparent 17%),
    radial-gradient(circle at 0% 100%, transparent 26%, rgba(255, 255, 255, 0.045) 26.5%, transparent 27%),
    radial-gradient(circle at 0% 100%, transparent 36%, rgba(255, 255, 255, 0.04) 36.5%, transparent 37%),
    radial-gradient(circle at 0% 100%, transparent 46%, rgba(255, 255, 255, 0.035) 46.5%, transparent 47%),
    radial-gradient(circle at 0% 100%, transparent 56%, rgba(255, 255, 255, 0.03) 56.5%, transparent 57%),
    radial-gradient(circle at 0% 100%, transparent 66%, rgba(255, 255, 255, 0.022) 66.5%, transparent 67%);
  opacity: 0.95;
}

.gc-login-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100%;
  padding: 44px 40px 28px;
  box-sizing: border-box;
  overflow-y: auto;
}

.gc-login-hero-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.gc-login-hero-seal {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(198, 154, 46, 0.45);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.gc-login-hero-seal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gc-login-hero-brand-text {
  min-width: 0;
  padding-top: 2px;
}

.gc-login-hero-title-ar {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--gc-gold, #C69A2E);
}

.gc-login-hero-org {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.gc-login-hero-title-en {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.48);
  font-family: var(--gc-font-en);
}

.gc-login-hero-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 38ch;
}

.gc-login-hero-rule {
  width: 48px;
  height: 2px;
  border-radius: 2px;
  background: var(--gc-gold, #C69A2E);
}

.gc-login-hero-headline {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1.35;
  color: #fff;
  letter-spacing: -0.01em;
}

.gc-login-hero-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.72);
}

.gc-login-hero-portals {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.gc-login-hero-portal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.gc-login-hero-portal i,
.gc-login-hero-portal svg {
  width: 15px;
  height: 15px;
  color: var(--gc-gold, #C69A2E);
  flex-shrink: 0;
}

.gc-login-hero-features {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gc-login-hero-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

.gc-login-hero-dot {
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--gc-gold, #C69A2E);
  box-shadow: 0 0 0 3px rgba(198, 154, 46, 0.18);
}

.gc-login-hero-foot {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.gc-login-hero-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.gc-login-hero-status.is-online {
  background: rgba(22, 138, 69, 0.2);
  color: #8fe0ad;
}

.gc-login-hero-status.is-offline {
  background: rgba(199, 53, 45, 0.18);
  color: #f5a8a3;
}

.gc-login-hero-status i,
.gc-login-hero-status svg {
  width: 12px;
  height: 12px;
}

/* Main panel */
.gc-login-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 36px 48px 28px;
  overflow-y: auto;
  background: #F2F1EB;
  box-sizing: border-box;
}

.gc-login-main-stage {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gc-login-intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}

.gc-login-eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #8A8A84;
  letter-spacing: 0.01em;
}

.gc-login-form-title {
  margin: 0;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  color: #141414;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.gc-login-form-sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #7A7A74;
  max-width: 36ch;
}

.gc-login-main > .gc-login-form-card,
.gc-login-main > .gc-login-demo,
.gc-login-main-stage > .gc-login-form-card,
.gc-login-main-stage > .gc-login-demo {
  width: 100%;
  max-width: 440px;
}

.gc-login-form-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.gc-login-form-actions .gc-login-submit {
  width: 100%;
  margin-top: 0;
}

.gc-login-form-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.gc-login-version {
  font-size: 11px;
  font-weight: 600;
  color: #A0A09A;
  font-family: var(--gc-font-en);
}

.gc-login-help-link {
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #6E6E68;
  cursor: pointer;
  text-decoration: none;
}

.gc-login-help-link:hover {
  color: var(--gc-navy);
  text-decoration: underline;
}

.gc-login-main-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gc-login-workflow-btn,
.gc-login-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid rgba(20, 20, 20, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  color: #3A3A36;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.gc-login-workflow-btn:hover,
.gc-login-home-link:hover {
  border-color: rgba(11, 46, 74, 0.28);
  background: #fff;
  color: var(--gc-navy);
}

.gc-login-workflow-btn i,
.gc-login-workflow-btn svg,
.gc-login-home-link i,
.gc-login-home-link svg {
  width: 14px;
  height: 14px;
  color: var(--gc-navy);
}

.gc-login-disclaimer {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.75;
  color: #9A9A94;
  text-align: right;
}

.gc-login-main-top {
  display: flex;
  justify-content: flex-start;
}

.gc-login-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gc-text-tertiary);
  text-decoration: none;
}

.gc-login-back:hover {
  color: var(--gc-blue);
}

.gc-login-back i,
.gc-login-back svg {
  width: 14px;
  height: 14px;
}

.gc-login-form-card {
  background: #fff;
  border: 1px solid rgba(20, 20, 20, 0.06);
  border-radius: 14px;
  padding: 26px 24px 22px;
  box-shadow: 0 10px 30px rgba(20, 24, 30, 0.06);
}

.gc-login-form-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.gc-login-form-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gc-navy), #0d4a6e);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gc-login-form-icon i,
.gc-login-form-icon svg {
  width: 22px;
  height: 22px;
  color: var(--gc-gold);
}

.gc-login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gc-login-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #1C1C1A;
}

.gc-login-input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 1px solid #D8D8D2;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--gc-text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.gc-login-input::placeholder {
  color: #A8A8A2;
  font-family: var(--gc-font-en);
  font-weight: 500;
}

.gc-login-input:focus {
  outline: none;
  border-color: #1A2634;
  box-shadow: 0 0 0 3px rgba(26, 38, 52, 0.08);
}

.gc-login-password-wrap {
  position: relative;
}

.gc-login-password-wrap .gc-login-input {
  padding-left: 42px;
}

.gc-login-password-toggle {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--gc-text-tertiary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.gc-login-password-toggle:hover {
  color: var(--gc-navy);
  background: #F2F1EB;
}

.gc-login-password-toggle i,
.gc-login-password-toggle svg {
  width: 16px;
  height: 16px;
}

.gc-login-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--gc-critical-soft);
  color: var(--gc-critical);
  border-radius: var(--gc-radius-sm);
  font-size: 12px;
  font-weight: 600;
}

.gc-login-error i,
.gc-login-error svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.gc-login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  padding: 14px;
  border: 0;
  border-radius: 10px;
  background: #1A2634;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.15s, opacity 0.15s;
}

.gc-login-submit:hover:not(:disabled) {
  background: #12202c;
  transform: none;
}

.gc-login-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.gc-login-submit i,
.gc-login-submit svg {
  width: 18px;
  height: 18px;
}

/* Demo panel */
.gc-login-demo {
  display: flex;
  flex-direction: column;
  background: var(--gc-surface);
  border: 1px solid var(--gc-border-light);
  border-radius: var(--gc-radius-lg);
  box-shadow: var(--gc-shadow-sm);
  overflow: hidden;
}

.gc-login-demo-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-bottom: 1px solid var(--gc-border-light);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: right;
  transition: background 0.15s;
}

.gc-login-demo.is-collapsed .gc-login-demo-head {
  border-bottom: none;
  border-radius: var(--gc-radius-lg);
}

.gc-login-demo-head:hover {
  background: var(--gc-muted);
}

.gc-login-demo-head-text {
  min-width: 0;
  flex: 1;
}

.gc-login-demo-head-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.gc-login-demo-chevron {
  width: 18px;
  height: 18px;
  color: var(--gc-text-tertiary);
  flex-shrink: 0;
}

.gc-login-demo.is-open .gc-login-demo-chevron {
  color: var(--gc-blue);
}

.gc-login-demo-title {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 800;
  color: var(--gc-navy);
}

.gc-login-demo-sub {
  margin: 0;
  font-size: 12px;
  color: var(--gc-text-tertiary);
}

.gc-login-demo-count {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gc-blue-soft);
  color: var(--gc-blue);
  font-size: 11px;
  font-weight: 700;
}

.gc-login-demo-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gc-border-light);
  background: var(--gc-muted);
}

.gc-login-demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gc-login-demo-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--gc-border);
  border-radius: 999px;
  background: var(--gc-surface);
  color: var(--gc-text-secondary);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.gc-login-demo-tab:hover {
  border-color: var(--gc-blue);
  color: var(--gc-blue);
}

.gc-login-demo-tab.is-active {
  background: var(--gc-navy);
  border-color: var(--gc-navy);
  color: #fff;
}

.gc-login-demo-tab i,
.gc-login-demo-tab svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.gc-login-demo-tab-label {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gc-login-demo-tab-count {
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 10px;
}

.gc-login-demo-tab.is-active .gc-login-demo-tab-count {
  background: rgba(255, 255, 255, 0.18);
}

.gc-login-demo-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: var(--gc-surface);
  border: 1px solid var(--gc-border);
  border-radius: var(--gc-radius-sm);
}

.gc-login-demo-search i,
.gc-login-demo-search svg {
  width: 15px;
  height: 15px;
  color: var(--gc-text-tertiary);
  flex-shrink: 0;
}

.gc-login-demo-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 10px 0;
  font-family: inherit;
  font-size: 13px;
  color: var(--gc-text);
}

.gc-login-demo-search input:focus {
  outline: none;
}

.gc-login-demo-body {
  flex: 1;
  min-height: 160px;
  max-height: 340px;
  overflow-y: auto;
  padding: 12px 14px 14px;
}

.gc-login-demo-group + .gc-login-demo-group {
  margin-top: 16px;
}

.gc-login-demo-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--gc-navy);
}

.gc-login-demo-group-head i,
.gc-login-demo-group-head svg {
  width: 14px;
  height: 14px;
  color: var(--gc-blue);
}

.gc-login-demo-group-head span {
  margin-right: auto;
  font-size: 10px;
  font-weight: 700;
  color: var(--gc-text-tertiary);
  background: var(--gc-muted);
  padding: 2px 8px;
  border-radius: 999px;
}

.gc-login-demo-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gc-login-demo-card {
  position: relative;
  padding: 10px 12px;
  border: 1px solid var(--gc-border-light);
  border-radius: var(--gc-radius-sm);
  background: var(--gc-muted);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 10px;
  align-items: start;
}

.gc-login-demo-card:hover {
  border-color: var(--gc-blue);
  background: var(--gc-blue-soft);
}

.gc-login-demo-card.is-selected {
  border-color: var(--gc-blue);
  background: var(--gc-blue-soft);
  box-shadow: 0 0 0 2px rgba(20, 93, 160, 0.15);
}

.gc-login-demo-card-top {
  display: contents;
}

.gc-login-demo-card-type {
  grid-column: 1 / -1;
  font-size: 10px;
  font-weight: 700;
  color: var(--gc-blue);
  line-height: 1.4;
}

.gc-login-demo-quick {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--gc-border);
  border-radius: 8px;
  background: var(--gc-surface);
  color: var(--gc-blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.gc-login-demo-quick:hover {
  background: var(--gc-navy);
  border-color: var(--gc-navy);
  color: #fff;
}

.gc-login-demo-quick i,
.gc-login-demo-quick svg {
  width: 13px;
  height: 13px;
}

.gc-login-demo-card-name {
  display: block;
  grid-column: 1;
  font-size: 13px;
  font-weight: 700;
  color: var(--gc-navy);
}

.gc-login-demo-card-email {
  display: block;
  grid-column: 1;
  font-size: 11px;
  color: var(--gc-text-tertiary);
  font-family: var(--gc-font-en);
  direction: ltr;
  text-align: right;
}

.gc-login-demo-card-role {
  display: block;
  grid-column: 1;
  font-size: 10px;
  font-weight: 600;
  color: var(--gc-blue);
}

.gc-login-demo-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 160px;
  color: var(--gc-text-tertiary);
  font-size: 13px;
  font-weight: 600;
}

.gc-login-demo-empty i,
.gc-login-demo-empty svg {
  width: 28px;
  height: 28px;
  opacity: 0.5;
}

.gc-login-demo-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 10px 16px;
  border-top: 1px solid var(--gc-border-light);
  font-size: 11px;
  color: var(--gc-text-tertiary);
  background: var(--gc-muted);
}

.gc-login-demo-foot i,
.gc-login-demo-foot svg {
  width: 13px;
  height: 13px;
}

.gc-login-demo-foot code {
  font-family: var(--gc-font-en);
  font-size: 11px;
  font-weight: 700;
  color: var(--gc-navy);
  background: var(--gc-surface);
  padding: 2px 8px;
  border-radius: 4px;
}

@media (max-width: 960px) {
  .gc-login-hub--split {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .gc-login-hub-body {
    padding: 12px 12px 20px;
  }

  .gc-login-hub-body--split {
    padding: 0;
    overflow: visible;
  }

  .gc-login-hub-body > .gc-login-shell {
    width: 100%;
  }

  .gc-login-hub-body--split > .gc-login-shell {
    height: auto;
  }

  .gc-login-shell,
  .gc-login-shell--hub {
    flex-direction: column;
    min-height: auto;
    overflow: visible;
  }

  .gc-login-hero,
  .gc-login-hero--compact {
    flex: none;
    width: 100%;
    max-width: none;
    min-height: auto;
  }

  .gc-login-hero-inner {
    padding: 28px 22px 22px;
    gap: 20px;
  }

  .gc-login-hero-body {
    max-width: none;
  }

  .gc-login-hero-portals {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .gc-login-hero-features {
    gap: 12px;
  }

  .gc-login-topnav-inner {
    padding: 10px 12px;
  }

  .gc-login-topnav-tabs {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .gc-login-main {
    max-width: none;
    padding: 28px 18px 24px;
    justify-content: flex-start;
  }

  .gc-login-main > .gc-login-form-card,
  .gc-login-main > .gc-login-demo,
  .gc-login-main-stage > .gc-login-form-card,
  .gc-login-main-stage > .gc-login-demo {
    max-width: none;
  }

  .gc-login-demo-body {
    max-height: 280px;
  }
}

@media (max-width: 480px) {
  .gc-login-hero-inner {
    padding: 24px 16px 18px;
  }

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

  .gc-login-main {
    padding: 22px 14px 20px;
  }

  .gc-login-form-card {
    padding: 20px 16px 18px;
  }

  .gc-login-form-title {
    font-size: 26px;
  }

  .gc-login-demo-tab-label {
    max-width: 88px;
  }
}
