:root {
  --portal-bg-dark: #0f172a;
  --portal-bg-mid: #1d2a44;
  --portal-bg-light: #253651;
  --portal-surface: #ffffff;
  --portal-border: #d0d6e6;
  --portal-accent: #2563eb;
}

body.portal-body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.18) 0%, rgba(15, 23, 42, 0) 45%),
              radial-gradient(circle at 80% 0%, rgba(14, 165, 233, 0.17) 0%, rgba(14, 165, 233, 0) 35%),
              linear-gradient(135deg, var(--portal-bg-dark) 0%, var(--portal-bg-mid) 45%, var(--portal-bg-light) 100%);
  /* background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%); */
  color: #0f172a;
}

main {
  position: relative;
  background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
}

main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(220, 20, 60, 0.1) 0%, rgba(139, 0, 0, 0.1) 100%);
  /* background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%); */
  /* background: linear-gradient(45deg, rgba(220, 20, 60, 0.1) 0%, rgba(139, 0, 0, 0.1) 100%); */
  pointer-events: none;
}

.portal-navbar {
  /* background: rgba(0, 0, 0, 0.92); */
  background: #0d0d0df2;
  backdrop-filter: blur(10px);
}

.portal-navbar .navbar-brand {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.portal-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.25);
  color: var(--portal-accent);
  font-size: 0.92rem;
}

.portal-section {
  max-width: 1020px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.portal-panel {
  position: relative;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.97) 0%, rgba(241, 246, 255, 0.93) 55%, rgba(226, 232, 249, 0.9) 100%);
  border-radius: 1.3rem;
  padding: 2.75rem 2.5rem;
  box-shadow: 0 30px 70px -35px rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(209, 213, 219, 0.6);
  color: #0f172a;
  overflow: hidden;
}

.portal-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 10%, rgba(37, 99, 235, 0.12), transparent 55%),
              radial-gradient(circle at 10% 100%, rgba(14, 165, 233, 0.1), transparent 45%);
  pointer-events: none;
  opacity: 0.9;
}

.portal-panel > * {
  position: relative;
  z-index: 2;
}

.portal-panel-header {
  margin-bottom: 2.25rem;
}

.portal-heading {
  font-size: 2rem;
  font-weight: 600;
  color: #172554;
}

.portal-subheading {
  color: #475467;
  font-size: 0.95rem;
}

.portal-card-surface {
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 1rem;
  background: rgba(248, 250, 255, 0.95);
  box-shadow: 0 20px 45px -30px rgba(15, 23, 42, 0.45);
}

.portal-card-surface .card-header {
  background: rgba(226, 232, 240, 0.45);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1e3a8a;
}

.portal-card-surface .card-body {
  color: #111827;
}

.portal-status-badge {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

.portal-auth-wrapper {
  min-height: calc(100vh - 6rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.portal-login-card {
  color: white;
  width: 100%;
  max-width: 420px;
  border-radius: 1.25rem;
  border: none;
  box-shadow: 0 35px 70px -30px rgba(15, 23, 42, 0.55);
  /* background: linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 245, 255, 0.96) 100%); */
  background: linear-gradient(160deg, rgb(0 0 0 / 98%) 0%, rgb(55 6 6 / 96%) 100%);
}

.portal-login-card .form-control {
  border-radius: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 0.8rem 1rem;
}

.portal-login-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.18);
  color: var(--portal-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.45rem;
  margin: 0 auto;
}

.portal-footer {
  /* background: rgba(0, 0, 0, 0.9); */
  background: #0d0d0df2;
  color: rgba(226, 232, 240, 0.82);
  font-size: 0.85rem;
}

.table thead th {
  color: #344054;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.table tbody td {
  vertical-align: middle;
  color: #111827;
}

.badge-status-success {
  background: rgba(34, 197, 94, 0.18);
  color: #15803d;
}

.badge-status-warning {
  background: rgba(250, 204, 21, 0.2);
  color: #a16207;
}

.badge-status-danger {
  background: rgba(239, 68, 68, 0.18);
  color: #b91c1c;
}

.portal-empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border-radius: 1.25rem;
  background: rgba(248, 250, 255, 0.7);
  border: 1px dashed rgba(37, 99, 235, 0.35);
  color: #475467;
}

.portal-empty-state i {
  font-size: 2.75rem;
  display: block;
  color: var(--portal-accent);
  margin-bottom: 1.25rem;
}

@media (max-width: 992px) {
  .portal-panel {
    padding: 2.25rem 1.8rem;
  }
}

@media (max-width: 576px) {
  .portal-panel {
    padding: 1.75rem 1.35rem;
    border-radius: 1rem;
  }

  .portal-section {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .portal-auth-wrapper {
    padding: 2.5rem 1rem;
  }
}
