  :root {
    --blue-700: #1e40af;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --blue-50: #eff6ff;
    --ink-900: #0a0a0f;
    --ink-800: #18181b;
    --ink-700: #27272a;
    --ink-500: #71717a;
    --ink-400: #a1a1aa;
    --ink-300: #d4d4d8;
    --ink-200: #e4e4e7;
    --ink-100: #f4f4f5;
    --ink-50: #fafafa;
    --green-500: #10b981;
    --green-50: #ecfdf5;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08), 0 4px 8px rgba(15, 23, 42, 0.04);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
  }

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

  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink-800);
    background: var(--ink-50);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  body>section:only-of-type,
  body>main:only-of-type {
    flex: 1 0 auto;
    min-height: calc(100vh - 65px);
  }

  body>footer {
    margin-top: auto;
  }

  a {
    color: var(--blue-600);
    text-decoration: none;
  }

  a:hover {
    text-decoration: underline;
  }

  .container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 40px;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
  }

  .btn-primary {
    background: var(--blue-600);
    color: #fff;
  }

  .btn-primary:hover {
    background: var(--blue-700);
    text-decoration: none;
  }

  .btn-block {
    width: 100%;
  }

  .btn-secondary {
    background: #fff;
    color: var(--ink-800);
    border-color: var(--ink-200);
  }

  .btn-secondary:hover {
    background: var(--ink-50);
    border-color: var(--ink-300);
    text-decoration: none;
  }

  .btn-sm {
    padding: 8px 14px;
    font-size: 14px;
  }

  /* -- BES trust strip (below nav, matches homepage.php) -- */
  .bes-strip {
    background: #0F2338;
    text-align: center;
    padding: 7px 16px;
    font-size: 11.5px;
    color: #93A2B5;
    letter-spacing: .02em;
    font-family: "Public Sans", -apple-system, "Segoe UI", sans-serif;
  }

  /* -- BES brand text next to emblem (matches bes-header.php) -- */
  .bes-brand-txt {
    text-align: center;
  }

  .bes-nm {
    font-family: "Merriweather", Georgia, serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: .1em;
    line-height: 1.15;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, .55);
    padding-bottom: 6px;
    color: #fff;
  }

  .bes-sb {
    font-family: "Public Sans", sans-serif;
    font-size: 11.5px;
    letter-spacing: .34em;
    color: #C7D3E2;
    display: block;
    margin-top: 6px;
    font-weight: 600;
    padding-left: .34em;
  }



  .nav {
    background: #24405F;
  }

  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 40px;
    max-width: 1398px;
    margin: 0 auto;
  }

  .logo {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 13px;

  }

  .logo:hover,
  .logo:hover * {
    text-decoration: none !important;
  }

  .nav .logo img {
    height: 105px;
    width: 105px;
    display: block;

  }

  .nav-meta {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
  }

  .nav-meta a {
    color: #fff;
    font-weight: 500;
    margin-left: 10px;
  }

  .auth-shell {
    flex: 1 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 56px 24px 48px;
  }

  .auth-card {
    width: 90%;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
  }

  .auth-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--blue-50);
    color: var(--blue-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
  }

  .auth-icon-success {
    background: var(--green-50);
    color: #047857;
  }

  .auth-title {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--ink-900);
    line-height: 1.2;
    margin-bottom: 8px;
  }

  .auth-sub {
    color: var(--ink-500);
    font-size: 14px;
    margin-bottom: 28px;
  }

  .auth-sub strong {
    color: var(--ink-900);
    font-weight: 600;
  }

  .form-row {
    margin-bottom: 16px;
  }

  .form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-700);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
  }

  .form-input {
    width: 100%;
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    color: var(--ink-900);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
  }

  .form-input:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  }

  .auth-divider {
    margin: 24px 0;
    border-top: 1px solid var(--ink-200);
  }

  .auth-switch {
    text-align: center;
    color: var(--ink-500);
    font-size: 14px;
  }

  .auth-switch a {
    font-weight: 600;
  }

  .footer {
    background: #1a202c;
    color: var(--ink-400);
    padding: 64px 0 32px;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 48px;
    max-width: 1300px;
    margin: 0 auto 48px;
  }

  .footer-brand p {
    margin-top: 16px;
    font-size: 14px;
    color: var(--ink-400);
    max-width: 280px;
    line-height: 1.55;
  }

  .footer-col h4 {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
  }

  .footer-col ul {
    list-style: none;
  }

  .footer-col li {
    margin-bottom: 10px;
  }

  .footer-col a {
    color: var(--ink-400);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.15s;
  }

  .footer-col a:hover {
    color: #fff;
  }

  .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--ink-500);
    max-width: 1300px;
    margin: 0 auto;
  }

  .footer .logo img {
    height: 24px;
    filter: brightness(0) invert(1) opacity(0.92);
  }

  @media (max-width: 760px) {
    .footer-grid {
      grid-template-columns: 1fr 1fr;
    }
  }

  @media (max-width: 640px) {
    .container {
      padding: 0 16px;
    }

    .nav-inner {
      padding: 12px 16px;
      gap: 10px;
    }

    .nav .logo img {
      height: 105px;
    }

    .auth-shell {
      padding: 28px 0;
    }

    .auth-card {
      padding: 24px 18px;
    }

    .auth-title {
      font-size: 22px;
    }

    .footer-bottom {
      flex-direction: column;
      align-items: flex-start;
    }
  }
/* bes-strip responsive text */
.bes-strip .strip-short { display: none; }
@media (max-width: 640px) {
  .bes-strip .strip-full  { display: none; }
  .bes-strip .strip-short { display: inline; }
}