:root {
  --gp-navy-900: #0d1c33;
  --gp-navy-800: #14284a;
  --gp-navy-700: #1a345f;
  --gp-blue-500: #2f5fa9;
  --gp-blue-600: #274f8d;
  --gp-card-shadow: 0 24px 50px rgba(8, 21, 41, 0.35);
  --gp-page: #f5f7fb;
  --gp-sidebar: #2f3d4a;
  --gp-sidebar-accent: #2aa879;
  --gp-sidebar-text: #d9e3f0;
  --gp-header-bg: #eef1f4;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin: 0;
  background: var(--gp-page);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: #12233e;
}

.gp-auth-page {
  min-height: 100vh;
  width: 100vw;
  background: linear-gradient(180deg, var(--gp-navy-900), var(--gp-navy-700));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.gp-auth-body .container-fluid,
.gp-auth-body main {
  padding: 0;
  margin: 0;
  max-width: none;
}

.gp-auth-body {
  overflow: hidden;
}

.gp-auth-body .gp-auth-page {
  overflow: hidden;
}

.app-header {
  height: 68px;
  background: var(--gp-header-bg);
  border-bottom: 1px solid #d6dde6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 16px;
}

.app-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.app-title {
  font-size: 18px;
  font-weight: 700;
}

.app-subtitle {
  font-size: 12px;
  color: #607089;
}

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

.status-pill {
  background: #2aa879;
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.language-form select {
  border-radius: 999px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d6dde6;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2f5fa9;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 68px - 40px);
}

.app-sidebar {
  background: var(--gp-sidebar);
  color: var(--gp-sidebar-text);
  padding: 20px 16px;
}

.sidebar-section {
  margin-bottom: 18px;
}

.sidebar-section-title {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fb0c5;
  margin-bottom: 8px;
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--gp-sidebar-text);
  text-decoration: none;
  font-weight: 600;
  background: transparent;
}

.sidebar-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #cfe3ff;
  font-size: 14px;
}

.sidebar-icon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cfe3ff;
}

.sidebar-link:hover {
  background: rgba(42, 168, 121, 0.18);
  color: #fff;
}

.sidebar-link.active {
  background: var(--gp-sidebar-accent);
  color: #fff;
}

.sidebar-empty {
  color: #9fb0c5;
  font-size: 13px;
}

.app-content {
  padding: 24px;
  background: var(--gp-page);
}

.gp-backbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.gp-back-btn {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-weight: 600;
  border-color: rgba(47, 95, 169, 0.35);
  color: var(--gp-blue-600);
  background: #fff;
}

.gp-back-btn:hover {
  background: rgba(47, 95, 169, 0.08);
  border-color: rgba(47, 95, 169, 0.5);
  color: var(--gp-blue-600);
}

.app-footer {
  height: 40px;
  background: #eef1f4;
  border-top: 1px solid #d6dde6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #6f7f93;
}

.gp-dashboard-grid .card {
  border: 1px solid #d9e2ef;
  border-radius: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  background: #fff;
}

.gp-dashboard-card .card-body {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  min-height: 94px;
}

.gp-dashboard-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(47, 95, 169, 0.18), rgba(42, 168, 121, 0.18));
  display: grid;
  place-items: center;
  color: var(--gp-blue-600);
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(47, 95, 169, 0.15);
}

.gp-dashboard-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gp-blue-600);
}

.gp-dashboard-content {
  flex: 1;
  min-width: 0;
}

.gp-dashboard-title {
  font-weight: 700;
  color: #12233e;
  font-size: 15px;
}

.gp-dashboard-module {
  font-size: 12px;
  color: #607089;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.gp-dashboard-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gp-blue-600);
  background: rgba(47, 95, 169, 0.08);
  font-size: 18px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.gp-dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(13, 28, 51, 0.12);
  border-color: rgba(47, 95, 169, 0.45);
}

.gp-dashboard-card:hover .gp-dashboard-arrow {
  transform: translateX(2px);
  background: rgba(47, 95, 169, 0.18);
}

.gp-auth-card {
  width: min(520px, 92vw);
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--gp-card-shadow);
  padding: 48px 44px 38px;
  text-align: center;
}

.gp-auth-card-lg {
  width: min(560px, 92vw);
  padding: 52px 48px 44px;
}

.gp-auth-logo {
  width: 110px;
  height: 110px;
  margin: 0 auto 18px;
  border-radius: 24px;
  background: #0b1530;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.gp-auth-logo-lg {
  width: 130px;
  height: 130px;
  margin-bottom: 20px;
  border-radius: 28px;
}

.gp-auth-logo img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.gp-auth-logo-lg img {
  width: 96px;
  height: 96px;
}

.gp-auth-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}

.gp-auth-card .form-control {
  border-radius: 10px;
  padding: 12px 14px;
  border-color: #c9d3e1;
}

.gp-auth-card .form-control:focus {
  border-color: var(--gp-blue-500);
  box-shadow: 0 0 0 0.2rem rgba(47, 95, 169, 0.2);
}

.gp-auth-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.gp-auth-btn {
  width: 100%;
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--gp-blue-600);
  border: none;
  color: #fff;
  font-weight: 600;
}

.gp-auth-links {
  margin-top: 14px;
  font-size: 0.9rem;
}

.gp-auth-links a {
  color: var(--gp-blue-600);
  text-decoration: none;
  font-weight: 600;
}

.gp-auth-links a:hover {
  text-decoration: underline;
}

.gp-auth-body .navbar,
.gp-auth-body footer {
  display: none;
}

.gp-auth-body .border-top {
  border-top: none;
}

/* auth pages render without the main shell */

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(47, 95, 169, 0.3);
}
