
    :root {
      --navy: #0b1c30;
      --navy-deep: #071324;
      --ink: #20303f;
      --ink-2: #566476;
      --ink-3: #7d8b9e;
      --line: #e6ecf7;
      --line-2: #d5e0f2;
      --brand: #0051d5;
      --brand-2: #0a5ae8;
      --brand-dark: #00409f;
      --brand-tint: #eef4ff;
      --mint: #0e8a64;
      --mint-tint: #e7f7f0;
      --danger: #b91c1c;
      --danger-tint: #fef2f2;
      --sh-1: 0 1px 2px rgba(11,28,48,.04), 0 2px 8px -4px rgba(11,28,48,.08);
      --sh-2: 0 10px 26px -14px rgba(11,28,48,.18), 0 26px 50px -34px rgba(11,28,48,.34);
      --sh-3: 0 40px 90px -46px rgba(9,20,38,.45);
      --ease: cubic-bezier(.22,.7,.28,1);
    }
    * { box-sizing: border-box; }
    html, body { margin: 0; padding: 0; }
    body {
      font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      color: var(--ink);
      background:
        radial-gradient(1200px 600px at 10% -10%, rgba(10,90,232,.12), transparent 60%),
        radial-gradient(900px 500px at 110% 10%, rgba(14,138,100,.08), transparent 55%),
        linear-gradient(180deg, #f6f9ff 0%, #eef4ff 100%);
      min-height: 100vh;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }
    .page {
      min-height: 100vh;
      display: grid;
      grid-template-columns: 1fr;
    }
    @media (min-width: 960px) {
      .page { grid-template-columns: 1.05fr 1fr; }
    }

    /* --- Left side: brand panel --- */
    .brand-panel {
      display: none;
      position: relative;
      padding: 48px;
      color: #fff;
      background:
        radial-gradient(600px 400px at 20% 10%, rgba(90,148,255,.25), transparent 60%),
        radial-gradient(500px 400px at 80% 90%, rgba(14,138,100,.25), transparent 60%),
        linear-gradient(160deg, #0b1c30 0%, #0a2553 55%, #081a3c 100%);
      overflow: hidden;
    }
    @media (min-width: 960px) { .brand-panel { display: flex; flex-direction: column; justify-content: space-between; } }

    .brand-panel::before {
      content: "";
      position: absolute; inset: 0;
      background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
      background-size: 36px 36px;
      mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
      -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
      pointer-events: none;
    }
    .brand-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
    .brand-logo {
      width: 44px; height: 44px; border-radius: 12px;
      background: #ffffff;
      display: grid; place-items: center; color: #0b1c30; font-weight: 800;
      box-shadow: 0 4px 16px -6px rgba(15,23,42,.25);
      overflow: hidden;
      flex-shrink: 0;
    }
    .brand-name { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
    .brand-hero { position: relative; z-index: 1; }
    .brand-hero h1 {
      font-size: 38px; line-height: 1.15; letter-spacing: -0.02em;
      font-weight: 700; margin: 0 0 16px;
    }
    .brand-hero p {
      font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.75);
      max-width: 46ch; margin: 0 0 28px;
    }
    .bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 44ch; }
    .bullets li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: rgba(255,255,255,.85); }
    .bullet-check {
      flex: none; width: 22px; height: 22px; border-radius: 50%;
      background: rgba(14,138,100,.25); color: #7fe4b7;
      display: grid; place-items: center; margin-top: 1px;
    }
    .brand-foot { position: relative; z-index: 1; font-size: 13px; color: rgba(255,255,255,.6); }
    .brand-foot a { color: rgba(255,255,255,.85); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.2); }
    .brand-foot a:hover { color: #fff; border-color: #fff; }

    /* --- Right side: form panel --- */
    .form-panel {
      display: flex; flex-direction: column;
      padding: 28px 22px;
    }
    @media (min-width: 640px) { .form-panel { padding: 36px; } }
    .form-top {
      display: flex; align-items: center; justify-content: space-between;
      margin-bottom: 28px;
    }
    .form-top .mobile-brand { display: flex; align-items: center; gap: 10px; }
    .form-top .mobile-brand .brand-logo { width: 36px; height: 36px; border-radius: 10px; background:#fff; overflow:hidden; box-shadow:0 2px 8px -2px rgba(15,23,42,.18); }
    .form-top .mobile-brand .brand-name { font-size: 16px; color: var(--navy); font-weight: 700; }
    @media (min-width: 960px) { .form-top .mobile-brand { display: none; } }
    .back-link {
      font-size: 13.5px; color: var(--ink-2); text-decoration: none; font-weight: 500;
      display: inline-flex; align-items: center; gap: 6px;
    }
    .back-link:hover { color: var(--brand-2); }

    .form-wrap {
      width: 100%; max-width: 440px; margin: 0 auto; flex: 1;
      display: flex; flex-direction: column; justify-content: center;
    }
    .form-head h2 {
      font-size: 28px; font-weight: 700; letter-spacing: -0.02em;
      color: var(--navy); margin: 0 0 8px;
    }
    .form-head p { font-size: 14.5px; color: var(--ink-2); margin: 0 0 24px; line-height: 1.5; }

    /* Tabs */
    .tabs {
      display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
      padding: 4px; background: #eef2fb; border-radius: 12px;
      margin-bottom: 24px;
    }
    .tab-btn {
      border: 0; background: transparent; cursor: pointer;
      padding: 10px 14px; border-radius: 9px;
      font: inherit; font-size: 14px; font-weight: 600;
      color: var(--ink-2);
      transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
    }
    .tab-btn.is-active {
      background: #fff; color: var(--navy);
      box-shadow: var(--sh-1);
    }
    .tab-panel { display: none; }
    .tab-panel.is-active { display: block; animation: fadeIn .3s var(--ease); }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

    /* Form fields */
    .field-group { margin-bottom: 16px; }
    .field-label {
      display: block; font-size: 13px; font-weight: 600;
      color: var(--ink); margin-bottom: 6px;
    }
    .field-label .req { color: var(--danger); }
    .field {
      width: 100%; padding: 12px 14px;
      font: inherit; font-size: 14.5px; color: var(--ink);
      background: #fff;
      border: 1px solid var(--line-2);
      border-radius: 10px;
      outline: none;
      transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
    }
    .field::placeholder { color: var(--ink-3); }
    .field:focus {
      border-color: var(--brand-2);
      box-shadow: 0 0 0 4px rgba(10,90,232,.12);
    }
    .field.is-error { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(185,28,28,.08); }
    .field-error { font-size: 12.5px; color: var(--danger); margin-top: 6px; display: none; }
    .field-error.is-visible { display: block; }

    .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    @media (max-width: 420px) { .field-row { grid-template-columns: 1fr; } }

    .field-help {
      display: flex; align-items: center; justify-content: space-between;
      margin: -4px 0 18px;
    }
    .checkbox-row { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
    .checkbox-row input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--brand-2); flex: none; }
    .checkbox-row a { color: var(--brand-2); text-decoration: none; font-weight: 500; }
    .checkbox-row a:hover { text-decoration: underline; }
    .forgot { font-size: 13px; color: var(--brand-2); text-decoration: none; font-weight: 500; }
    .forgot:hover { text-decoration: underline; }

    .btn-primary {
      width: 100%; border: 0; cursor: pointer;
      padding: 13px 18px; border-radius: 12px;
      background: linear-gradient(180deg, var(--brand-2), var(--brand));
      color: #fff; font: inherit; font-size: 15px; font-weight: 600;
      box-shadow: 0 8px 22px -10px rgba(10,90,232,.75), inset 0 1px 0 rgba(255,255,255,.18);
      transition: transform .15s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
      display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    }
    .btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(10,90,232,.8); }
    .btn-primary:active { transform: translateY(0); }

    .divider {
      display: flex; align-items: center; gap: 12px;
      margin: 20px 0; color: var(--ink-3); font-size: 12.5px;
    }
    .divider::before, .divider::after {
      content: ""; flex: 1; height: 1px; background: var(--line);
    }

    .notice {
      font-size: 13px; color: var(--ink-2); text-align: center; margin-top: 4px; line-height: 1.5;
    }
    .notice a { color: var(--brand-2); font-weight: 600; text-decoration: none; }
    .notice a:hover { text-decoration: underline; }

    .alert {
      padding: 12px 14px; border-radius: 10px; font-size: 13.5px; margin-bottom: 16px;
      display: none; align-items: flex-start; gap: 10px;
    }
    .alert.is-visible { display: flex; }
    .alert--error { background: var(--danger-tint); color: var(--danger); border: 1px solid #fecaca; }
    .alert--success { background: var(--mint-tint); color: #065f46; border: 1px solid #bbf7d0; }
    .alert svg { flex: none; margin-top: 1px; }

    .legal-foot {
      margin-top: 24px; font-size: 12px; color: var(--ink-3); text-align: center; line-height: 1.5;
    }
    .legal-foot a { color: var(--ink-2); text-decoration: none; }
    .legal-foot a:hover { color: var(--brand-2); text-decoration: underline; }

    /* Password toggle */
    .password-wrap { position: relative; }
    .toggle-pw {
      position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
      border: 0; background: transparent; cursor: pointer;
      width: 32px; height: 32px; border-radius: 8px;
      color: var(--ink-3); display: grid; place-items: center;
    }
    .toggle-pw:hover { background: var(--brand-tint); color: var(--brand-2); }

    /* Success state (after form submit for demo) */
    .success-card {
      text-align: center; padding: 28px 10px;
      animation: fadeIn .4s var(--ease);
    }
    .success-icon {
      width: 64px; height: 64px; border-radius: 50%;
      background: var(--mint-tint); color: var(--mint);
      display: grid; place-items: center; margin: 0 auto 16px;
    }
    .success-card h3 { font-size: 22px; color: var(--navy); margin: 0 0 8px; letter-spacing: -0.01em; }
    .success-card p { color: var(--ink-2); font-size: 14px; line-height: 1.6; margin: 0 0 18px; }

    /* Testing banner */
    .test-banner {
      background: #fff7ed; color: #9a3412;
      border: 1px solid #fed7aa;
      font-size: 12.5px; padding: 8px 14px; border-radius: 10px;
      text-align: center; margin-bottom: 18px; font-weight: 500;
    }
  
    .brand-logo-img { display:block; width:100%; height:100%; object-fit:contain; padding:4px; box-sizing:border-box; }
