  :root {
    --brand:       #0e4f8b;
    --brand-dark:  #0a3a67;
    --brand-light: #e8f0fa;
    --accent:      #e85d26;
    --text:        #1a1a1a;
    --muted:       #6b7280;
    --border:      #e2e8f0;
    --white:       #ffffff;
    --bg:          #f4f7fc;
    --radius:      12px;
    --shadow:      0 4px 32px rgba(14,79,139,0.10);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  /* ── SPLIT LAYOUT ── */
  .portal-wrap {
    display: flex;
    min-height: 100vh;
  }

  /* LEFT PANEL */
  .portal-left {
    flex: 1;
    background: var(--brand);
    background-image:
      radial-gradient(circle at 20% 20%, rgba(255,255,255,0.07) 0%, transparent 50%),
      radial-gradient(circle at 80% 80%, rgba(232,93,38,0.15) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 56px 52px;
    color: white;
    position: relative;
    overflow: hidden;
  }

  .portal-left::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
  }

  .portal-left::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 240px; height: 240px;
    border-radius: 50%;
    background: rgba(232,93,38,0.10);
  }

  .portal-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
  }

  .portal-brand img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
  }

  .portal-brand-name {
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    font-weight: 400;
    color: white;
    letter-spacing: -0.3px;
  }

  .portal-hero {
    position: relative;
    z-index: 1;
  }

  .portal-hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 400;
    line-height: 1.2;
    color: white;
    margin-bottom: 16px;
  }

  .portal-hero h1 em {
    font-style: italic;
    color: rgba(255,255,255,0.65);
  }

  .portal-hero p {
    font-size: 15px;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    max-width: 380px;
    font-weight: 300;
  }

  .feature-list {
    list-style: none;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.80);
  }

  .feature-list li .fi {
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
  }

  .portal-left-footer {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    position: relative;
    z-index: 1;
  }

  /* RIGHT PANEL */
  .portal-right {
    width: 480px;
    flex-shrink: 0;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 48px;
  }

  .login-heading {
    margin-bottom: 32px;
  }

  .login-heading h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 6px;
  }

  .login-heading p {
    font-size: 14px;
    color: var(--muted);
  }

  /* FORM ELEMENTS */
  .form-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
  }

  .form-control {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 11px 14px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: var(--white);
    transition: border-color .2s, box-shadow .2s;
  }

  .form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(14,79,139,0.10);
    outline: none;
  }

  .form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: none;
  }

  .input-group .form-control {
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
  }

  .input-group-text {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-left: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    color: var(--muted);
    transition: color .2s;
  }

  .input-group-text:hover { color: var(--brand); }

  .input-group:focus-within .form-control,
  .input-group:focus-within .input-group-text {
    border-color: var(--brand);
  }

  .input-group:focus-within .input-group-text {
    box-shadow: 0 0 0 3px rgba(14,79,139,0.10);
  }

  /* SUBMIT BUTTON */
  .btn-portal {
    background: var(--brand);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 13px 24px;
    font-size: 15px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    width: 100%;
    cursor: pointer;
    transition: background .2s, transform .1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .btn-portal:hover  { background: var(--brand-dark); }
  .btn-portal:active { transform: scale(0.99); }

  .btn-portal .spinner-border {
    width: 16px;
    height: 16px;
    border-width: 2px;
    display: none;
  }

  .btn-portal.loading .btn-text   { display: none; }
  .btn-portal.loading .spinner-border { display: inline-block; }

  /* LINKS */
  .portal-link {
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
  }

  .portal-link:hover {
    color: var(--accent);
    text-decoration: underline;
  }

  /* ALERT */
  .alert-portal {
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 13px;
    display: none;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
  }

  .alert-portal.show { display: flex; }
  .alert-portal.error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
  .alert-portal.success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

  /* DIVIDER */
  .divider-text {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    margin: 20px 0;
    position: relative;
  }

  .divider-text::before,
  .divider-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 30px);
    height: 1px;
    background: var(--border);
  }

  .divider-text::before { left: 0; }
  .divider-text::after  { right: 0; }

  /* GUEST ACCESS */
  .guest-box {
    background: var(--brand-light);
    border: 1px solid rgba(14,79,139,0.15);
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .guest-box-text { font-size: 13px; color: var(--brand); }
  .guest-box-text strong { display: block; font-weight: 600; font-size: 14px; }

  .btn-guest {
    background: white;
    border: 1.5px solid var(--brand);
    color: var(--brand);
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
  }

  .btn-guest:hover {
    background: var(--brand);
    color: white;
  }

  /* MOBILE */
  @media (max-width: 768px) {
    .portal-left  { display: none; }
    .portal-right { width: 100%; padding: 40px 28px; }
  }

  /* ANIMATIONS */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .portal-right > * {
    animation: fadeUp .45s ease both;
  }

.portal-right > *:nth-child(1) { animation-delay: .05s; }
.portal-right > *:nth-child(2) { animation-delay: .10s; }
.portal-right > *:nth-child(3) { animation-delay: .15s; }
.portal-right > *:nth-child(4) { animation-delay: .20s; }
.portal-right > *:nth-child(5) { animation-delay: .25s; }