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

    :root {
      /* Brand palette sampled from the supplied NGO mark */
      --navy:     #2f465d;
      --navy-d:   #20364b;
      --navy-l:   #edf3f7;
      --orange:   #f4510b;
      --orange-l: #fff1ea;
      --green:    #39a844;
      --green-l:  #edf8ef;
      --cyan:     #08a9e6;
      --cyan-l:   #eaf8fe;

      /* Existing component aliases preserve the page structure */
      --maroon:   var(--navy);
      --maroon-d: var(--navy-d);
      --maroon-l: var(--navy-l);
      --gold:     var(--orange);
      --border:   #dbe5ec;
      --bg:       #f4f8fa;
      --white:    #ffffff;
      --text:     #263746;
      --muted:    #6b7c89;
    }

    html, body { height: 100%; }
    body {
      font-family: 'Poppins', sans-serif;
      background: var(--bg);
      min-height: 100vh;
      display: flex;
      overflow: hidden;
    }

    /* ─── LEFT PANEL ─── */
    .left-panel {
      width: 50%;
      height: 100vh;
      background: linear-gradient(145deg, var(--navy-d) 0%, var(--navy) 58%, #365b73 100%);
      position: relative;
      display: flex; flex-direction: column; justify-content: center; align-items: center;
      padding: 48px 40px;
      overflow: hidden;
    }
    .left-panel::before {
      content: ''; position: absolute; inset: 0;
      background:
        radial-gradient(circle at 15% 20%, rgba(244,81,11,.25) 0%, transparent 46%),
        radial-gradient(circle at 85% 80%, rgba(8,169,230,.2) 0%, transparent 48%),
        radial-gradient(circle at 75% 12%, rgba(57,168,68,.13) 0%, transparent 35%);
    }
    .left-panel::after {
      content: ''; position: absolute; inset: 0;
      background-image: radial-gradient(circle, rgba(255,255,255,.12) 1px, transparent 1px);
      background-size: 28px 28px; opacity: .5;
    }
    .deco-circle { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); }
    .dc1 { width: 500px; height: 500px; top: -180px; left: -180px; }
    .dc2 { width: 340px; height: 340px; bottom: -120px; right: -100px; }
    .dc3 { width: 180px; height: 180px; top: 62%; left: 10%; border-color: rgba(244,81,11,.28); }

    .left-content { position: relative; z-index: 2; text-align: center; }

    .emblem {
      width: 90px; height: 90px;
      background: linear-gradient(145deg, var(--orange) 0 48%, rgba(255,255,255,.16) 49% 100%);
      border: 2px solid rgba(255,255,255,.25); border-radius: 50%;
      display: flex; align-items: center; justify-content: center; margin: 0 auto 24px;
    }
    .emblem i { font-size: 40px; color: #fff; }

    .left-content h1 { font-size: 28px; font-weight: 800; color: #fff; line-height: 1.25; margin-bottom: 6px; }
    .left-content .tagline { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.7); margin-bottom: 20px; }
    .gold-divider { width: 90px; height: 3px; background: linear-gradient(90deg, var(--green), var(--cyan), var(--orange)); margin: 0 auto 22px; border-radius: 2px; }
    .left-content p.desc { font-size: 13px; color: rgba(255,255,255,.65); max-width: 340px; line-height: 1.7; margin: 0 auto 30px; }

    .feature-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 440px; margin: 0 auto; }
    .chip {
      background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 30px;
      padding: 6px 14px; font-size: 11.5px; font-weight: 500; color: rgba(255,255,255,.85);
      display: flex; align-items: center; gap: 6px;
    }
    .chip i { color: var(--orange); font-size: 12px; }
    .chip:nth-child(3n + 2) i { color: #65d9ff; }
    .chip:nth-child(3n) i { color: #72d47b; }

    .info-strip {
      position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; padding: 14px 28px;
      background: rgba(0,0,0,.2); display: flex; align-items: center; justify-content: center; gap: 8px;
    }
    .info-strip i { color: var(--orange); font-size: 13px; }
    .info-strip span { font-size: 11.5px; color: rgba(255,255,255,.75); }

    /* ─── RIGHT PANEL ─── */
    .right-panel {
      width: 50%; height: 100vh; background: var(--white);
      display: flex; flex-direction: column; justify-content: center; align-items: center;
      padding: 48px 40px; position: relative; overflow-y: auto;
    }
    .top-badge {
      position: absolute; top: 22px; right: 22px; background: var(--maroon-l);
      border: 1px solid rgba(47,70,93,.16); border-radius: 20px; padding: 5px 14px;
      font-size: 11px; font-weight: 600; color: var(--maroon); display: flex; align-items: center; gap: 6px;
    }
    .top-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--maroon); animation: pulse 1.8s infinite; }
    @keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

    .login-box { width: 100%; max-width: 400px; }
    .welcome { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
    .login-box h2 { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
    .sub { font-size: 12.5px; color: var(--muted); margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
    .sub span { color: var(--maroon); font-weight: 600; }

    .form-group { margin-bottom: 18px; }
    .form-label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; letter-spacing: .02em; }
    .input-wrap { position: relative; }
    .in-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 15px; pointer-events: none; transition: color .2s; }
    .input-wrap:focus-within .in-icon { color: var(--maroon); }
    .form-input {
      width: 100%; padding: 11px 42px; border: 1.5px solid var(--border); border-radius: 10px;
      font-family: inherit; font-size: 13.5px; color: var(--text); background: var(--bg); outline: none;
      transition: border-color .2s, background .2s, box-shadow .2s;
    }
    .form-input::placeholder { color: #b0aab0; }
    .form-input:focus { border-color: var(--navy); background: var(--white); box-shadow: 0 0 0 3px rgba(47,70,93,.1); }
    .toggle-pw {
      position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
      color: var(--muted); font-size: 15px; cursor: pointer; background: none; border: none; padding: 0;
    }
    .toggle-pw:hover { color: var(--maroon); }

    .form-row-extra { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
    .remember-wrap { display: flex; align-items: center; gap: 7px; cursor: pointer; font-size: 12px; color: var(--muted); font-weight: 500; user-select: none; }
    .remember-wrap input { accent-color: var(--maroon); width: 15px; height: 15px; cursor: pointer; }
    .forgot-link { font-size: 12px; color: var(--maroon); font-weight: 600; text-decoration: none; }
    .forgot-link:hover { text-decoration: underline; }

    .btn-login {
      width: 100%; padding: 12px; background: var(--maroon); color: #fff; border: none; border-radius: 10px;
      font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
      display: flex; align-items: center; justify-content: center; gap: 8px;
      transition: background .2s, transform .15s, box-shadow .2s;
      box-shadow: 0 4px 14px rgba(47,70,93,.25);
    }
    .btn-login:hover { background: var(--navy-d); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(47,70,93,.3); }
    .btn-login:disabled { opacity: .8; cursor: wait; transform: none; }
    .spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
    .btn-login.loading .spinner { display: block; }
    .btn-login.loading .btn-text { display: none; }
    @keyframes spin { to { transform: rotate(360deg); } }

    .or-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
    .or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
    .or-divider span { font-size: 11px; color: var(--muted); font-weight: 500; }

    .btn-otp {
      width: 100%; padding: 11px; background: none; color: var(--maroon); border: 1.5px solid var(--maroon);
      border-radius: 10px; font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
      display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .18s;
    }
    .btn-otp:hover { background: var(--maroon-l); }

.security-strip { margin-top: 26px; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 11px; }
    .security-strip i { color: var(--green); font-size: 13px; }
    .right-footer { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--muted); }

    /* ─── RESPONSIVE ─── */
    @media (max-width: 860px) {
      body { flex-direction: column; overflow: auto; }
      .left-panel { width: 100%; height: auto; padding: 32px 24px; }
      .info-strip, .feature-chips, .left-content p.desc, .dc3 { display: none; }
      .left-content h1 { font-size: 20px; }
      .left-content .tagline { font-size: 12.5px; margin-bottom: 0; }
      .gold-divider { display: none; }
      .emblem { width: 68px; height: 68px; margin-bottom: 16px; }
      .emblem i { font-size: 30px; }
      .right-panel { width: 100%; height: auto; min-height: 60vh; padding: 36px 24px 60px; overflow: visible; }
      .top-badge { top: 14px; right: 14px; }
      .login-box h2 { font-size: 22px; }
    }
    @media (max-width: 480px) {
      .right-panel { padding: 28px 18px 56px; }
      .login-box h2 { font-size: 20px; }
    }

    button.forgot-link { background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; }


    [hidden] { display: none !important; }
    .auth-hint { font-size: 11.5px; color: var(--muted); margin-top: 8px; }
    .back-to-login { margin-top: 16px; text-decoration: none; }
    .resend-code { margin-top: 12px; }
    .btn-login:disabled, .btn-otp:disabled, .forgot-link:disabled { opacity: .6; cursor: wait; }
    .forgot-link:focus-visible, .btn-otp:focus-visible, .toggle-pw:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
    @media (min-width: 861px) and (max-height: 800px) { .right-panel { justify-content: flex-start; padding-top: 70px; padding-bottom: 70px; } .right-footer { position: static; margin-top: 30px; } }
