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

    :root {
      --c1: #343a40;
      --c2: #6c757d;
      --c3: #adb5bd;
      --c4: #e9ecef;
      --c5: #f8f9fa;
      --white: #ffffff;
      --green: #27ae60;
      --red: #e05c5c;
    }

    html, body {
      height: 100%;
      font-family: 'DM Sans', sans-serif;
      background: var(--c5);
      color: var(--c1);
      overflow: hidden;
    }

    /* ── LAYOUT ── */
    .page {
      display: grid;
      grid-template-columns: 1.1fr 1fr;
      height: 100vh;
    }

    /* ══════════════════════════════
       LEFT PANEL
    ══════════════════════════════ */
    .left {
      position: relative;
      background: var(--c1);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 52px 56px;
      overflow: hidden;
    }

    /* Dot-grid texture */
    .left-texture {
      position: absolute;
      inset: 0;
      background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px);
      background-size: 28px 28px;
      pointer-events: none;
    }

    /* Large faint paw watermark */
    .paw-watermark {
      position: absolute;
      bottom: -40px;
      right: -40px;
      font-size: 340px;
      color: rgba(255,255,255,.03);
      line-height: 1;
      pointer-events: none;
      user-select: none;
    }

    /* Accent line top */
    .left::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 3px;
      background: linear-gradient(90deg, transparent, rgba(173,181,189,.4), transparent);
    }

    /* ── Brand ── */
    .left-brand {
      display: flex;
      align-items: center;
      gap: 12px;
      position: relative;
      z-index: 2;
      animation: fadeUp .55s ease both;
    }

    .brand-logo {
      width: 42px; height: 42px;
      background: rgba(255,255,255,.1);
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 12px;
      display: flex; align-items: center; justify-content: center;
      color: var(--c3);
      font-size: 18px;
      flex-shrink: 0;
    }

    .brand-text-wrap {}
    .brand-short {
      font-size: 13px;
      font-weight: 700;
      color: #fff;
      letter-spacing: .8px;
      line-height: 1.1;
    }
    .brand-long {
      font-size: 9.5px;
      color: rgba(255,255,255,.35);
      letter-spacing: .3px;
      line-height: 1.3;
      margin-top: 1px;
      max-width: 200px;
    }

    /* ── Middle body ── */
    .left-body {
      position: relative;
      z-index: 2;
      animation: fadeUp .55s .12s ease both;
    }

    .left-tag {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: rgba(255,255,255,.07);
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 20px;
      padding: 4px 12px 4px 8px;
      font-size: 11px;
      color: var(--c3);
      letter-spacing: .4px;
      margin-bottom: 22px;
    }

    .left-tag i { font-size: 10px; }

    .left-headline {
      font-family: 'DM Serif Display', serif;
      font-size: 38px;
      line-height: 1.12;
      color: #fff;
      margin-bottom: 18px;
    }

    .left-headline em {
      font-style: italic;
      color: var(--c3);
    }

    .left-desc {
      font-size: 13.5px;
      line-height: 1.75;
      color: rgba(255,255,255,.42);
      max-width: 360px;
    }

    /* ── Feature pills ── */
    .feature-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-top: 32px;
    }

    .feature-item {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .feature-icon {
      width: 32px; height: 32px;
      border-radius: 8px;
      background: rgba(255,255,255,.07);
      border: 1px solid rgba(255,255,255,.1);
      display: flex; align-items: center; justify-content: center;
      font-size: 13px;
      color: var(--c3);
      flex-shrink: 0;
    }

    .feature-text {
      font-size: 12.5px;
      color: rgba(255,255,255,.55);
    }

    .feature-text strong {
      color: rgba(255,255,255,.8);
      font-weight: 600;
    }

    /* ── Footer ── */
    .left-footer {
      position: relative;
      z-index: 2;
      animation: fadeUp .55s .24s ease both;
    }

    .divider-footer {
      height: 1px;
      background: rgba(255,255,255,.08);
      margin-bottom: 18px;
    }

    .footer-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .footer-gov {
      font-size: 11px;
      color: rgba(255,255,255,.3);
      line-height: 1.5;
    }

    .footer-gov strong {
      color: rgba(255,255,255,.5);
      font-weight: 600;
      display: block;
      font-size: 11.5px;
    }

    .footer-version {
      font-size: 10.5px;
      color: rgba(255,255,255,.2);
      letter-spacing: .4px;
    }

    /* ══════════════════════════════
       RIGHT PANEL
    ══════════════════════════════ */
    .right {
      background: var(--white);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 48px 52px;
      position: relative;
      overflow: hidden;
    }

    /* subtle bottom-right circle */
    .right::after {
      content: '';
      position: absolute;
      bottom: -100px; right: -100px;
      width: 300px; height: 300px;
      border-radius: 50%;
      background: var(--c5);
      pointer-events: none;
    }

    /* top accent line matching left */
    .right::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 3px;
      background: linear-gradient(90deg, rgba(173,181,189,.25), transparent);
    }

    .form-wrap {
      width: 100%;
      max-width: 370px;
      position: relative;
      z-index: 1;
    }

    /* Form head */
    .form-head {
      margin-bottom: 32px;
      animation: fadeUp .5s .08s ease both;
    }

    .form-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 1.2px;
      text-transform: uppercase;
      color: var(--c3);
      margin-bottom: 12px;
    }

    .form-eyebrow i { font-size: 10px; }

    .form-title {
      font-family: 'DM Serif Display', serif;
      font-size: 30px;
      color: var(--c1);
      line-height: 1.15;
      margin-bottom: 8px;
    }

    .form-sub {
      font-size: 13px;
      color: var(--c3);
      line-height: 1.6;
    }

    /* System ID badge */
    .system-badge {
      display: flex;
      align-items: center;
      gap: 10px;
      background: var(--c5);
      border: 1px solid var(--c4);
      border-radius: 10px;
      padding: 11px 14px;
      margin-bottom: 28px;
      animation: fadeUp .5s .16s ease both;
    }

    .system-badge-icon {
      width: 30px; height: 30px;
      border-radius: 8px;
      background: var(--c4);
      display: flex; align-items: center; justify-content: center;
      font-size: 13px;
      color: var(--c2);
      flex-shrink: 0;
    }

    .system-badge-text {
      font-size: 11px;
      color: var(--c2);
      line-height: 1.5;
    }

    .system-badge-text strong {
      color: var(--c1);
      font-weight: 600;
      font-size: 12px;
      display: block;
    }

    /* Fields */
    .field-group {
      animation: fadeUp .5s .22s ease both;
    }

    .field { margin-bottom: 16px; }

    .field-label {
      display: block;
      font-size: 12px;
      font-weight: 600;
      color: var(--c1);
      margin-bottom: 6px;
      letter-spacing: .15px;
    }

    .field-inner { position: relative; }

    .field-icon {
      position: absolute;
      left: 13px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 13px;
      color: var(--c3);
      pointer-events: none;
      transition: color .2s;
    }

    .field-inner:focus-within .field-icon { color: var(--c2); }

    .field-inner input {
      width: 100%;
      border: 1.5px solid var(--c4);
      border-radius: 10px;
      padding: 11px 14px 11px 38px;
      font-size: 13.5px;
      font-family: 'DM Sans', sans-serif;
      color: var(--c1);
      background: var(--c5);
      outline: none;
      transition: border-color .2s, background .2s, box-shadow .2s;
      -webkit-appearance: none;
    }

    .field-inner input::placeholder { color: var(--c3); font-size: 13px; }

    .field-inner input:focus {
      border-color: var(--c2);
      background: var(--white);
      box-shadow: 0 0 0 3px rgba(108,117,125,.1);
    }

    .field-inner input.error {
      border-color: var(--red);
      background: rgba(224,92,92,.03);
    }

    .pw-toggle {
      position: absolute;
      right: 12px; top: 50%;
      transform: translateY(-50%);
      background: none; border: none;
      color: var(--c3); font-size: 13px;
      cursor: pointer; padding: 4px;
      transition: color .15s;
    }
    .pw-toggle:hover { color: var(--c2); }

    .field-error {
      display: none;
      align-items: center;
      gap: 5px;
      font-size: 11.5px;
      color: var(--red);
      margin-top: 5px;
    }
    .field-error.show { display: flex; }

    /* Row: password label + forgot */
    .field-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 6px;
    }

    .forgot-link {
      font-size: 12px;
      color: var(--c2);
      text-decoration: none;
      font-weight: 500;
      transition: color .15s;
    }
    .forgot-link:hover { color: var(--c1); text-decoration: underline; }

    /* Remember */
    .remember {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 22px;
      cursor: pointer;
    }

    .remember input[type="checkbox"] {
      appearance: none;
      -webkit-appearance: none;
      width: 16px; height: 16px;
      border: 1.5px solid var(--c4);
      border-radius: 4px;
      background: var(--c5);
      cursor: pointer;
      position: relative;
      flex-shrink: 0;
      transition: background .15s, border-color .15s;
    }
    .remember input[type="checkbox"]:checked {
      background: var(--c1);
      border-color: var(--c1);
    }
    .remember input[type="checkbox"]:checked::after {
      content: '';
      position: absolute;
      left: 4px; top: 1.5px;
      width: 5px; height: 8px;
      border: 2px solid #fff;
      border-top: none; border-left: none;
      transform: rotate(42deg);
    }

    .remember-label {
      font-size: 12.5px;
      color: var(--c2);
      user-select: none;
    }

    /* Submit */
    .btn-submit {
      width: 100%;
      padding: 12px;
      background: var(--c1);
      color: #fff;
      border: none;
      border-radius: 10px;
      font-size: 13.5px;
      font-weight: 600;
      font-family: 'DM Sans', sans-serif;
      cursor: pointer;
      letter-spacing: .3px;
      transition: background .2s, transform .15s, box-shadow .2s;
      margin-bottom: 18px;
      position: relative;
      overflow: hidden;
    }

    .btn-submit::after {
      content: '';
      position: absolute; inset: 0;
      background: linear-gradient(135deg, rgba(255,255,255,.07) 0%, transparent 60%);
      pointer-events: none;
    }

    .btn-submit:hover {
      background: #495057;
      transform: translateY(-1px);
      box-shadow: 0 6px 20px rgba(52,58,64,.18);
    }
    .btn-submit:active { transform: translateY(0); box-shadow: none; }

    .btn-inner {
      display: flex; align-items: center; justify-content: center; gap: 8px;
    }

    .btn-spinner {
      display: none;
      width: 15px; height: 15px;
      border: 2px solid rgba(255,255,255,.3);
      border-top-color: #fff;
      border-radius: 50%;
      animation: spin .7s linear infinite;
    }

    @keyframes spin { to { transform: rotate(360deg); } }

    .btn-submit.loading .btn-text,
    .btn-submit.loading .btn-arrow { display: none; }
    .btn-submit.loading .btn-spinner { display: block; }

    /* Success banner */
    .success-banner {
      display: flex;
      align-items: center;
      gap: 10px;
      background: rgba(39,174,96,.07);
      border: 1px solid rgba(39,174,96,.2);
      border-radius: 10px;
      padding: 11px 15px;
      margin-bottom: 18px;
      font-size: 12.5px;
      color: var(--green);
      animation: fadeUp .3s ease;
    }
    /* Success banner */
    .error-banner {
      display: flex;
      align-items: center;
      gap: 10px;
      background: rgba(170, 11, 5, 0.07);
      border: 1px solid rgba(206, 6, 33, 0.2);
      border-radius: 10px;
      padding: 11px 15px;
      margin-bottom: 18px;
      font-size: 12.5px;
      color: rgb(20, 20, 20);
      animation: fadeUp .3s ease;
    }
   

    /* Footer note */
    .form-note {
      text-align: center;
      font-size: 11.5px;
      color: var(--c3);
      line-height: 1.6;
    }

    .form-note a {
      color: var(--c2);
      text-decoration: none;
      font-weight: 500;
    }
    .form-note a:hover { color: var(--c1); text-decoration: underline; }

    /* ── Animations ── */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(14px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* ── Responsive ── */
    @media (max-width: 860px) {
      html, body { overflow: auto; }
      .page { grid-template-columns: 1fr; height: auto; min-height: 100vh; }
      .left { padding: 36px 28px; min-height: auto; }
      .left-headline { font-size: 30px; }
      .paw-watermark { font-size: 200px; }
      .feature-list { display: none; }
      .right { padding: 40px 28px; }
    }

    @media (max-width: 480px) {
      .left { padding: 28px 20px; }
      .right { padding: 32px 20px; }
    }
