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

    :root {
      --bg:             #f6faf7;
      --surface:        #ffffff;
      --surface-hover:  #eef8f2;
      --border:         #dbeee3;
      --border-strong:  #b8d7c5;
      --text-primary:   #1a1a18;
      --text-secondary: #6b6b66;
      --text-muted:     #a0a09b;
      --accent:         #007040;
      --accent-soft:    #e6f4ed;
      --blue:           #3b82f6;
      --blue-soft:      #eff6ff;
      --green:          #007040;
      --green-soft:     #e6f4ed;
      --red:            #ef4444;
      --red-soft:       #fef2f2;
      --radius:         8px;
      --radius-lg:      12px;
    }

    body {
      font-family: 'DM Sans', sans-serif;
      background: var(--bg);
      color: var(--text-primary);
      font-size: 14px;
      line-height: 1.5;
      min-height: 100vh;
      display: flex;
    }

    /* ── Left Panel ── */
    .login-left {
      width: 420px;
      flex-shrink: 0;
      background: var(--surface);
      border-right: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      padding: 40px;
      min-height: 100vh;
    }

    .login-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 48px;
    }

    .brand-logo-img {
      display: block;
      width: 190px;
      max-width: 100%;
      height: auto;
      object-fit: contain;
    }

    .logo-mark {
      width: 36px;
      height: 36px;
      background: var(--accent);
      border-radius: 9px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-size: 14px;
      font-weight: 600;
      letter-spacing: -0.5px;
      flex-shrink: 0;
    }

    .logo-text { font-weight: 600; font-size: 16px; letter-spacing: -0.3px; }
    .logo-sub  { font-size: 11px; color: var(--text-muted); letter-spacing: 0.4px; text-transform: uppercase; }

    .login-form-wrap {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .login-heading {
      font-size: 22px;
      font-weight: 600;
      letter-spacing: -0.5px;
      margin-bottom: 6px;
    }

    .login-sub {
      font-size: 13px;
      color: var(--text-muted);
      margin-bottom: 32px;
    }

    /* Role selector */
    .role-selector {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 8px;
      margin-bottom: 24px;
    }

    .role-opt {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      padding: 10px 8px;
      border: 1.5px solid var(--border);
      border-radius: var(--radius);
      cursor: pointer;
      transition: border-color 0.15s, background 0.15s;
      background: transparent;
      font-family: 'DM Sans', sans-serif;
    }

    .role-opt:hover { background: var(--surface-hover); }

    .role-opt.active {
      border-color: var(--accent);
      background: var(--accent-soft);
    }

    .role-opt-icon {
      width: 32px;
      height: 32px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      background: var(--accent-soft);
      color: var(--text-secondary);
      transition: background 0.15s, color 0.15s;
    }

    .role-opt.active .role-opt-icon {
      background: var(--accent);
      color: #fff;
    }

    .role-opt-label {
      font-size: 11px;
      font-weight: 500;
      color: var(--text-secondary);
    }

    .role-opt.active .role-opt-label { color: var(--text-primary); }

    /* Form */
    .form-group {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-bottom: 14px;
    }

    .form-label {
      font-size: 12px;
      font-weight: 500;
      color: var(--text-secondary);
    }

    .form-input-wrap {
      position: relative;
    }

    .form-input-wrap i.input-icon {
      position: absolute;
      left: 10px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 16px;
      color: var(--text-muted);
      pointer-events: none;
    }

    .form-input {
      width: 100%;
      height: 40px;
      padding: 0 12px 0 36px;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      font-size: 13px;
      font-family: 'DM Sans', sans-serif;
      color: var(--text-primary);
      background: var(--surface);
      outline: none;
      transition: border-color 0.15s, box-shadow 0.15s;
    }

    .form-input:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(45,45,42,0.06);
    }

    .form-input::placeholder { color: var(--text-muted); }

    .form-input.nim { font-family: 'DM Mono', monospace; letter-spacing: 0.5px; }

    .eye-btn {
      position: absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      cursor: pointer;
      color: var(--text-muted);
      font-size: 16px;
      padding: 2px;
      display: flex;
      align-items: center;
    }

    .eye-btn:hover { color: var(--text-primary); }

    .form-input.has-eye { padding-right: 36px; }

    /* Options row */
    .form-options {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 20px;
    }

    .remember-label {
      display: flex;
      align-items: center;
      gap: 7px;
      font-size: 13px;
      color: var(--text-secondary);
      cursor: pointer;
    }

    .remember-label input { accent-color: var(--accent); }

    .forgot-link {
      font-size: 13px;
      color: var(--text-secondary);
      text-decoration: none;
      transition: color 0.15s;
    }

    .forgot-link:hover { color: var(--text-primary); text-decoration: underline; }

    /* Login button */
    .btn-login {
      width: 100%;
      height: 42px;
      background: var(--accent);
      color: #fff;
      border: none;
      border-radius: var(--radius);
      font-size: 14px;
      font-weight: 500;
      font-family: 'DM Sans', sans-serif;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      transition: background 0.15s, transform 0.1s;
      margin-bottom: 16px;
    }

    .btn-login:hover  { background: #3d3d3a; }
    .btn-login:active { transform: scale(0.99); }

    .btn-login.loading { opacity: 0.7; pointer-events: none; }

    /* Demo credentials */
    .demo-box {
      background: var(--blue-soft);
      border: 1px solid #bfdbfe;
      border-radius: var(--radius);
      padding: 12px 14px;
      margin-top: 4px;
    }

    .demo-box-title {
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      color: #1d4ed8;
      margin-bottom: 8px;
    }

    .demo-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 4px;
    }

    .demo-row:last-child { margin-bottom: 0; }

    .demo-label { font-size: 12px; color: #1d4ed8; opacity: 0.8; }

    .demo-val {
      font-family: 'DM Mono', monospace;
      font-size: 12px;
      color: #1d4ed8;
      font-weight: 500;
      cursor: pointer;
      padding: 1px 6px;
      border-radius: 4px;
      transition: background 0.12s;
    }

    .demo-val:hover { background: rgba(59,130,246,0.1); }

    /* Error state */
    .error-box {
      display: none;
      align-items: center;
      gap: 8px;
      background: var(--red-soft);
      border: 1px solid #fecaca;
      border-radius: var(--radius);
      padding: 10px 12px;
      margin-bottom: 14px;
      font-size: 13px;
      color: #991b1b;
    }

    .error-box.show { display: flex; }
    .error-box i { font-size: 16px; flex-shrink: 0; }

    /* Footer */
    .login-footer {
      margin-top: 40px;
      font-size: 11px;
      color: var(--text-muted);
      text-align: center;
      line-height: 1.8;
    }


    /* ── Right Panel ── */
    .login-right {
      flex: 1;
      background: var(--accent);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 60px;
      position: relative;
      overflow: hidden;
    }

    /* Decorative dots */
    .login-right::before {
      content: '';
      position: absolute;
      top: -80px; right: -80px;
      width: 320px; height: 320px;
      border-radius: 50%;
      background: rgba(255,255,255,0.04);
    }

    .login-right::after {
      content: '';
      position: absolute;
      bottom: -60px; left: -60px;
      width: 240px; height: 240px;
      border-radius: 50%;
      background: rgba(255,255,255,0.04);
    }

    .right-content {
      position: relative;
      z-index: 1;
      max-width: 460px;
      text-align: center;
    }

    /* Big icon illustration */
    .right-illustration {
      width: 100px;
      height: 100px;
      border-radius: 24px;
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(255,255,255,0.15);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 44px;
      color: rgba(255,255,255,0.9);
      margin: 0 auto 32px;
    }

    .right-title {
      font-size: 26px;
      font-weight: 600;
      color: #fff;
      letter-spacing: -0.6px;
      line-height: 1.3;
      margin-bottom: 14px;
    }

    .right-desc {
      font-size: 14px;
      color: rgba(255,255,255,0.6);
      line-height: 1.7;
      margin-bottom: 40px;
    }

    /* Feature list */
    .feature-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
      text-align: left;
    }

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

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

    .feature-text-title {
      font-size: 13px;
      font-weight: 500;
      color: rgba(255,255,255,0.9);
      margin-bottom: 2px;
    }

    .feature-text-sub {
      font-size: 12px;
      color: rgba(255,255,255,0.5);
      line-height: 1.5;
    }

    /* Divider dots bottom */
    .right-dots {
      display: flex;
      gap: 6px;
      justify-content: center;
      margin-top: 40px;
    }

    .right-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: rgba(255,255,255,0.25);
    }

    .right-dot.active { background: rgba(255,255,255,0.8); width: 18px; border-radius: 3px; }

    /* Loading spinner */
    @keyframes spin { to { transform: rotate(360deg); } }
    .spinner { animation: spin 0.8s linear infinite; display: inline-block; }

    /* Toast */
    .toast {
      position: fixed;
      bottom: 24px;
      right: 24px;
      z-index: 999;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 12px 18px;
      border-radius: var(--radius-lg);
      font-size: 13px;
      font-weight: 500;
      box-shadow: 0 4px 20px rgba(0,0,0,0.12);
      transform: translateY(12px);
      opacity: 0;
      transition: transform 0.25s, opacity 0.25s;
    }

    .toast-show { transform: translateY(0); opacity: 1; }
    .toast-success { background: var(--accent); color: #fff; }
    .toast-error   { background: var(--red);    color: #fff; }
    .toast i { font-size: 17px; }

/* Login right panel — logo and title only */
.login-right-simple .right-content {
  max-width: 560px;
  gap: 0;
}

.right-brand-logo {
  width: 240px;
  max-width: min(70vw, 280px);
  height: auto;
  object-fit: contain;
  margin-bottom: 36px;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.16));
}

.login-right-simple .right-title {
  margin-bottom: 0;
}
